d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Creating A Battle Game And A Gui > Anyone Have Gui Tutorials Python Pygame
Add Reply New Topic New Poll
Retired Moderator
Posts: 38,135
Joined: May 27 2006
Gold: 3,835.50
Trader: Trusted
Apr 2 2013 11:00pm
So I'm creating a game for my finals using Python / pygame

I've never made a GUI before, and I'm using some links I found using google to help me with pygame and gui creation. I know I can code the game and have it run in DOS, I just don't have any gui experience

A brief rundown of my game:

10 Characters
each character has 4 moves
Characters have stats : HP, AD, AP, Resistance, 100 Energy, energy regen that they receive after every turn and possibly 1 more that I'm forgetting
Each move costs a certain amount of energy and does a certain amount of damage. Scales off of AP, so base dmg + AP
Every character first move is just "Attack" that does the damage of how much AD you have. No scaling
3 Maps to choose from (just background image)
2 Players, same mouse, the players pick their character

First Menu:

Battle Now
Characters (displays the sprites and the stats)
Help

Second Menu after clicking Battle Now:

1p Name:
2p Name:

Choose Map

[] [] []

Third menu after inputting names and selecting map and clicking OK that will appear:

Character Selection:

Player 1 Player 2

[] [] []
[] [] []
[] [] []
[]

Then Okay will appear, Player 1 will be red and player 2 will be blue when they are navigating through the champ select, sort of like super smash brothers

Then when in the game I still have to design the menus on paper but it'll be sort of like pokemon with the 4 moves of the character
I'll probably use random to pick who goes first, or I can do it best stat of like energy regen or something

Anyways, this is just my rough idea I came up with, I have until wednesday midnight to submit my finals idea

Looking for any links to help me with GUI and possibly any previous work with pygame/python game source

This post was edited by ArtofApocalypse on Apr 2 2013 11:01pm
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Apr 3 2013 11:14am
I have a book on python gui, I'll help you when I get out of class
Retired Moderator
Posts: 38,135
Joined: May 27 2006
Gold: 3,835.50
Trader: Trusted
Apr 3 2013 06:11pm
Quote (0n35 @ Apr 3 2013 01:14pm)
I have a book on python gui, I'll help you when I get out of class


Thank you, I'm using Pygame library for 2.7.x Python

I made the first Menu where it displays Battle Now Characters and Help

I assume somehow I can create a hotspot in the 800 x 600 window and have coords set so if they're clicked it goes onto the next function?
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Apr 3 2013 07:21pm
Quote (ArtofApocalypse @ Apr 3 2013 07:11pm)
Thank you, I'm using Pygame library for 2.7.x Python

I made the first Menu where it displays Battle Now Characters and Help

I assume somehow I can create a hotspot in the 800 x 600 window and have coords set so if they're clicked it goes onto the next function?


Yes you can, I can't find my book apparently, I'll try again tomorrow.
Retired Moderator
Posts: 38,135
Joined: May 27 2006
Gold: 3,835.50
Trader: Trusted
Apr 3 2013 10:35pm
Quote (0n35 @ Apr 3 2013 09:21pm)
Yes you can, I can't find my book apparently, I'll try again tomorrow.


thanks

Go Back To Programming & Development Topic List
Add Reply New Topic New Poll