v0.8.0: fixes/tweaks:
- damage numbers now appear where a sprite is arriving if it is moving - blob emitters can now have a defined bound within a cell - tweaked hero level exit/entrance behaviour - refactored game actions that are defined in GameAction.java
This commit is contained in:
@@ -37,10 +37,6 @@ public class Scene extends Group {
|
||||
if (Game.instance != null && event.pressed) {
|
||||
if (KeyBindings.getActionForKey( event ) == GameAction.BACK){
|
||||
onBackPressed();
|
||||
|
||||
} else if (KeyBindings.getActionForKey( event ) == GameAction.MENU){
|
||||
onMenuPressed();
|
||||
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -79,9 +75,5 @@ public class Scene extends Group {
|
||||
protected void onBackPressed() {
|
||||
Game.instance.finish();
|
||||
}
|
||||
|
||||
protected void onMenuPressed() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -66,8 +66,7 @@ public class Button extends Component {
|
||||
KeyEvent.addKeyListener( keyListener = new Signal.Listener<KeyEvent>() {
|
||||
@Override
|
||||
public boolean onSignal ( KeyEvent event ) {
|
||||
if ( active && !event.pressed
|
||||
&& KeyBindings.getActionForKey( event ) == keyAction()){
|
||||
if ( active && event.pressed && KeyBindings.getActionForKey( event ) == keyAction()){
|
||||
onClick();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user