Jump to content

  • Log In with Google      Sign In   
  • Create Account


Writing a game


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 turbello   Members   -  Reputation: 115

Like
1Likes
Like

Posted 09 December 2011 - 12:22 PM

Hi there,

So I've started to write a Game Engine to write my game with.
I'll post some code sometimes with some explanation to keep you all updated.

Spoiler


The following code is from the WndProc, how I handle on some interesting events:
Spoiler


I can handle double mouse-clicks too. For this you need to add a style into the WndClass.
WNDCLASS wndClass;
WndClass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;

I'm controlling whole my game with 1 object. The GameEngine object
But Instead of writing hundreds lines of code into 1 class I wrote some extra classes:
class GameEngine: public ResourceLoader, public InputState, public Painter

I don't like to overload the processor and I would like to work with a framerate so in the ProcessMessages method I'll let the application sleep for (1000 / framerate) if there are no messages.


So if there are any questions about my code, how I go to fullscreen and back to windowed mode, just ask.
And if there are some suggestions about some code, just tell. :wink:



pm: this topic should not be closed till my game is finished, what will take some months. I would love to keep posting all my progress here if that's ok.

Sponsor:

#2 Radikalizm   Crossbones+   -  Reputation: 2822

Like
0Likes
Like

Posted 09 December 2011 - 12:49 PM

Maybe you should consider a blog, a forum is not meant for this kind of stuff and a blog can never hurt
I'm not a mod of course, so I'm not sure whether they'll allow this

I gets all your texture budgets!


#3 turbello   Members   -  Reputation: 115

Like
1Likes
Like

Posted 09 December 2011 - 01:00 PM

Oh sorry, where can I make a blog then?
Is that possible on this site? :)

#4 Radikalizm   Crossbones+   -  Reputation: 2822

Like
0Likes
Like

Posted 09 December 2011 - 01:02 PM

You could make a developer journal here, or you could use some free blog hosting website to set one up

I gets all your texture budgets!


#5 phantom   Moderators   -  Reputation: 7047

Like
0Likes
Like

Posted 09 December 2011 - 01:19 PM

Yes, any site member can start a developer journal and it really is the best place to collect things like this.

Post something good and you might even get features on the front page :D

#6 turbello   Members   -  Reputation: 115

Like
1Likes
Like

Posted 09 December 2011 - 01:25 PM

Thanks, too bad I can't delete this topic :(

#7 Noogai03   Members   -  Reputation: 100

Like
0Likes
Like

Posted 10 December 2011 - 05:41 AM

Go to http://www.wordpress.com for free and reliable blog hosting. I have since moved my site on to a separate domain (http://noogai03.co.uk/wordpress), but it was great when I used it.
It will be www.[NAME HERE].wordpress.com, with no ads.
You can also try www.blogger.com, which is good, but not as good.
Hope this helps
Noogai03




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS