How do you code?

Blitz3D Forums/Blitz3D Beginners Area/How do you code?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Could I do it this way?:

Load Window
Load Variables
Load Graphics

Function_Collision_Detection_Ball()
<Code here>
End Function

Function_Collision_Detection_Pad()
<Code here>
End Function

Function_Collision_Detection_Box()
<Code here>
End Function

Main Loop

Select Case()
Case 1: Developer's Logo
Case 2: Splash Screen
Case 3: Game Running

Call Function_Collision_Detection_Ball()
Call Function_Collision_Detection_Pad()
Call Function_Collision_Detection_Box()

Draw Graphics
Keyboard Input

Case 4: Game Over

End Select

End Loop

And is there a standard way of laying out structure for a 2D video game, or is it differant with every programmer? Like a personal thing. Rather than being told.