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
@@ -1,19 +1,8 @@
/****
* Classes
****/
//<Assets used in the game will automatically appear here>
-// Class for the main character
-var Character = Container.expand(function () {
- var self = Container.call(this);
- var characterGraphics = self.attachAsset('character', {
- anchorX: 0.5,
- anchorY: 0.5
- });
- self.update = function () {
- // Character update logic
- };
-});
// Class for the earth
var Earth = Container.expand(function () {
var self = Container.call(this);
var earthGraphics = self.attachAsset('earth', {
@@ -23,19 +12,8 @@
self.update = function () {
// Earth update logic
};
});
-// Class for the lava
-var Lava = Container.expand(function () {
- var self = Container.call(this);
- var lavaGraphics = self.attachAsset('lava', {
- anchorX: 0.5,
- anchorY: 0.5
- });
- self.update = function () {
- // Lava update logic
- };
-});
// Class for 3D objects
var Object3D = Container.expand(function () {
var self = Container.call(this);
var objectGraphics = self.attachAsset('object3D', {
@@ -96,9 +74,5 @@
earth.x = 2048 / 2;
earth.y = 2732 / 2;
// Initialize arrays and variables
var objects3D = [];
-var score = 0;
-// Create and position the lava
-var lava = game.addChild(new Lava());
-lava.x = 2048 / 2;
-lava.y = 2732 - 100;
\ No newline at end of file
+var score = 0;
\ No newline at end of file