Browse Source

✨ Update main sketch

Pedro Schneider 3 năm trước cách đây
mục cha
commit
a9ae6b22c9
1 tập tin đã thay đổi với 2 bổ sung7 xóa
  1. 2 7
      src/sketch.js

+ 2 - 7
src/sketch.js

@@ -14,8 +14,8 @@ function setup()
     GameHandler.init();
     textFont(AssetHandler.getP5FontByName("Lato"));
 
-    test = new Sprite2D("mySprite", AssetHandler.getP5ImageByName("monke"));
-    GameHandler.addRootObject(test);
+    test2 = new Input("myInput", "", "text");
+    GameHandler.addRootObject(test2);
 }
 
 function draw()
@@ -23,9 +23,4 @@ function draw()
     background(220);
     GameHandler.update();
     GameHandler.draw();
-}
-
-function windowResized()
-{
-    resizeCanvas(windowWidth, windowHeight);
 }