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
/**** * Classes ****/ //<Assets used in the game will automatically appear here> // Class for the earth var Earth = Container.expand(function () { var self = Container.call(this); var earthGraphics = self.attachAsset('earth', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Earth update logic }; }); // Class for 3D objects var Object3D = Container.expand(function () { var self = Container.call(this); var objectGraphics = self.attachAsset('object3D', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Object3D update logic }; }); // Class for the trash can var TrashCan = Container.expand(function () { var self = Container.call(this); var trashCanGraphics = self.attachAsset('trashCan', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // TrashCan update logic }; }); // Class for the virus var Virus = Container.expand(function () { var self = Container.call(this); var virusGraphics = self.attachAsset('virus', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Virus 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 ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Create and position the earth var earth = game.addChild(new Earth()); earth.x = 2048 / 2; earth.y = 2732 / 2; // Initialize arrays and variables var objects3D = []; var score = 0;
===================================================================
--- 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