Explorar o código

✨ Update main sketch

Pedro Schneider %!s(int64=3) %!d(string=hai) anos
pai
achega
a9ae6b22c9
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  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);
 }