User prompt
Remove the earth
User prompt
Remove the player and lava
User prompt
Make me the worst game you could ever mske
User prompt
Make me a trash can
User prompt
Make me a virus for the character
User prompt
Make me the weirdest game in the world
User prompt
Make me earth
User prompt
When the player touches the lava lose all the points
User prompt
Add lava
Initial prompt
3D game
===================================================================
--- original.js
+++ change.js
@@ -45,8 +45,20 @@
self.update = function () {
// Object3D update logic
};
});
+// Class for weird objects
+var WeirdObject = Container.expand(function () {
+ var self = Container.call(this);
+ var weirdObjectGraphics = self.attachAsset('weirdObject', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ self.update = function () {
+ // WeirdObject update logic
+ self.rotation += 0.1;
+ };
+});
/****
* Initialize Game
****/
@@ -108,11 +120,11 @@
}
}
// Add new 3D objects periodically
if (LK.ticks % 60 == 0) {
- var newObject = new Object3D();
+ var newObject = new WeirdObject();
newObject.x = Math.random() * 2048;
- newObject.y = -50;
+ newObject.y = Math.random() * 2732;
objects3D.push(newObject);
game.addChild(newObject);
}
};