Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 23rd, 2007, 12:58 PM
theKreation theKreation is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: St. Catharines, Ontario, Canada
Posts: 5 theKreation User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m
Reputation Power: 0
Where to start?

I'm working on a 2D Side Scroller. I've got a few classes designed, but I'm trying to think what should come first. Should I design a level editor first? The player, item, sprite classes first? I've read a lot of books, I have a decent understanding of SDL, C/C++, object-oriented techniques, and just plain programming in general (except the gaming side) but when it comes down to thinking of the concept behind a 2D Side Scroller, I can't seem to think of what I should start with first, and what I should end with.

What type of things should I do for planning to make my programming sort of just "flow", without going back after 2 days and going "oh ****, I have to re-write this whole thing over again in order to incorporate this feature".

Any help from anybody with previous experience with writing 2d games or complex applications would be greatly appreciated.

Thanks,

Dex

Reply With Quote
  #2  
Old February 23rd, 2007, 02:23 PM
crownjewel82 crownjewel82 is offline
rebel with a cause
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2004
Location: The Batsh!t Crazy State.
Posts: 5,817 crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 53188 Folding Title: Beginner FolderFolding Points: 53188 Folding Title: Beginner FolderFolding Points: 53188 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Days 12 h 16 m 39 sec
Reputation Power: 3460
I typically start with things I know I'm going to have to use first. Player classes. Monsters.
__________________
Dear God. What is it like in your funny little brains? It must be so boring.

Reply With Quote
  #3  
Old February 23rd, 2007, 06:42 PM
BioSlayer's Avatar
BioSlayer BioSlayer is offline
C# Addict.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Earth
Posts: 283 BioSlayer User rank is Sergeant (500 - 2000 Reputation Level)BioSlayer User rank is Sergeant (500 - 2000 Reputation Level)BioSlayer User rank is Sergeant (500 - 2000 Reputation Level)BioSlayer User rank is Sergeant (500 - 2000 Reputation Level)BioSlayer User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 9 h 6 m 39 sec
Reputation Power: 27
I would start with a number of proofs of concepts. When I mean proof of concept I mean something that proves you can do something.
Here is a few. I would write code:
1. that draws a few sprites to the screen.
2. that plays sounds.
3. that captures key strokes and such.
Once you are comfortable with those few things then write some code:
4. that detects collision between 2 sprites.
5. moves a sprite on a key stroke.
Once you can do that then write some code:
6. that distinguishes between player/monsters and terrain and apply gravity to the player/monsters and using collision detection makes sure the player/monsters don’t fall though the terrain.

Also think on how you will move the screen whether it will stay centered on the player or if it will stay centered on room and when the player goes off screen another room is loaded or something else.

You will also want to think on how you will do animations such as walking and attacking. And think how to handle collision detection for when a monster hits the player and visa versa. Also put in code to play sound when the play jumps, attacks and so on. Sound isn’t very hard to put in so you can wait to put it in.

Another thing to think about is how will you do menu screens or dialogs?

Another thing you can do is play a few games close to what you want to write and while playing it examine every detail and think “how would I put this in my game?”


Another option is you could just get a commercial game library like Torque 2D. Most of the things I mentioned here are already taken care of in those.
__________________
There are none so blind as those who will not see. — Jonathan Swift

My 2D Physics Engine.
My Remake of UQM.
Both are written in C#.

Reply With Quote
  #4  
Old February 23rd, 2007, 07:01 PM
theKreation theKreation is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: St. Catharines, Ontario, Canada
Posts: 5 theKreation User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 7 m
Reputation Power: 0
I put together before I decided to restart. It has things like a Player class, Map class, Tile class, Sprite class (also one for animation clipping), things like that. I've already created functions for vertical and horizontal collision and such (turned out kind of buggy, the player has a seizure when he's touching the ground - moves up and down really quick), but I'm thinking I want a new method of Tiling. It seems kind of redundant always having to draw 300 tiles (sprites) per game loop. I have 300 tiles because, 800x600 @ 40x40px tiles (sprites), thats 20 horizontal tiles, and 15 vertical tiles, 15x20= 300. I'm also creating a new Sprite/Tile class for each individual tile, probably not a good idea, but its working so far heh.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Where to start?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap