Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Blizzeta Game - An Action RPG
- Copyright (C) 2014 Blizzeta Software and Gaming
- */
- /**
- * Re-Buffers the Player
- */
- public void tick() {
- xs = 0;
- ys = 0;
- if(isMovingUp && !isMovingDown) {
- ys -= SPEED;
- } else if(isMovingDown && !isMovingUp) {
- ys += SPEED;
- }
- if(isMovingRight && !isMovingLeft) {
- xs += SPEED;
- } else if(isMovingLeft && !isMovingRight) {
- xs -= SPEED;
- }
- move(xs,ys);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement