delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/23/00:09:43

From: Moo-Juice <Ben AT flag DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Main Game Loop
Date: Wed, 22 Jan 1997 11:13:04 +0000
Organization: Honest Ron's Car Emporium
Lines: 20
Distribution: world
Message-ID: <LDo+aIAAZf5yEwof@flag.demon.co.uk>
References: <3 DOT 0 DOT 32 DOT 19970119180029 DOT 0073fc64 AT dataplusnet DOT com>
NNTP-Posting-Host: flag.demon.co.uk
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <3 DOT 0 DOT 32 DOT 19970119180029 DOT 0073fc64 AT dataplusnet DOT com>, Michael
Matczynski <michaelm AT dataplusnet DOT com> writes
>Does anyone know of a place on the internet that tells how to structure the main 
>game loop of computer game?  Like what order the steps should be in (ie. what 
>order to get input, draw sprites on the screen, do AI, etc...).  Any help is 
>appreciated.

From my experience of game creation, there are many different steps you
could take to accomplish your main game loop, but a standard one I used
to use was

DO
   [Update screen/sprites]
   [Handle Control]
   [Handle AI]
   [Other Stuff]
LOOP

-- 
Moo-Juice

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019