Example #1
0
 public Dynamic(World world, Vector2 pos, Vector2 size, Texture2D tex)
     : base(world)
 {
     m_pos = pos;
     m_size = size;
     m_tex = tex;
 }
Example #2
0
        public Body(World world, Vector2 pos, Vector2 size, Texture2D tex,
                    float maxVel = 200.0f, float accel = 1000.0f, float friction = 5.0f)
            : base(world, pos, size, tex)
        {
            m_maxVel = maxVel;
            m_accel = accel;
            m_friction = friction;

            m_vel = Vector2.Zero;
            m_dir = Vector2.Zero;
        }
Example #3
0
 public Player(World world, Vector2 pos, Vector2 size, Texture2D tex,
            float maxVel = 200.0f, float accel = 1000.0f, float friction = 5.0f)
     : base(world, pos, size, tex, maxVel, accel, friction)
 {
 }
Example #4
0
 static void Main()
 {
     using (var game = new World())
         game.Run();
 }
Example #5
0
 public Spaceship(World world, Vector2 pos, Vector2 size, Texture2D tex,
            float maxVel = 200.0f, float accel = 10000.0f, float friction = 5.0f, bool inverse = false)
     : base(world, pos, size, tex, maxVel, accel, friction)
 {
     m_inverse = inverse;
 }
Example #6
0
 public Entity(World world)
 {
     m_world = world;
 }