User prompt
Add the Backgroundasset in the background container and anchor it to the bottom edge of the screen. leave the asset at it's original size
User prompt
dont stretch the background, leave it at it's original asset size
User prompt
dont stretch the background, leave it at it's original asset size
User prompt
dont stretch the background, leave it at it's original asset size
User prompt
dont stretch the background image, leave it at it's original size, but anchor it to the bottom of the screen
User prompt
create a new asset named background and place it in the background container. this is the game's background and needs to stretch across the entire screen
Code edit (2 edits merged)
Please save this source code
User prompt
move the Tube lower
User prompt
add the Tube in the center of the screen inside the midground container
Code edit (11 edits merged)
Please save this source code
User prompt
add acceleration to all 3 food items
Code edit (1 edits merged)
Please save this source code
User prompt
ensure the digestive system units are perfectly aligned to the center of the x axis of the screen
User prompt
instead of having the empty units transparent, make them black
User prompt
instead of having the empty units transparent, make them black
User prompt
instead of having the empty units transparent, make them black
User prompt
move the digestive system UI lower
Code edit (4 edits merged)
Please save this source code
User prompt
increase the space between the units both horizontaly and vertically
User prompt
let's make soem changes to the diggestive system. reduce it to 9 from 10. also, change it's display method, so instead of being displayed in a straight line, one unit to the right of the other display them in a grid like pattern. think of a tic tac toe board grid. the first 3 units are positioned on the top row of the grid, the next 3 units which would be 4,5,6 are on the second row bellow, and units 7,8,9 are on the final row below
Code edit (1 edits merged)
Please save this source code
User prompt
food still doesnt spawn
User prompt
now food doesnt spawn at all
User prompt
the random spawn time doesnt work correctly, dometimes it spawns multiple items one after the other
User prompt
make the food spawn at random intervals between 1 and 2 seconds
===================================================================
--- original.js
+++ change.js
@@ -1,24 +1,17 @@
/****
* Classes
****/
-// Create Background class
-var Background = Container.expand(function () {
+// Create BackgroundContainer class
+var BackgroundContainer = Container.expand(function () {
var self = Container.call(this);
- // Attach background asset to the background
+ // Attach Background asset to the background container
self.backgroundAsset = self.attachAsset('background', {
anchorX: 0.5,
- anchorY: 0.5,
- scaleX: 1,
- scaleY: 1
+ anchorY: 1.0
});
return self;
});
-// Create BackgroundContainer class
-var BackgroundContainer = Container.expand(function () {
- var self = Container.call(this);
- return self;
-});
// Create DigestionSystem class
var DigestionSystem = Container.expand(function () {
var self = Container.call(this);
self.units = [];
@@ -189,11 +182,8 @@
/****
* Game Code
****/
-var background = game.addChild(new Background());
-background.x = 2048 / 2;
-background.y = 2732 / 2;
var backgroundContainer = game.addChild(new BackgroundContainer());
var midgroundContainer = game.addChild(new MidgroundContainer());
var foregroundContainer = game.addChild(new ForegroundContainer());
// Add the Digestion System to the game
hamburger. pixelated. 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
poop UI element . pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
text saying "Constipated" against a poop banner. pixelated. 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
text saying "You’re on a roll!" against a toilet paper banner. pixelated. 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
text saying "Holy Crap!" against a divine angelic poop banner. pixelated. 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixelated text saying "Shit Yeah!" as a shitty newspaper headline. pixelated. 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
macdonalds fries but with the M letter rotated so it looks like a 3. pixelated. 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
large KFC bucket with the digit 5 on it. pixelated. 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit pixelated image of a video game character sitting with hands on a large belly, wearing a white shirt and brown pants. The setting is a simple bathroom, with the character as the main focus. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.