some stabilization after cleanup

preparing to merge singleton branch
it will solve unique screen and controllers for multiple javascripts
This commit is contained in:
Jaromil
2009-08-30 17:33:11 +02:00
parent f3c72894fc
commit f608aeff1f
6 changed files with 47 additions and 14 deletions
+4 -4
View File
@@ -8,9 +8,9 @@
W = 400;
H = 300;
scr = new Screen("sdl");
scr.init(W,H);
add_screen(scr);
// scr = new Screen("sdl");
// scr.init(W,H);
// add_screen(scr);
function draw_pixels(rand_geo) {
var x, y;
@@ -84,7 +84,7 @@ rand_geo = new GeometryLayer(400,300);
rand_geo.activate(true);
//geo.start();
//geo.set_fps(24);
scr.add_layer(rand_geo);
add_layer(rand_geo);
running = true;
rand_kbd = new KeyboardController();