SP4CEBAR 2021-04-24 19:28 (Edited)
Gun mechanics for a minigun, a full automatic rifle, a pistol, a shotgun, an RPG, and a sniper. It has reload times, spread and bullet speed.
This game is located in a 128x128-cell map, the map is made using my map editor program.
This game is inspired by Random Heroes and BroForce
Controls:
Left pad: movement
Right pad: shoot
Right A: switch gun
was8bit 2021-04-25 03:11
Wow, neato :)
Mrlegoboy 2021-07-22 01:53
this is pretty impressive, honestly. how many bullets can appear on screen?
SP4CEBAR 2021-07-25 19:14
@Mrlegoboy thanks!, I think it's something like 50
There's an array that stores the x,y,dx, and dy values for each bullet so they can be defined once, and updated once in each loop
SP4CEBAR 2022-03-06 12:52 (Edited)
I just found this in my code, I kind of forgot about it, I really like this way of using comments to organize defined data
'GUN DATA TABLE
' |RELOAD TIME
' | |ACCURACY
' | | |SPEED
' | | | |C,X,Y
DATA 2 ,0.3 ,1 ,0,1,1
DATA 4 ,0.2 ,1 ,0,0,0
DATA 10 ,0.1 ,1 ,0,0,0
DATA 40 ,0.4 ,1 ,0,1,0
DATA 60 ,0 ,0.5 ,1,1,-1
DATA 60 ,0 ,2 ,0,2,0