Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Entity
- {
- public Vec pos, vel, size;
- public Direction direction;
- public Entity(Vec _pos, Vec _size, Direction _direction)
- {
- size = _size;
- pos = _pos;
- vel = _direction.vec;
- direction = _direction;
- }
- public void update()
- {
- pos.add(vel);
- }
- }
- class Player : Entity
- {
- public Vec pos, vel, size;
- public Direction direction;
- public Player(Vec _pos, Vec _size, Direction _direction) : base(_pos, _size, _direction) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement