Hunt soldiers GAME
Posted: February 26th, 2017, 8:20 pm
I've been coding up some stuff with all the knowledge Chili has provided us with and also using some concepts which have not been entirely covered yet.
The game is very simple; it uses concepts across the Poo game, Fart Annoyed and so on.
I'm thinking about taking some advice from some people considering some new features I could add to the game, provided they're not super hard to implement and also maybe some ideas for making the code look/work better.
Here's the git:
https://github.com/donjohnnie/DON-Soldier-Game
CONTROLS :
ARROW KEYS TO MOVE,
NUMPAD 8, 4, 5, 6 to shoot in a specific direction.
I suggest holding on the key because for some reason if you move the soldier and try to tap a shoot button, it doesn't work as it's supposed to. However, if you move the soldier and hold a shoot button or more, it works just fine.
As you can probably see, the evade() system is quite primitive. I was thinking about making it work like a 1 chance out of 2 to dodge a bullet or something like that (50% or more). There wasn't much time put into the accuracy of the evade, so the enemy can still be hit even if it is redirected by the function. I kinda just put it there to see how it works and I didn't want to make Steven Seagal-type enemies. (saying that I realise that the soldier can shoot in 4 directions at the same time; uhhhhhhhhhhhhhh)
The start/game-over/resart will be added eventually.
Looking forward to your opinions
The game is very simple; it uses concepts across the Poo game, Fart Annoyed and so on.
I'm thinking about taking some advice from some people considering some new features I could add to the game, provided they're not super hard to implement and also maybe some ideas for making the code look/work better.
Here's the git:
https://github.com/donjohnnie/DON-Soldier-Game
CONTROLS :
ARROW KEYS TO MOVE,
NUMPAD 8, 4, 5, 6 to shoot in a specific direction.
I suggest holding on the key because for some reason if you move the soldier and try to tap a shoot button, it doesn't work as it's supposed to. However, if you move the soldier and hold a shoot button or more, it works just fine.
As you can probably see, the evade() system is quite primitive. I was thinking about making it work like a 1 chance out of 2 to dodge a bullet or something like that (50% or more). There wasn't much time put into the accuracy of the evade, so the enemy can still be hit even if it is redirected by the function. I kinda just put it there to see how it works and I didn't want to make Steven Seagal-type enemies. (saying that I realise that the soldier can shoot in 4 directions at the same time; uhhhhhhhhhhhhhh)
The start/game-over/resart will be added eventually.
Looking forward to your opinions