User prompt
double speed of player bullets
User prompt
add a counter to the top right of the screen that shows the total number of enemies on screen
User prompt
when an enemy gets close to the edge of the screen, smoothly move it back into the playfeild
User prompt
remove the code in the YellowEnemy class that bounces the enemies off the edge of the screen
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'hero.y')' in this line: 'var angleToHero = Math.atan2(hero.y - self.y, hero.x - self.x);' Line Number: 101
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'hero.y')' in this line: 'var angleToHero = Math.atan2(hero.y - self.y, hero.x - self.x);' Line Number: 100
User prompt
when an enemy hits the edge of the screen, move it towards the current position of the player
User prompt
remove the code in the YellowEnemy class that bounces the enemies off the edge of the screen
User prompt
check every 250ms to see if the enemy is intersecting the edge of the screen
User prompt
remove all code that alters the enemy's direction when it gets to the edge of the screen
User prompt
remove all code that control enemy behaviour when it hit the edge of the screen
User prompt
change the maximum enemy scale to 5
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'hero.y')' in this line: 'var angleToHero = Math.atan2(hero.y - self.y, hero.x - self.x);' Line Number: 95
User prompt
when an enemy hit the screen edge, it should initially change direction to move towards the player's direction
User prompt
carefully review and adjust the enemy movement logic to ensure that enemies bounce back into the play area without getting stuck.
User prompt
prevent enemies from getting stuck at the edges of the screen
User prompt
fix the above so enemies don't get stuck on the edge of the screen
User prompt
after 200 enemies have been spawned, pause enemy spawning for 10 seconds, then restart the process
User prompt
halve speed of player bullets
User prompt
randomly vary the speed of enemies on spawning. lowest is 20% lower than current value, highest is 180% of current value
User prompt
halve the vertical width of the player health bar
User prompt
move the player health bar down so it almost intersects the player character graphics
User prompt
move the player's health bar so it sits centrally over the player character
User prompt
move the player's health bar so it sits above the player character
User prompt
the feature that changes player health is not working as designed. The player should start bright green, and move through yellow and orange until they are bright red just before death
===================================================================
--- original.js
+++ change.js
@@ -14,9 +14,9 @@
var Bullet = Container.expand(function () {
var self = Container.call(this);
self.bulletGraphics = self.createAsset('bullet', 'Bullet Graphics', .5, .5);
self.bulletGraphics.scale.set(0.2);
- var speed = 10;
+ var speed = 20;
self.direction = 0;
self.move = function () {
self.x += Math.cos(self.direction) * speed;
self.y += Math.sin(self.direction) * speed;
amoeba Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Green equilateral triangle, fills the entire picture space in width and height Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
square box viewed from above. White with a large Red Cross Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Purple bomb Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
space image stylised gas clouds, black and white image, low contrast