User prompt
rotate the original position of the hero graphics by 90 degrees clockwise
User prompt
rotate the hero graphics to point to the direction the bullet is firing
User prompt
change hero graphics scale to 2
User prompt
increase size of the player asset, just visually - keep the game object the same size
User prompt
keep enemy movement the same, but rotate the asset
User prompt
Fix Bug: 'ReferenceError: Can't find variable: direction' in this line: 'if (direction < 0) direction += 2 * Math.PI;' Line Number: 106
User prompt
make enemies slowly rotate, make each enemy's speed and direction of rotation different
User prompt
being hit by an enemy should do more damage
User prompt
increase the amount of health from a health pickup
User prompt
fix bug in player health logic
User prompt
change newhealth so it increases to full health when the player pickups on an item
User prompt
fix bug where picking up a health pickup breaks the health bar
User prompt
change health pickups so they completely replenish player health to 100%
User prompt
change the health pickup spawn logic so it spawns when the player health is at 40 of max
User prompt
change the health pickup spawn logic so it spawns when the player health is at 25 of max
User prompt
health pickups are not spawning
User prompt
health pickups are not spawning
User prompt
health pickups are not spawning
User prompt
health pickups are not spawning
User prompt
change the health pickup spawn logic. It doesn't spawn on a timer, instead is spawns when the player is at low health
User prompt
add debug text to the top left of the screen that says 'health' if a health pickup is present
User prompt
health pickups are not spawning
User prompt
change the logic of the health pickup spawner - it should spawn when the player is at 25% of total health, not on a timer
User prompt
the player should pickup the health items when they touch them
User prompt
Add health pickups that spawn in a random location every 20 seconds, increase player health by 25%
===================================================================
--- original.js
+++ change.js
@@ -52,8 +52,9 @@
var self = Container.call(this);
self.health = 100;
var heroGraphics = self.createAsset('hero', 'Hero character', .5, .5);
heroGraphics.scale.set(2);
+ heroGraphics.rotation = Math.PI / 2;
self.bullets = [];
self.move = function () {
for (var i = 0; i < self.bullets.length; i++) {
self.bullets[i].move();
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