ChatterBox

BlitzPlus Forums/BlitzPlus Beginners Area/ChatterBox

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.

Yeah... I try to make small, dumb programs, but I can never think of any. I can say my best program is this one:



Graphics3D 1280,1024,0,1
SetBuffer BackBuffer()
type_camera=1
type_ground=2
type_goal=3
; Create camera
camera=CreateCamera()
PositionEntity camera, -50,50,-500
RotateEntity camera, 0,0,0
EntityType camera,type_camera
EntityRadius camera, 1.5
;Create light
light=CreateLight()

;loading the heightmap
terrain=LoadTerrain ( "maze_or_heightmap.bmp")
ScaleEntity terrain,5,100,5
PositionEntity terrain,-500,0,-500
tex=LoadTexture( "texture.jpg" )
ScaleTexture tex, 50,50
EntityTexture terrain,tex
EntityType terrain,type_ground
EntityRadius terrain, 1.5
Collisions type_camera,type_ground,2,1

goal=CreateSphere()
ScaleEntity goal, 10,10,10
PositionEntity goal, 400,45,750
EntityType goal,type_goal
EntityColor goal, 255,0,0
Collisions type_camera,type_goal,2,1

;The following code makes our program run

While Not KeyDown( 1 )
If KeyDown( 205 )=True Then TurnEntity camera,0,-3,0
If KeyDown( 203 )=True Then TurnEntity camera,0,3,0
If KeyDown( 208 )=True Then MoveEntity camera,0,0,-3
If KeyDown( 200 )=True Then MoveEntity camera,0,0,3
If KeyHit( 33 )=True Then ClearCollisions


UpdateWorld
RenderWorld

Flip
Wend
End





You want to hit the red sphere.



Can you give me some ideas of what programs to make without giving me the code? That would really help.