Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. GAME = { }
  2.  
  3. function GAME:Init()
  4.  
  5.     MAP.Road.Segments = { }
  6.     MAP:AddCurve( MAP.Road.Length.Long, MAP.Road.Curve.Medium, 0 )
  7.     MAP:AddHill( MAP.Road.Length.Short, MAP.Road.Hill.High )
  8.     MAP:AddCurve( MAP.Road.Length.Long, -MAP.Road.Curve.Medium, 0 )
  9.     MAP:AddCurve( MAP.Road.Length.Short, MAP.Road.Curve.Hard, 0 )
  10.     MAP:AddHill( MAP.Road.Length.Short, -MAP.Road.Hill.High )
  11.  
  12. end
  13.  
  14. function GAME:Tick( DeltaTime )
  15.  
  16.     CAMERA.Position.x = LOCALPLAYER.Position.x
  17.     CAMERA.Position.y = LOCALPLAYER.Position.y + 512 * 2.25
  18.     CAMERA.Position.z = LOCALPLAYER.Position.z
  19.  
  20. end
  21.  
  22. function GAME:Draw()
  23.  
  24.     draw.SimpleText( tostring( LOCALPLAYER.Velocity.z ), "PR_16", 16, 16, Color( 255, 255, 255 ) )
  25.  
  26. end
  27.  
  28. --http://puu.sh/lyn87.mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement