Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How can I create a platformer?
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DemonWasp




PostPosted: Fri Jan 14, 2011 11:51 am   Post subject: RE:How can I create a platformer?

You are 90% of the way there.

The values maxx and maxy are statements, not integers. You need to give a hard-coded value.

This is a good thing. Screen size should not change the size of your platforms. If you look at Mario or any other platformer, none of the platforms are dependent on the size of the screen; they play exactly the same if you're at 800x600 or 1920x1200. Just give a value that describes where you want the platforms.

You might also want the first line in the file to include the number of platforms, or else to have a built-in limit on the number of platforms (128? 256?), so that the array will always be large enough.

As a matter of style, use tabs in your file to separate values and organize them into columns.
Sponsor
Sponsor
Sponsor
sponsor
Snario




PostPosted: Thu Jan 20, 2011 12:17 pm   Post subject: Re: How can I create a platformer?

Alright the project is nearing completion and I'm starting to think about art styles and color schemes.

Here is an example of what's going on in the game:

Posted Image, might have been reduced in size. Click Image to view fullscreen.

For every platform there are:

- Regular inside colors (reg. black)
- Special inside colors (when on the platform, reg. yellow)
- Outside colors (the border around the platform, reg. grey)

For the character, he is a ball with three components:

- Color 1 (reg. black)
- Color 2 (reg. yellow)
- Border color (reg. white)

For the win platform, it is usually green (shown as white in image)

...and of course the background color.

If anyone could give me some ideas as to what would look the nicest in game, please post! Smile
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 17 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: