User prompt
make a tunnel from Forest-City and push City to side a bit
User prompt
add a another map called 'City'
User prompt
add a menu
User prompt
make the map extended for tablet/iPad users
User prompt
make it cover the entire game but keep the gorillas
User prompt
add a background image
Initial prompt
gorilla tag
/**** * Classes ****/ //<Assets used in the game will automatically appear here> //<Write imports for supported plugins here> // Gorilla class representing the player var Gorilla = Container.expand(function () { var self = Container.call(this); var gorillaGraphics = self.attachAsset('gorilla', { anchorX: 0.5, anchorY: 0.5 }); self.speed = 5; self.update = function () { // Gorilla movement logic }; self.down = function (x, y, obj) { // Handle touch down event }; self.up = function (x, y, obj) { // Handle touch up event }; }); // Tag class representing the tag mechanic var Tag = Container.expand(function () { var self = Container.call(this); var tagGraphics = self.attachAsset('tag', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Tag logic }; }); // Tree class representing climbable objects var Tree = Container.expand(function () { var self = Container.call(this); var treeGraphics = self.attachAsset('tree', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Tree logic }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Initialize background var background = game.addChild(LK.getAsset('background', { anchorX: 0.5, anchorY: 0.5, x: 1024, y: 1366, width: 2048, height: 2732 })); // Initialize gorilla var gorilla = game.addChild(new Gorilla()); gorilla.x = 1024; // Center horizontally gorilla.y = 1366; // Center vertically // Initialize trees var trees = []; for (var i = 0; i < 5; i++) { var tree = new Tree(); tree.x = Math.random() * 2048; tree.y = Math.random() * 2732; trees.push(tree); game.addChild(tree); } // Initialize tags var tags = []; for (var i = 0; i < 3; i++) { var tag = new Tag(); tag.x = Math.random() * 2048; tag.y = Math.random() * 2732; tags.push(tag); game.addChild(tag); } // Game update logic game.update = function () { // Update gorilla gorilla.update(); // Update trees for (var i = 0; i < trees.length; i++) { trees[i].update(); } // Update tags for (var i = 0; i < tags.length; i++) { tags[i].update(); } // Check for collisions between gorilla and tags for (var i = tags.length - 1; i >= 0; i--) { if (gorilla.intersects(tags[i])) { // Handle tag collision tags[i].destroy(); tags.splice(i, 1); } } }; // Handle touch events game.down = function (x, y, obj) { gorilla.down(x, y, obj); }; game.up = function (x, y, obj) { gorilla.up(x, y, obj); }; game.move = function (x, y, obj) { // Handle move events };
===================================================================
--- original.js
+++ change.js
@@ -58,9 +58,11 @@
var background = game.addChild(LK.getAsset('background', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
- y: 1366
+ y: 1366,
+ width: 2048,
+ height: 2732
}));
// Initialize gorilla
var gorilla = game.addChild(new Gorilla());
gorilla.x = 1024; // Center horizontally
tagged Gorilla. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
tree with vines. In-Game asset. 2d. Blank background. High contrast. No shadows
Forest. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Pixel
City. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Pixel