animation.bb 492 B

12345678910111213141516171819202122232425262728293031323334
  1. ; Object Animation ***
  2. ; By Paul Gerfen (www.gamecoding.co.uk)
  3. Graphics3D 800,600
  4. SetBuffer BackBuffer()
  5. camera=CreateCamera()
  6. CameraViewport camera,0,0,800,600
  7. light=CreateLight()
  8. man=LoadMD2( "gargoyle.md2" )
  9. PositionEntity man,0,-35,600
  10. RotateEntity man,0,180,0
  11. AnimateMD2 man,1,.1,32,46
  12. While Not KeyHit(1)
  13. If dist<970 MoveEntity man,0,0,.5
  14. If dist=970 AnimateMD2 man,1,.05,0,31
  15. dist=dist+1
  16. UpdateWorld
  17. RenderWorld
  18. Text 320,500,"An Animated MD2 Demo"
  19. Flip
  20. Wend
  21. End