Each ship will have 6 values:
-Pos_x
-Pos_y
-vel_x
-vel_y
-health
-movement_progress
Each will be an int.
There is a max of 150 bullets onscreen at any time, where bulletarray[i]=x and bulletarray[i+1]=y
For the ships, when movement progress is 0, it follows the general
movement of the rest of the ships as specified by int Direction. When movement_progress is not 0, the ship is following a path downwards towards you, and helps keep track of when to make turns and such.
Things I need to figure out:
How enemies will know where to go to when they get done with their decent downwards.
How enemies will be stored.
int x and int y are the X and Y positions of your ship respectivly
scrbuf is the screenbuffer I am using.
More to come
-Pos_x
-Pos_y
-vel_x
-vel_y
-health
-movement_progress
Each will be an int.
There is a max of 150 bullets onscreen at any time, where bulletarray[i]=x and bulletarray[i+1]=y
For the ships, when movement progress is 0, it follows the general
movement of the rest of the ships as specified by int Direction. When movement_progress is not 0, the ship is following a path downwards towards you, and helps keep track of when to make turns and such.
Things I need to figure out:
How enemies will know where to go to when they get done with their decent downwards.
How enemies will be stored.
int x and int y are the X and Y positions of your ship respectivly
scrbuf is the screenbuffer I am using.
More to come