Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Try my game!!! WOOHOOO!!! Revamped my coin collector game. I think it's EPIC!

For a challenge, see if you can win the game without losing any lives. Can you win with 7 lives? I've been working on and off on this for a while. Tell me what you think!

https://w.trhou.se/xayi2c1hlv

3 Answers

Steven Parker
Steven Parker
231,153 Points

Is it possible to not lose any lives? The layout makes it seem like to most you can have at the end is 4.

One small suggestion — you should probably not get the "win" message until after you collect the red badge. Otherwise, good job! :+1:

Hi Steven,

Thanks so much for helping me with this. I think the poison's can be jumped over or not bumped into depending on how skillful the player is. I believe I've avoided each poison at one time or another. I'll check into though. \

Ahh yes! I forgot about collecting the badge first. I'll work on that.

Steven Parker
Steven Parker
231,153 Points

I believe he platform in the upper left is too close to the ceiling to jump over the bottle, and the two uppermost platforms on the right are too close to be able to jump the bottle on the 2nd platform down.

https://w.trhou.se/xayi2c1hlv

Must collect badge now before winning : )

Steven Parker
Steven Parker
231,153 Points

But can you avoid all the poisons? :speak_no_evil:

https://w.trhou.se/xayi2c1hlv

YES!!! Keeping all lives is attainable, challenging, but attainable. Just did it! And must collect badge to win! : ) Thanks so much!!!

Steven Parker
Steven Parker
231,153 Points

OK give us a hint about the technique/path needed to do that.

Ok, here are some hints to avoid losing any lives with the poison.

  1. The first poison has to be walked under.
  2. One poison (between platforms) must be approached slowly and must not get too close.
  3. Once close but not too close, jump and arrow to the right at the same time until the poison has been jumped over.
  4. Avoid other poisons with platforms that allow for escape.
  5. To collect coins next to poisons, approach very slowly, just enough to collect the coin.

Let me know how you fair on this. It can take a few tries to get it just right.

https://w.trhou.se/xayi2c1hlv

Steven Parker
Steven Parker
231,153 Points

Haha — you changed the platform and bottle positions since I asked about it! :see_no_evil:

Yea, I was certain it wasn't possible before. :wink:

Hahaha, Oops! ; ) Thanks a bunch!