changeset 16:80634079f275

Import asset.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 23 May 2015 03:18:30 +0300
parents 6cd7392439c7
children 87743e265d97
files config.mak data/pilvi.png demo.c
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/config.mak	Sat May 23 03:18:21 2015 +0300
+++ b/config.mak	Sat May 23 03:18:30 2015 +0300
@@ -2,6 +2,8 @@
 DEMO_BIN=demo
 DEMO_OBJS=demo.o dmsimple.o
 
+EXTRA_CFLAGS=-O3
+
 TOOL_BINPATH=bin/
 TESTS_BINPATH=$(TOOL_BINPATH)
 
Binary file data/pilvi.png has changed
--- a/demo.c	Sat May 23 03:18:21 2015 +0300
+++ b/demo.c	Sat May 23 03:18:30 2015 +0300
@@ -64,6 +64,7 @@
 static DMItemDef items[] = 
 {
     { 0,  3, 1,  0.53, 0.2, "viitta.png", NULL, 0 },
+    { 0,  1, 3,  -0.2, 0.05, "pilvi.png", NULL, 0 },
     { 0,  1, 3,  0.28 , 0.1 , "puu_pv_2.png", NULL, 0 },
     { 1,  9, 2,  0.25 , 0.8 , "puu_pv_1.png", NULL, 0 },
 };
@@ -368,9 +369,9 @@
         // Puut ym. liikennejutut
         #define DM_MAX_MITEMS 16
         static DMFooItemDef mitems[DM_MAX_MITEMS];
-        if (t > 0)
+        if (t > 6)
         {
-            float dt = (t - 0);
+            float dt = (t - 6);
             static BOOL nollattu = FALSE;
             int i;