User prompt
Change EnemyGhost max size to 500% of original size
User prompt
EnemyGhost is only enemy. Enemy ghosts faded onto screen and increases in size. If enemy ghost reaches max size of 200% of original size, show game over. Player stops EnemyGhost by taking photo.
User prompt
Add EnemyGhost
User prompt
Add win state graphic
User prompt
Add background 2 graphic
User prompt
When player wins, show win graphic
User prompt
Win state is when player gets 10 ghost pgotos
User prompt
Create background2
User prompt
After 10 photos are taken, level is complete. Display level complete graphic. Change to background to background2 and restart photo counter.
User prompt
Increase ghost movement speed
User prompt
Increase ghost speed after photo is taken. Every subsequent photo adds 20% more speed to ghost movement.
User prompt
Modify photo soeed increase. Speed increases continue and add speed as each photo is taken until end of round.
User prompt
Add counter above photo that counts to 10
User prompt
Move photos down 400 pixels
User prompt
Move photos down 200 pixels
User prompt
To increase the ghost movement speed after every photo is taken, you can adjust the `speedX` and `speedY` properties of the Ghost class instances within the Game class's logic. Specifically, after a photo is taken and a ghost is removed, you can iterate through the remaining ghosts in the `ghosts` array and increase their `speedX` and `speedY` by a certain factor or by adding a constant value. Here's a conceptual outline of how you might implement this: 1. Define a base speed increase value or a multiplier that will be used to increase the ghost's speed. 2. After a photo is taken and a ghost is removed (inside the `if (camera.isReadyToSnap && camera.snap(ghosts[i], viewfinder))` block), iterate through the remaining ghosts in the `ghosts` array. 3. For each ghost, increase the `speedX` and `speedY` by the defined base speed increase or multiply the current speed by the multiplier. 4. Ensure that the new speed does not exceed any maximum speed limit you may want to impose for gameplay balance. Remember to perform these operations within the Game class's logic, as per the guidelines provided.
User prompt
Fix Bug: 'ReferenceError: Can't find variable: photosTaken' in this line: 'self.x += self.speedX * (1 + photosTaken * 0.2);' Line Number: 13
User prompt
Increase ghost movement speed by an additional 20% after each photo taken
User prompt
Increase ghost speed by 20% after each photo taken
User prompt
After every photo taken increase ghost speed by 10%
User prompt
Add condition to stop photo from moving once it reaches the target Y position
User prompt
PhotoTargetY = 2700
User prompt
PhotoTargetX = 100 , PhotoTargetY = 2600
User prompt
Add check to see if X` position, as there is no condition to check if the photo's X position is less than or equal to `photoTargetX
User prompt
PhotoTargetY = 2300
===================================================================
--- original.js
+++ change.js
@@ -8,9 +8,9 @@
self.move = function () {
self.x += self.speedX;
self.y += self.speedY;
self.scale += 0.01;
- if (self.scale >= 2) {
+ if (self.scale >= 5) {
LK.showGameOver();
}
if (self.x < 0) {
self.x = 2048;
Frame of Camera viewfinder, inside viewfinder view, realistic camera, frame Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Creepy abandoned house, interior Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Subtle orb of green light, floating, realistic, glowing ghost orb Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Polaroid photo of ghost, Japanese ghost Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Floating ghost head Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Ghost camera game win screen. YOU WIN! Horror game asset Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pointed finger, realistic hand, Tap!, game asset Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.