GPWiki.org
GPWiki.org
It is currently Sat May 25, 2013 2:53 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Little help requested
PostPosted: Sun Jan 04, 2009 2:59 pm 
Rookie
User avatar

Joined: Thu Nov 27, 2008 1:08 pm
Posts: 2
Location: Bologna (IT)
Hi guys, i need a little help.
I would like to develop a 2D rts, i have defined some game rules and units/buildings, i would like use python for develop it, but my experience is too low.
I have 2 doubts
first: python the right language to start with?
second: where should I start from? The game interface or what?

Thanks a lot for help me and sorry for my bad english. :)


Top
 Profile  
 
PostPosted: Sun Jan 04, 2009 3:09 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
I don't know about python, but I can tell you how I started with my rts:

Define the map, with support for navigable and unnavigable space.

Define units, and buildings.

Define unit properties and orders (what is a unit doing? standing-by, on patrol, walking, attack-moving), etc.

Sort out movement and unit navigation around maps.

Create UI for unit selecting (not as straight forward as it seems, since you can make multiple selections with a drag, select units or buildings, and select of owned/allied/enemy units)...

... then setup the events for issuing orders with left click/right click functions.

Define units types (and their properties) which serves as a template for creating units.

That should be a good starting point :)



(ps. you posted in the wrong forum, but it's ok. :P )


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 04, 2009 8:07 pm 
Dexterous Droid
User avatar

Joined: Fri Dec 24, 2004 8:13 pm
Posts: 3769
Location: Michigan, 'US' of 'A'. Below Canada.
Python is fine. Before you can program the RTS though you need to learn how to program with the language you chose. There are tutorials I believe on python.com.

After you learn the language you can look into the pygame library.

_________________
/\/////////// \\\\\\\\\\\/\S
/\/////////\\ //\\\\\\\\\/\I - Assault Wars
/\///////\\//|\\//\\\\\\\/\R - - Work in Progress
/\/////\\////|\\\\//\\\\\/\I
/\///\\/////\|/\\\\\//\\\/\S


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2009 10:51 am 
Rookie
User avatar

Joined: Thu Nov 27, 2008 1:08 pm
Posts: 2
Location: Bologna (IT)
Thanks all for help me.
I'm starting study python, i have found some tutorials and faq.

Sorry for my english and for the wrong forum :O


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2009 11:44 am 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
pigro wrote:
Thanks all for help me.
I'm starting study python, i have found some tutorials and faq.

Sorry for my english and for the wrong forum :O



After that, the next step is the unit AI for carrying out their orders. This is things like turning an attack move command into a specific behaviour. It has to do a combination of moving, distance/visibility testing, attack-target selection, change of walking behaviour to intercept target, etc

You may find you need two orders: One is a player-given target order (like move to click point), one is a temporary unit-AI-given diversion 'order' (intercept a unit on the way).

I found this step to be the most difficult part of the rts program actually. When you get here, I advise you to think it through thoroughly first :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2009 2:16 pm 
Prime Example
User avatar

Joined: Sun Dec 07, 2008 6:33 pm
Posts: 41
I don't think I can help you with Python and your 2D rts, but you might want to check this out (the "I want to be a game programmer" part) and then this one.

It really helped me, so maybe it helps you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group