- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
I didn't read *all* of the code, but I read your loop. The problem you're having makes perfect sense if you think about it from an objective standpoint: for(m_itr.Start(); m_itr.Valid(); m_itr.Forth()) Look at the above for-loop declaration. It checks if m_itr.Valid() == true, which means it's going to keep cycling …
From line 293, you have: **if(keyObtained) { switch(mazeArray[g_personY*mazeWidth+g_personX]) { case 'K': { mazeArray[g_personY*mazeWidth+g_personX] == 0; } }** } But I don't understand. in case 'K' you just make a comparison. Is that supposed to be an assignment? If so, simply delete one of the equals signs. I also don't understand …
I don't want to tell you exactly how to do the problems, because that wouldn't be of any good to either of us, so I'll just give you some hints. Q1: Use the % operator to check the remainder of any number divided by another. The remainder has to be …
**[EDIT: I only just realized your post is Java, and my recommendation is C++. However, the basic logic is still of use to you. I dunno if there are enums in Java, but you could just easily use integer values or, a bool. ]** In your SpriteAnimation class add this: …
The End.
Liuqahs15