DEADSOFTWARE

Add assets loader and player skin
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Player.java
1 package ru.deadsoftware.cavecraft.game.objects;
3 import com.badlogic.gdx.math.Rectangle;
4 import com.badlogic.gdx.math.Vector2;
6 public class Player {
8 public Vector2 position;
9 public Vector2 moveX, moveY;
10 public int width, height, dir;
11 public boolean canJump;
13 public Player() {
14 position = new Vector2(0, 0);
15 moveX = new Vector2(0, 0);
16 moveY = new Vector2(0, 0);
17 width = 8;
18 height = 30;
19 }
21 public Rectangle getRect() {
22 return new Rectangle(position.x, position.y, width, height);
23 }
25 }