Well, it’s a start.

I have just started to try and program something for the first time in a while.
The only programming I’ve ever done before was an extremely basic C++ course in High-school.

I tried to create a standard, but really simplified version of a turn-based RPG combat system.
I got the basic attacks to work like I wanted them too. Then I started to work on the defend-action. Here is where everything went to shit. I couldn’t figure out how to fix so the damage-threshold would stop multiplying each turn, so after a few turns both the player and the enemy was just standing there, healing each other.
The code was a clusterfuck too, so I didn’t bother to add any spells.

So I decided to start over from scratch.

This time, I coded it so it would calculate the attack damage, using the current players base-damage in the beginning of each round, just so I wouldn’t have to have the same calculation in several places.
I’m 100% sure that this is a very shitty way to do it. But for the moment I”m just happy if it works.
Well the problem here is that it doesn’t.
For some reason I haven’t figured out yet my program never lets the enemy attack, It just asks what action the player will take once and then it repeats that action until the enemy is dead.

Well, It’s a start at least, a shitty start, but a start nonetheless.
I’m here too learn and I can’t wait until the programming course starts!

post_1_isuckatprogramming

Filed under: Programming, School-realted Tagged: design, game, gotland, Laban, programming, school, Uppsala universitet