18188690f75f33a35dd2445e6ff3086681a5bd51
1 package ru
.deadsoftware
.cavecraft
.game
.objects
;
3 import com
.badlogic
.gdx
.math
.Rectangle
;
4 import com
.badlogic
.gdx
.math
.Vector2
;
5 import ru
.deadsoftware
.cavecraft
.Assets
;
9 public Vector2 position
;
10 public Vector2 moveX
, moveY
;
11 public int width
, height
, dir
, texWidth
;
12 public boolean canJump
;
13 public int[] inventory
;
14 public boolean flyMode
= false;
17 position
= new Vector2(0, 0);
18 moveX
= new Vector2(0, 0);
19 moveY
= new Vector2(0, 0);
23 inventory
= new int[9];
35 public Rectangle
getRect() {
36 return new Rectangle(position
.x
+2, position
.y
, width
, height
);