[pygame] Re: Need a lot of help with 'virtual' board game
Quick question: For my game I want territories that are different shapes, not tiles, is it done the same way? or is there another process completely? -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965p1973.html Sent from the pygame-users mailing list archive at Nabble.com.
Re: [pygame] Re: Need a lot of help with 'virtual' board game
There are several ways to do that - you could make territories be a collection of small tiles, or you could use some sort of polygon system. On Tue, Jun 30, 2015 at 7:51 PM, Michael mjrearden...@gmail.com wrote: Quick question: For my game I want territories that are different shapes, not tiles, is it done the same way? or is there another process completely? -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965p1973.html Sent from the pygame-users mailing list archive at Nabble.com.
Re: [pygame] Re: Need a lot of help with 'virtual' board game
Folks! Thanks for the discussion. Very helpful. I'm a newbie also with pygame. Not very far along with python either. Thanks Michael for starting the discussion. The advice to work on parts of the stuff and to find examples is important. I have written a lot of software in other languages and those ideas were fundamental to my mastery of those environments. Above all, IF YOU'RE NOT COMFORTABLE AND HAVING FUN AS YOU WORK, YOU'RE F*CKING UP! Keeping problems small relative to one's level of competence is fundamental to our bliss. Always keep the tasks simple, keeping in mind that what is simple grows as one's competence grows. Also, if possible, begin a project using the framework someone else has built for a similar application. The Pygame site contains and links to lots of game apps. Many of them include valuable commentary. Regards, Tom -- Faced with the possibility of its extinction, every species finds within itself powers unimaginable in the days of its complacency. On 6/30/15, Michael mjrearden...@gmail.com wrote: Quick question: For my game I want territories that are different shapes, not tiles, is it done the same way? Or is there another process completely? -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965p1973.html Sent from the pygame-users mailing list archive at Nabble.com.
[pygame] Need a lot of help with 'virtual' board game
Hello, novice coder here. I need help coding a board game. What I need to learn (because I dont know how to do it already): Combat (die rolls, have troops removed on those die rolls) An interactive map (Player/players can move the map around to view a different area, zoom in and out ETC.) Units movement. Having a video play in the backround (I want the 'home' screen to have a video playing in the background where it fades to different pictures.) An option to 'save' the game in its current state. and lastly having a desktop shortcut tp run the game (so you dont have to access the folder and find the program from there.) It is a lot, but I am very novice, and REALLY want to learn all of this, so even if you can only give some help for a couple, it will be much appreciated! :) Thanks in advance! -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965.html Sent from the pygame-users mailing list archive at Nabble.com.
Re: [pygame] Need a lot of help with 'virtual' board game
Check invent with Python on the Internet. It's a website for an author who does Python/Pygame books. You can buy the books and/or download the PDF for free. Great place to start if you need to learn loads in a structured way. On Tue, 30 Jun 2015 at 20:41, Noel Garwick noel.garw...@gmail.com wrote: Hi Michael, You will want to break all of these down into smaller jobs, and then break those down further. Have you tried making Pong yet? I know it sounds super-simple, but by implementing Pong you actually cover a ton of concepts that you will use when making games: - Player input - Movement - AI - Ball - Increment x / y by x / y speed each frame unless collide with ball or collide with wall - Storing sprite positions - Storing other variables (score, etc) - Drawing (blitting) sprites and backgrounds to a window - Basic state machine (Title screen, gameplay, 'paused', game over) All of the features you're listing for your board game uses concepts that build off of these. On Tue, Jun 30, 2015 at 2:53 PM, Michael mjrearden...@gmail.com wrote: Hello, novice coder here. I need help coding a board game. What I need to learn (because I dont know how to do it already): Combat (die rolls, have troops removed on those die rolls) An interactive map (Player/players can move the map around to view a different area, zoom in and out ETC.) Units movement. Having a video play in the backround (I want the 'home' screen to have a video playing in the background where it fades to different pictures.) An option to 'save' the game in its current state. and lastly having a desktop shortcut tp run the game (so you dont have to access the folder and find the program from there.) It is a lot, but I am very novice, and REALLY want to learn all of this, so even if you can only give some help for a couple, it will be much appreciated! :) Thanks in advance! -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965.html Sent from the pygame-users mailing list archive at Nabble.com.
Re: [pygame] Re: Need a lot of help with 'virtual' board game
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.
Re: [pygame] Need a lot of help with 'virtual' board game
Hi Michael, You will want to break all of these down into smaller jobs, and then break those down further. Have you tried making Pong yet? I know it sounds super-simple, but by implementing Pong you actually cover a ton of concepts that you will use when making games: - Player input - Movement - AI - Ball - Increment x / y by x / y speed each frame unless collide with ball or collide with wall - Storing sprite positions - Storing other variables (score, etc) - Drawing (blitting) sprites and backgrounds to a window - Basic state machine (Title screen, gameplay, 'paused', game over) All of the features you're listing for your board game uses concepts that build off of these. On Tue, Jun 30, 2015 at 2:53 PM, Michael mjrearden...@gmail.com wrote: Hello, novice coder here. I need help coding a board game. What I need to learn (because I dont know how to do it already): Combat (die rolls, have troops removed on those die rolls) An interactive map (Player/players can move the map around to view a different area, zoom in and out ETC.) Units movement. Having a video play in the backround (I want the 'home' screen to have a video playing in the background where it fades to different pictures.) An option to 'save' the game in its current state. and lastly having a desktop shortcut tp run the game (so you dont have to access the folder and find the program from there.) It is a lot, but I am very novice, and REALLY want to learn all of this, so even if you can only give some help for a couple, it will be much appreciated! :) Thanks in advance! -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965.html Sent from the pygame-users mailing list archive at Nabble.com.
[pygame] Re: Need a lot of help with 'virtual' board game
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.
[pygame] Re: Need a lot of help with 'virtual' board game
Thanks a ton guys! When I finish the game I am ultimately trying to make (The first Balkan war) I will post it on these forums :) -- View this message in context: http://pygame-users.25799.x6.nabble.com/Need-a-lot-of-help-with-virtual-board-game-tp1965p1972.html Sent from the pygame-users mailing list archive at Nabble.com.
Re: [pygame] Re: Need a lot of help with 'virtual' board game
On Tue, 2015-06-30 at 12:48 -0700, Michael 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. As said, these things will be covered in various tutorials, you just have to work out how to apply them to your project. For example: # Die Roll roll = random.randint(1, 6) # Causalities num_lives = 5 # When unit is hit... num_lives -= 1 if num_lives 1: # Unit is dead And so on... If you follow a couple more tutorials and get started, then come back when you have some more specific questions, people will be happy to help you solve some problems. But, your current questions are essentially, 'how do I make a game?' which is better answered through the various tutorials on offer. signature.asc Description: This is a digitally signed message part
Re: [pygame] Re: Need a lot of help with 'virtual' board game
You can look up how to do combat 'die' rolls here: http://programarcadegames.com/index.php?chapter=loopslang=en#section_4 That site has a lot of example code if you look under the 'examples' section. Paul Vincent Craven On Tue, Jun 30, 2015 at 2: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.