When the enemies weren’t picking gold up the number was always right, so it’s almost certainly not the counting, it’s more likely the enemies picking up gold for some reason.
(Though I experienced some other oddities like being able to stand on thin air in some circumstances when removing bricks from beneath myself and at one point safely landing on an enemy’s head.)
So the guard can fall into the ‘hole’ at various points. My guess is that he is falling in in the same frame as the hole is completed. A quick (and dirty ?) fix might be to remove the last ‘hole’ (Brick_Close_4) from the test as the hole is almost complete then.
I have changed the movement code so many times now, I might have introduced these errors
You can stand on their heads momentarily … some levels even rely on this.
Directly below you? You should be able to dig to the left or right of you. I have a threshold that checks how close to being in a cell you are before you can dig. Originaly, I was really strict but testers complained that it was hard to dig a line of holes quickly …
If I recall, the line getNearestX(2); can be changed to have a bigger or smaller number to change the ‘accuracy’ I forget whether bigger is more accurate or less.
// Burn to the left ..
if ((justPressed & A_BUTTON) && !(justPressed & B_BUTTON)) {
if (inCellY()) {
nearestX = getNearestX(2);
I sort of trick it by standing on the edge of the block.
The metric for deciding which block you can dig is larger than the metric for deciding if you’ve fallen off a block it seems.
I’m not complaining about that though, I’m just thinking that means that certain blocks that shouldn’t be solid might be being treated as solid under certain conditions.
One of the reasons I haven’t tested more is that once LodeRunner is on my unit it’s a little hard to get it off again, I have to rely on a well timed reset.
Version 0.99 is out! OK, before anyone points it out I am running out of version numbers before I go ‘gold’ (pun intended).
New Features / Fixes / Fudges
The gold issue!!! Turns out that if you died while the enemy guards were carrying a piece of gold, they didn’t give it up and when the level restarted all of the pieces were replaced on the level - hence more than expected pieces.
The issue @Dreamer was able to reproduce. Funny, I couldn’t do it on that level he was talking about but managed on Level 1.
You only get 1 extra life per level, not ten. Sorry.
Level 9 … a simple tweak to make it easier.
EDIT: You can’t dig a hole under a ladder enymore.
To Do
Sort out the ‘Men’ count after a restore. I cannot reproduce this one!
@filmote
The thing about the sound was the sound it makes when we die, it seems to loop until we get back in the game, so if you don’t press a button on the Try Again! screen it just loops forever.
I just finished level 9 with the latest version 0.99 and when climbing up to level 10, I couldn’t exit but the number of levels was going up (I stopped at Lvl 12). When restating my ardudboy I could start directly at level 12.
Edit: after playing for a little while, some notes
+1 on the level not ending but adding to the level counter (its possible to engage the winning screen by doing this)
+1 on the death music playing forever
A new issue is when you reach the max levels and then go back to the main menu, if you choose resume game the Arduboy freezes and you have to turn it on then off again to begin, when it should just go to a new game.
Other than that, the men still seem to be kind of buggy. No good way to describe this, other than some random oddities when playing.
The same happened to me as well. It’s like if the level doesn’t reset to load the new level. So it just reloads the game where it was when you climbed that ladder but still does a +1 to the level count.
To all those who wish to continue to play, go to level one and complete it, and bring the level number up to whichever one you are on, then run into one of the men. It will then load the level you selected. This has without fail worked for me.
You can also turn the Arduboy on then off again, however this method does not always work for me.