Next is adding proper graphics to game, so I made a ship about the same size as the triangles:
At the top of the code:
PImage: enemy; PImage bg; PImage meteor; PImage ship;
And then in void setup the images:
bg=loadImage("spacebg.png"); meteor=loadImage("meteor.png"); energy=loadImage("powerups.png"); ship=loadImage("ship.png");
enemy=loadImage("enemy.png");
and then how where the enemy will appear:
enemyy=random(800); (start point) enemyy=0-random(0); enemyxinc=random(6)-random(3); alive=1;
Then load it up in the draw function:
background(255); fill(0); image(bg,0,0);
This talks about the ships size and placement on the screen.
Image(ship,shipx-20,shipy+5,60,30);
That this how it will look in the end
The type of font used in the game:
livesfont=loadFont("ArialMT-20.vlw");
gameover=loadFont("ArialMT-20.vlw");
scorefont=loadFont("ArialMT-20.vlw");
Bringing an lop amount of powerups:
for(int lop=0;lop<powerups;lop=lop+1){
powerupx[lop]=random(800);
powerupy[lop]=random(300);
powerupyinc[lop]=1+random(8);









