User prompt
everytime the score increments by 1, the speed of all enemy increases as well
User prompt
with each enemy destroyed, accelerate the speed of all ennemies by 1
User prompt
rotate santa 90 degrees to the left
User prompt
with each enemy deleted, add to the score +1
User prompt
move the score display to the center of the screen
User prompt
move the score to the center of the screen
User prompt
add a score display on screen
User prompt
add score display on screen in the center
User prompt
move the score to the center of the screen
User prompt
the score should be visible on screen
User prompt
Yellow Enemy should add one point to the score, blue enemy 3 and red enemy 5
User prompt
make santa move faster
User prompt
when the bullets collide with the ennemies delete the bullet and delete the enemy it hit
User prompt
left clicking should be possible anywhere on the screen
User prompt
When pressing left click, spawn projectile starting from Santa going vertically
User prompt
Enemy should come in three different colors yellow, blue and red. Yellow is the slowest enemy, blue is a little bit faster and Red is much faster
User prompt
when the enemy collides with santa it should be game over and the text game over should appear on screen
User prompt
Make Santa automatically move left to right bouncing off the side off the edge of the screen
User prompt
var Enemy comes vertically down after spawning
Initial prompt
Santa Shoot
===================================================================
--- original.js
+++ change.js
@@ -16,24 +16,49 @@
var bulletGraphics = self.createAsset('bullet', 'Bullet Graphics', .5, .5);
self.speed = 10;
self.move = function () {};
});
-var Enemy = Container.expand(function () {
+var YellowEnemy = Container.expand(function () {
var self = Container.call(this);
- var enemyGraphics = self.createAsset('enemy', 'Enemy character', .5, .5);
+ var enemyGraphics = self.createAsset('yellowEnemy', 'Yellow Enemy character', .5, .5);
+ self.speed = 3;
self.move = function () {
- self.y += 5;
+ self.y += self.speed;
};
});
+var BlueEnemy = Container.expand(function () {
+ var self = Container.call(this);
+ var enemyGraphics = self.createAsset('blueEnemy', 'Blue Enemy character', .5, .5);
+ self.speed = 5;
+ self.move = function () {
+ self.y += self.speed;
+ };
+});
+var RedEnemy = Container.expand(function () {
+ var self = Container.call(this);
+ var enemyGraphics = self.createAsset('redEnemy', 'Red Enemy character', .5, .5);
+ self.speed = 8;
+ self.move = function () {
+ self.y += self.speed;
+ };
+});
var Game = Container.expand(function () {
var self = Container.call(this);
var santa = self.addChild(new Santa());
var bullets = [];
var enemies = [];
santa.x = 2048 / 2;
santa.y = 2732 - santa.height;
var spawnEnemy = function () {
- var enemy = new Enemy();
+ var enemyType = Math.random();
+ var enemy;
+ if (enemyType < 0.33) {
+ enemy = new YellowEnemy();
+ } else if (enemyType < 0.66) {
+ enemy = new BlueEnemy();
+ } else {
+ enemy = new RedEnemy();
+ }
enemy.x = Math.random() * 2048;
enemy.y = 0;
enemies.push(enemy);
self.addChild(enemy);
a top view of a 16 bit sprite santa with a bazooka Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a christmas ornament Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eyed christmas elf Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a blood splatter Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eye reindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit sprite of a red eye mother christmas Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit top view background of a christmas field set in hell Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit smoke Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit wall of skulls with red eyes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
"Death Is Inevitable" Text Bubble Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
16 bit CHRISTMAS bomb power up icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.