I started making a game AMA

BaconShelf | Mythic Inconceivable!
 
more |
XBL: BaconShelf
PSN:
Steam: BaconShelf
ID: BaconShelf
IP: Logged

10,737 posts
 
So I've started making a small game in python. It's simple enough, you type in the name of your ship, and then you get the options menu for viewing upgrades, stats, entering combat or exiting. If you view upgrades, it says the amount of money you have and then proceeds to list one if three upgrades that either increases attack and reduces cool down, increases armour and increases shields.

Then you go back to the main menu where you can repeat above, see your stats (Attack, health, shields and cool down)


Attack is your outgoing damage
Health is how much damage you take before dying
Shields is a secondary layer of health that regenerates at the end of the combat session (Though health must be bought)
Cool down simply determines how quick combat is by using time.sleep(X), though I'll be using it in the ways below.

So far the combat is fairly simple though takes a few dozens lines- it checks to see if your attack is more than, equal or less than the enemy shields. If more than, the difference is calculated and applied to health. If equal, the shields go down leaving health exposed and if less that, chip away at the shields until either if the above happens. When their health reaches 0, you gain money (calculated by (Shots fired*100)+1000)

Then you go back to the menu and start again. It's in python but I'm pretty happy with how I've done so far.

In also working out the following;

Adding code to allow the enemy to fight back
Adding in an ability to dodge fire factor (Engines, countermeasures, a random number (1-100) can make this better though more armour and guns means this is decreased (Player and NPC)
Add an XP system that has requirements of levels to unlock upgrades (Doubles as a score)
Remove installed upgrades
List of previous ships and respective scores
Different difficulties, factions and classes that all affect yours and the enemy stats.

Tl:Dr I'm making a cool spaceship game and te last paragraph is stuff I'm planning on adding. I'll put it up on Dropbox once I'm happy with it. AMA.

Oh, and I'm also doing this in preparation for my A2 Level computing coursework next year. If I get the combat systems working now, all I'll have to do is add pygame support (Sprites and animations as it just runs in cmd right now) and buttons.



clum clum | Mythic Inconceivable!
 
more |
XBL:
PSN: PM me
Steam: PM me
ID: Numb Digger
IP: Logged

11,461 posts
 
Cool, I'll give it a try when its up.


BaconShelf | Mythic Inconceivable!
 
more |
XBL: BaconShelf
PSN:
Steam: BaconShelf
ID: BaconShelf
IP: Logged

10,737 posts
 
Cool, I'll give it a try when its up.


Don't expect anything even on a level of FTL. It's just "Press 1 to do X" at the moment. I'm looking into disallowing strings and decimals and negatives when necessary, though I'll likely make an additional option for anything else that redirects back to the previous choice you're making saying that is an invalid response.