this is the pixelated game world of space invaders in a soothing pixel art,
as these devil aliens invade a kid's Candy valley.
Here is how i am programming it Using the HTML's canvas to draw my game and scripting it with JavaScript.
lets begin.
We see Space Invaders here, that means there is a turret shooting bullets at aliens.
hence the Objects needed :
Enemy / Alien
Player / Turret
Bullet
Making Characters :
we wont use images and learn some programming with these industry leaders we are trying to mimic.
So thinking the retro style i believe we need to see how we can draw boxes in a pattern.
That means places to store values .. an array of objects in a variable.
imagine how our t.v works.. there are pixels putting different colors together.
lets try something similar here.
the canvas would be full of small pixels/boxes which when combined, will give you the screen
Is not this the whole concept ?
[WIP]
But imagine the workload now.. look as of how would you have to swap the pixel colors in the grid either in X or in Y.
so lets just make patches of grids whose X and Y positions and directions, we can determine by using the classes. A class of enemies which would be nothing but a group of grid array patches that would change location with a collective X and Y.(global location).

No comments:
Post a Comment