As Winkleink said, the Invent With Pygame stuff is awesome; tons of good hands-on examples. The author is very cool and will probably help you out or recommend a blog post if you have specific questions on how something works. http://inventwithpython.com/
For troop movement, if you're making a grid-based game, I recommend this tile map tutorial: http://sheep.art.pl/Tiled%20Map%20in%20PyGame That will help you understand how to break up an area into 'cells'. For combat, again, you just need to break things down: - Characters need data for HP, Attack Power, Accuracy, Dodge Chance, Defense - Use something like: - # see if the attacker hits the defender (there are a LOT of ways to do this) - hit = False - if ( random.randint( 0, 100 ) + attacker.accuracy ) > defender.DodgeChance: - hit = True - # If the attack hits, lower the defender's HP, adjusting the damage by the defender's defense - if hit: - damage = attacker.attack_power - defender.defense - if damage >= 0: - defender.hp -= damage - # check if the defender is dead; if so, remove hide sprite, etc., - if defender.hp <= 0: - defender.kill() On Tue, Jun 30, 2015 at 3:48 PM, Michael <mjrearden...@gmail.com> wrote: > I actually coded my own pong game, I forgot to add a pause menu though. > However, I still need to know how to code in 'combat' (die rolls, > causalities ETC.) > Movement of troops > and still alll the others listed above. > > > > -- > View this message in context: > http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965p1968.html > Sent from the pygame-users mailing list archive at Nabble.com. >