Skip to content

Commit

Permalink
Adventurer sprites now deleted when they die.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarkonnen committed Mar 13, 2012
1 parent 7ede737 commit c15130b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/com/zarkonnen/spacegen/AgentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public void behave(Agent a, SpaceGen sg) {
a.getLocation().strata.add(new LostArtefact("buried", sg.year, art));
art.specialValue = a.resources / 3 + a.fleet / 5 + 1;
sg.agents.remove(a);
a.setLocation(null);
confirm();
return;
}
Expand Down
2 changes: 2 additions & 0 deletions src/com/zarkonnen/spacegen/GameControls.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public void processInput() {
if (input.keyDown(VK_SPACE) && w.cooldown == 0) {
w.confirm = true;
w.cooldown = 2;
return;
}
if (input.keyDown(VK_R) && w.cooldown == 0) {
w.autorun = !w.autorun;
w.cooldown = 2;
w.confirm = true;
return;
}

if (input.keyDown(VK_S) && w.cooldown == 0) {
Expand Down

0 comments on commit c15130b

Please sign in to comment.