How do you tell what command goes where when designing a game. Is it in the steps of how you design the game? I know you have to set the scene, lighting, camera etc up first, but after that?
Thanks..
Thanks..
; Set video mode Graphics3D 640,480,16,2 SetBuffer BackBuffer() ; Setup cameras cam1 = CreateCamera() CameraViewport cam1,0,0,640,480 ; Load level objects, e.g. meshes, lights, terrain, water plane, skybox, set collisions... light1=CreateLight() cube1=CreateCube() PositionEntity cube1,-2,-2,10 ; The MAIN GAME LOOP While Not KeyHit(1) ; Keyboard/Mouse Controls ; 3D Stuff, e.g. move/animate meshes, launch projectiles, check collisions... UpdateWorld RenderWorld ; 2D stuff here, update HUD, text, stats... Text 50,50,"Hello Cube!" Flip Wend End ; Subroutines & Functions can be here
; Set video mode Graphics3D 640,480,16,2 SetBuffer BackBuffer() ; Setup cameras cam1 = CreateCamera() CameraViewport cam1,0,0,640,480 ; Load level objects, e.g. meshes, lights, terrain, water plane, skybox, set collisions... light1=CreateLight() cube1=CreateCube() PositionEntity cube1,-2,-2,10 ; The MAIN GAME LOOP ;FrameRate Fps = CreateTimer(60) While Not KeyHit(1) WaitTimer(fps) Cls ; Keyboard/Mouse Controls ; 3D Stuff, e.g. move/animate meshes, launch projectiles, check collisions... UpdateWorld RenderWorld ; 2D stuff here, update HUD, text, stats... Text 50,50,"Hello Cube!" Flip Wend End ; Subroutines & Functions can be here