Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1038384 Posts in 41962 Topics- by 33588 Members - Latest Member: JayJaySut

September 02, 2014, 06:08:19 PM
TIGSource ForumsFeedbackPlaytestingFirst C++ game - engine working OK?
Pages: 1 [2]
Print
Author Topic: First C++ game - engine working OK?  (Read 1056 times)
mamoniem
Level 0
**


making games 247


View Profile WWW Email
« Reply #15 on: December 18, 2012, 11:26:08 PM »

It's a DirectX9 based engine, using the D3DX sprite functions for drawing - pretty basic. I got up and running with the tutorials at http://www.directxtutorial.com/LessonList.aspx?listid=9 , and then used the DX9 references on MSDN after that. For creating the window etc. I just used the Win32 API (I learned by looking up the functions from the basic Win32 template that comes with Visual Studio 2012).

For C I read the GNU reference manual ( http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html ) and for C++ the tutorial on http://www.cplusplus.com/ , and learned the basic C/C++ libraries and STL from that site too (vector<> map<> and string<> are really useful). I used some of the Boost libraries too - property_tree, filesystem, random, and a couple others - lots of good stuff in there - http://www.boost.org/ .

This is getting long Smiley. Anyway for engine structure I stole a lot of ideas from Unity - I like a lot of their architecture and organization. Tried to make it so I can swap in an OpenGL renderer and other platform windowing/input etc. pretty easy in the future.

And yeah, FMOD for sound - they have a good help file.

BMFont for sprite fonts - had to cook my own renderer using the font files it generates.

I plan to do fancy stuff in the future (shaders, advanced audio, a little 3D here and there, etc.) so am mostly building my own stuff, but for small sprite-based games something like SDL or SFML would be a lot less time up front and more portable out of the box (but less flexible for doing advanced stuff later maybe).

Hope that helps Smiley

thank you for this great details it will be helpful for anyone googled something similer  Beer!
Logged

just making games Smiley<br />http://www.mamoniem.com/
PiotrMi
Level 0
**


View Profile Email
« Reply #16 on: December 19, 2012, 10:26:45 AM »

Really nice engine sample Smiley
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic