Simple Shooting Example - Blitz3d Typing CST Test
Loading…
Simple Shooting Example — Blitz3d Code
Press space to shoot a cube projectile.
Graphics3D 800,600
player = CreateCube()
PositionEntity player,0,0,0
projectiles = CreateList()
While Not KeyDown(1)
If KeyDown(57) Then 'Space
p = CreateCube()
PositionEntity p,EntityX(player),0,EntityZ(player)
AddToList projectiles,p
End If
For i=0 To ListCount(projectiles)-1
MoveEntity ListValue(projectiles,i),0,0,0.2
Next
RenderWorld
Flip
WendBlitz3d Language Guide
Blitz3D is a legacy, beginner-friendly programming language and IDE for 2D and 3D game development, using a BASIC-style syntax with built-in graphics, sound, and input handling.
Primary Use Cases
- ▸2D and 3D PC games
- ▸Educational programming exercises
- ▸Prototyping game mechanics quickly
- ▸Interactive demos and simulations
- ▸Hobbyist and indie game projects
Notable Features
- ▸BASIC-style syntax for ease of use
- ▸Built-in 2D and 3D graphics support
- ▸Integrated sound and music handling
- ▸Simple input handling for keyboard, mouse, and joystick
- ▸Rapid compilation to native Windows executables
Origin & Creator
Blitz3D was created by Mark Sibly in 2001 as part of the Blitz Research series of programming languages.
Industrial Note
Blitz3D is notable for rapid prototyping of 2D/3D games with minimal setup, though it has largely been superseded by modern engines.