seed r840 - trunk/examples/same-seed



Author: hortont
Date: Tue Feb  3 16:05:04 2009
New Revision: 840
URL: http://svn.gnome.org/viewvc/seed?rev=840&view=rev

Log:
Woah timings are sometimes important.


Modified:
   trunk/examples/same-seed/board.js
   trunk/examples/same-seed/main.js
   trunk/examples/same-seed/score.js

Modified: trunk/examples/same-seed/board.js
==============================================================================
--- trunk/examples/same-seed/board.js	(original)
+++ trunk/examples/same-seed/board.js	Tue Feb  3 16:05:04 2009
@@ -12,12 +12,11 @@
 		{
 			animating = false;
 			
-			Seed.print("asdf");
-			
 			var x = new Object(), y = new Object();
 			window.window.get_pointer(x, y, null);
 			
 			var picked = stage.get_actor_at_pos(x.value, y.value).get_parent();
+			Seed.print(picked);
 			if(picked && picked.get_light_x)
 				light_lights_from(picked);
 			
@@ -289,7 +288,8 @@
 			}
 		}
 		
-		this.signal.enter_event.connect(enter_tile);
+		//this.signal.enter_event.connect(enter_tile);
+		this.signal.motion_event.connect(enter_tile);
 		this.reactive = true;
 	}
 });

Modified: trunk/examples/same-seed/main.js
==============================================================================
--- trunk/examples/same-seed/main.js	(original)
+++ trunk/examples/same-seed/main.js	Tue Feb  3 16:05:04 2009
@@ -28,14 +28,13 @@
 var score = 0;
 var timelines = [];
 
-var window = new Gtk.Window();
+var window = new Gtk.Window({title: "Same Seed"});
 var clutter = new GtkClutter.Embed();
 var stage = clutter.get_stage();
 var vbox = new Gtk.VBox();
 
 window.signal.hide.connect(function () { Gtk.main_quit(); });
 
-stage.title = "Same Seed";
 stage.color = {alpha: 0};
 stage.set_size((tiles_w * tile_size),(tiles_h * tile_size));
 

Modified: trunk/examples/same-seed/score.js
==============================================================================
--- trunk/examples/same-seed/score.js	(original)
+++ trunk/examples/same-seed/score.js	Tue Feb  3 16:05:04 2009
@@ -24,7 +24,7 @@
 			stage.add_actor(this);
 			this.show();
 			
-			this.anim = this.animate(Clutter.AnimationMode.EASE_OUT_SINE,500,
+			this.anim = this.animate(Clutter.AnimationMode.EASE_OUT_SINE,400,
 			{
 				depth: [GObject.TYPE_INT, 500],
 				opacity: [GObject.TYPE_UCHAR, 0]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]