Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Lactose!

Member Since 16 Oct 2013
Offline Last Active Today, 05:30 PM

Posts I've Made

In Topic: which method should i use for engine independent level-design?

18 February 2015 - 08:09 AM

Up?

You'll get better answers if you follow frob's advice.


In Topic: Enemy Bullets

12 February 2015 - 09:35 AM

Thanks for the advice. In your example, what does the update() method do? I see a lot of examples with it and I never understood what it was for.

In this specific case, I would guess it Bullet.update updates the bullet's position (e.g. based on direction and velocity), and checks if it hits something (in which case, it modifies the bullet's dead variable).


In Topic: Code written inside a Render() loop

10 February 2015 - 02:53 PM


He peeks one message, then renders, then peeks another, then renders. Look again.

Not quite.

Since PeekMessage returns non-zero if there is a message, only the if part will execute each iteration of the while loop, until there are no more messages. At that point, the else part will execute.

 

That said, I personally prefer the way you wrote it myself, but the way it is posted does consume all messages between each render.


In Topic: Looking for 3d engine suggestions for android+windows development.

10 February 2015 - 06:47 AM


I checked the UE4 engine, and it seems to be 19 dollars per month + 5% out of 3k I would make. I honestly doubt I will make any money, and I would have gladly pay even 50 dollars for ue4 but having it as a 19€ monthly fee I probably am too cheap for paying at least for now.

You can pay for 1 month and cancel the subscription. You'll still have access to whatever you had access to, but you will not be able to get updates and patches until you resubscribe.


In Topic: Does games that were writen in "c" will be processed faster then...

09 February 2015 - 09:59 AM


Some gamedev user

Actually, Donald Knuth. And the full quote is a bit more nuanced:

 

"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."


PARTNERS