Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
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 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.
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.