Added a TexturLoader and Nodes, Sprites and some modifications
This commit is contained in:
parent
330607c72b
commit
82d2a64097
6 changed files with 687 additions and 0 deletions
25
src/ei/engine/math/Vector2I.java
Normal file
25
src/ei/engine/math/Vector2I.java
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package ei.engine.math;
|
||||
|
||||
public class Vector2I {
|
||||
private int x;
|
||||
private int y;
|
||||
|
||||
public Vector2I(int x, int y){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the x value in the vector
|
||||
*/
|
||||
public int getX(){
|
||||
return x;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the y value in the vector
|
||||
*/
|
||||
public int getY(){
|
||||
return y;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue