Bonk the buns now

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
unknown 2 years ago
parent d05007ad6b
commit df637104a2
  1. 2
      src/sig/engine/Action.java
  2. 1
      src/sig/objects/ConfigureControls.java
  3. 1
      src/sig/objects/Player.java
  4. 1
      src/sig/objects/actor/PhysicsObject.java

@ -9,7 +9,7 @@ import net.java.games.input.Component.Identifier;
public enum Action { public enum Action {
MOVE_RIGHT(new KeyBind(KeyEvent.VK_RIGHT),new KeyBind(KeyEvent.VK_D)), MOVE_RIGHT(new KeyBind(KeyEvent.VK_RIGHT),new KeyBind(KeyEvent.VK_D)),
MOVE_LEFT(new KeyBind(KeyEvent.VK_LEFT),new KeyBind(KeyEvent.VK_A)), MOVE_LEFT(new KeyBind(KeyEvent.VK_LEFT),new KeyBind(KeyEvent.VK_A)),
JUMP(new KeyBind(KeyEvent.VK_SPACE),new KeyBind(KeyEvent.VK_W)), JUMP(new KeyBind(KeyEvent.VK_SPACE),new KeyBind(KeyEvent.VK_W),new KeyBind(KeyEvent.VK_UP)),
FALL(new KeyBind(KeyEvent.VK_DOWN),new KeyBind(KeyEvent.VK_S)), FALL(new KeyBind(KeyEvent.VK_DOWN),new KeyBind(KeyEvent.VK_S)),
ATTACK(new KeyBind(KeyEvent.VK_Z)), ATTACK(new KeyBind(KeyEvent.VK_Z)),
SLIDE(new KeyBind(KeyEvent.VK_CONTROL)), SLIDE(new KeyBind(KeyEvent.VK_CONTROL)),

@ -154,6 +154,7 @@ public class ConfigureControls extends Object{
case PLAY_GAME:{ case PLAY_GAME:{
RabiClone.OBJ.clear(); RabiClone.OBJ.clear();
RabiClone.ResetGame(); RabiClone.ResetGame();
Map.LoadMap(RabiClone.CURRENT_MAP);
RabiClone.OBJ.add(RabiClone.level_renderer = new LevelRenderer(RabiClone.p)); RabiClone.OBJ.add(RabiClone.level_renderer = new LevelRenderer(RabiClone.p));
RabiClone.StartGame(); RabiClone.StartGame();
}break; }break;

@ -6,7 +6,6 @@ import sig.engine.Panel;
import sig.engine.Rectangle; import sig.engine.Rectangle;
import sig.engine.Sprite; import sig.engine.Sprite;
import sig.engine.Transform; import sig.engine.Transform;
import sig.engine.objects.AnimatedObject;
import sig.map.Map; import sig.map.Map;
import sig.map.Tile; import sig.map.Tile;
import sig.map.View; import sig.map.View;

@ -1,7 +1,6 @@
package sig.objects.actor; package sig.objects.actor;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Action;
import sig.engine.AnimatedSprite; import sig.engine.AnimatedSprite;
import sig.engine.Panel; import sig.engine.Panel;
import sig.engine.Rectangle; import sig.engine.Rectangle;

Loading…
Cancel
Save