Results 1 to 6 of 6

Thread: Tutorial [Game loop] NMs Game tutorial 0.2

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Tutorial [Game loop] NMs Game tutorial 0.2

    This is a short tutorial that will teach how to implement a game loop that is the most used structure in games today. The code are only tested in VB6, but is probably running fine in VB5 and can probably be easy imported to VB.NET too. You should have some understanding about loops from before, and maybe some knowledge about APIs. But don't stop reading if you don't, because I will try to explain it in an easy way anyway.

    The easiest form of a game loop that is perfectly suited for your first tests when you are starting in game programming is to use a timer control. But the timer control is slow, so it has to be a better way. And it is. We are going to use a tight while loop in this example, that will run as long as you want. I will also show you a simple way to pause the loop, and how to count Frames Per Second (FPS). So let’s dig into it.
    Last edited by si_the_geek; Feb 27th, 2004 at 12:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width