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



Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old May 10th, 2011, 05:04 PM
spok12 spok12 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2011
Location: Rapid city, SD
Posts: 1 spok12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m
Reputation Power: 0
C++ - Need help with c++ basic game code structure

I'd like to start off by saying, I do a lot of research before attempting forums and I know to use the "search" feature before posting. I've yet to find a helpful post and even reviewing several source codes has not brought me to a solid enough answer to continue on my own with confidence in my coding.

I'm looking to put together a "shell" game from which to hone my game programming abilities. I want to make this shell in such a manner that the potiential functionality of a full, though simple, game can be constructed upon it in an organized manner. I'm relatively new to game coding, but have a solid understanding of c++; i'm not pro, but i've made a couple moderatly useful programs.

I've worked through some of the basics of game programming, but my code is sloppy and, at times, a task in itself to find where things are. I'm not expecting to put out a masterpiece and know to start with very small, simple games. I've been through some game tutorials and have made some basic games, but the code structure is never there. Frustrated with researching, here's what i'm looking to do (the short version) with my main.cpp

1. Is the below even remotly close to any "standard" or even a practical setup for potentially large games?
2. I want WINAPI WinMain to create my window in the graphics manager function, so how do I make windows "enter" my program without main being on the outside?

Any help is greatly appreciated, apologies if post is total noob.


==========================
set global variables

Graphics manager{};
Audio manager{};
Joystick manager{};
game logic{};

msg loop{};
clean up{};

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > C++ - Need help with c++ basic game code structure


Developer Shed 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