Skip to content

Gamevariables

alecgoebel edited this page Feb 3, 2012 · 1 revision

Game Variables

Here are some standard game variables that you may run across

Generic

  • clk: clock

Physics

  • x, y, z: coordinate, location components
  • rot, ang: rotation and angle
  • v, vx, vy: velocity
  • dx, dy, dz, dAnything: change in variable (in math, delta). drot would be change in rotation per step
  • w, h: width and height

Objects

  • p1, p2, ply: players
  • obj: object

Shapes

  • rect: rectangle
  • circ: circle
  • pt, coord: point

Clone this wiki locally