-
Notifications
You must be signed in to change notification settings - Fork 18
Add special coin/ability section to main scene #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This scene is identical to coin.tscn except that it is not in the "coins" group. This will be used to add extra coins to the scene that can't be collected with the default game setup: you have to give the player additional abilities. Annoyingly if scene A is in a group, then you can't remove instances of A from that group; you also can't make an inherited scene B that inherits from A and remove B from the group. We could do it the other way round: have a basic coin which is not in the group, and then make coin.tscn inherit from it just to set the group. But that seems very strange. Or we could not put coin.tscn into the group, and force the level designer to add every non-special coin to the group by hand. This seems error-prone. Duplicating the scene seems the least-bad option; it's a very simple scene, and the (simple) script is shared.
This matches how coins and platforms are grouped and helps organise the scene a bit.
This adds a new section to the right-hand side of the main scene, with golden coins that can only be collected by using special abilities: - You must teleport to be able to get into the area at all. (Even if you enable double-jump, you can't jump over the central dividing wall - you would have to massively increase the jump height or enable infinite double-jumping to get over it!) - You must become small to get into a narrow cave and collect the coin within. I have tried to lay the level out to make it very difficult to teleport onto the coin. - Another coin is in a cave, guarded by an enemy. The cave is not high enough to stomp on the enemy (and to make sure I made it non-stompable). So you must phase through it, unphase to pick up the coin, and then phase back out. (Actually I think you could probably jump over the guard in small mode if you tried hard enough!) I have tried to make it impossible to teleport onto the coin but if you can pull that off, you deserve it. - Finally there is a run of coins high in the air that are best reached by gliding. You can get these by teleporting or double-jumping but it's easiest by gliding.
|
Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/specials-area. (This launches the game from the start, not directly at the change(s) in this pull request.) |
|
I love the idea of the secret place. Great one, @jgbourque @wjt |
|
Oops, I think I merged this by mistake, or deleted the patches, or something 😬 Edit: fixed |
|
Yeah this looks like a great adjustment here. |
jgbourque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This adds a new section to the right-hand side of the main scene, with
golden coins that can only be collected by using special abilities:
You must teleport to be able to get into the area at all. (Even if you
enable double-jump, you can't jump over the central dividing wall -
you would have to massively increase the jump height or enable
infinite double-jumping to get over it!)
You must become small to get into a narrow cave and collect the coin
within. I have tried to lay the level out to make it very difficult to
teleport onto the coin.
Another coin is in a cave, guarded by an enemy. The cave is not high
enough to stomp on the enemy (and to make sure I made it
non-stompable). So you must phase through it, unphase to pick up the
coin, and then phase back out. (Actually I think you could probably
jump over the guard in small mode if you tried hard enough!) I have
tried to make it impossible to teleport onto the coin but if you can
pull that off, you deserve it.
Finally there is a run of coins high in the air that are best reached
by gliding. You can get these by teleporting or double-jumping but
it's easiest by gliding.
I had to add a new special_coin scene to avoid these coins being counted towards the goal. The idea is that all these coins are optional, but they're there to entice you to explore the game.
Depends on: