Enemy Follow Example - Blitz3d Typing CST Test
Loading…
Enemy Follow Example — Blitz3d Code
Enemy cube follows the player cube.
Graphics3D 800,600
player = CreateCube() enemy = CreateCube()
PositionEntity player,0,0,0
PositionEntity enemy,5,0,5
speed = 0.05
While Not KeyDown(1)
xDir = EntityX(player)-EntityX(enemy)
zDir = EntityZ(player)-EntityZ(enemy)
MoveEntity enemy,xDir*speed,0,zDir*speed
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.