User prompt
don't use stage.width and stage.height instead use the fixed sized variables of the play area
User prompt
new Graphics(); is deprecated and we can no longer draw directly, replace it with a XS.getAssets call and remove the draw specific calls
User prompt
new Graphics(); is deprecated, replace it with a XS.getAssets call
User prompt
Make sure bullets and and powerups that exist the play area in any direction are removed
User prompt
Create a new bullet type of the boss
User prompt
Increment wave counter after the first call to spawnWave();
User prompt
Add 4 more basic enemy types. Each wave should only consist of one enemy type.
User prompt
Update spawnEnemy to have a enemy type & update all calls to spawnEnemy, to ensure type is passed along
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
If it's possible to refactor the code to be shorter and more concise, please do so. Consider: * Is there ways to use build in functions to replace large blocks of code? * Is there ways we can easily reuse code across multipe functions? * Anything else that might make the code shorter and more concise?
User prompt
Keep track of how many double cannon powerups the player have active, only remove the effect when the player has zero double cannon powerups active.
User prompt
Make boss health bar 4x as wide and twice as high
User prompt
Ensure boss always flies all the way into the screen
User prompt
Use different asset for bosses and don't scale the boss asset
User prompt
increase powerup tiling spacing to 85px
User prompt
Move powerup icons to the right position when a powerup runs out
User prompt
Do not scale the icons attached to powerUpIcons
User prompt
Do not scale the icons attached to powerUpIcons
User prompt
Show which powerups I currently have active as a tiling list of icons in the bottom right corner of the playing field.
===================================================================
--- original.js
+++ change.js
@@ -411,9 +411,8 @@
function checkBulletCollision(bulletsArray, targetArray, onHitCallback) {
for (var j = 0; j < bulletsArray.length; j++) {
bulletsArray[j].y -= 10;
-
if (bulletsArray[j].y < -30) {
self.removeChild(bulletsArray[j]); //{115}
bulletsArray.splice(j, 1); //{116}
j--; //{117}
@@ -422,14 +421,12 @@
var target = targetArray[k];
var dx = bulletsArray[j].x - target.x;
var dy = bulletsArray[j].y - target.y;
var distance = Math.sqrt(dx * dx + dy * dy); //{119}
-
if (distance <= (target.width + bulletsArray[j].width) / 2) {
self.removeChild(bulletsArray[j]); //{120}
bulletsArray.splice(j, 1); //{121}
j--; //{122}
-
onHitCallback(target, k);
break;
} //{123}
} //{124}
Alien enemy, adopted to space, flying down Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Alien enemy boss, adopted to space, flying down Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Alien enemy, adopted to space, flying down Game Texture. In-Game asset. 2d. Pixelart. blank background. Low detail. High contrast.
Hero Spaceship, flying up, single cannon in the center Game Texture. In-Game asset. 2d. Pixelart. blank background. Low detail. High contrast.
Dark circular power up with three bright yellow arrows pointing upwards. Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Dark circular power up indicating double cannons. Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Create a 2D top-down view pixel art image of a bullet for a space shooter game. The bullet should be facing upward, as it will be used as a projectile fired from the hero spaceship towards enemies in the game. The design should be sleek and give off a sense of motion. Please provide the image on a white background. Game Texture. In-Game asset. 2d. Pixelart. blank background. Low detail. High contrast.
Single alien slime bullet, round. Game Texture. In-Game asset. 2d. Pixelart. blank background. Low detail. High contrast.
Single alien boss slime bullet, round Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.