Portal Count 2 Three
This is a puzzle game inspired by valve’s portal.
As is a sequel game and its highly recommended that you play the first game in the series.
First Game: https://arcade.makecode.com/S90473-46771-28094-81404
Controls
WASD/arrow keys -Move and jump
B - Skip text
The rest of the controls are explained in game.
Prequal (optional): https://arcade.makecode.com/S50460-22710-83684-89933
I put a lot of work into this series and I hope you play them. All together there is 60 distinct levels and three boss fights. If you have an hour and half on your hands play this!
8 Likes
You did so well with this! can you tell me how when you walk through the portal, the sprite doesn’t instantly teleport?
1 Like
Its fairly complex but I’ll try to explain it the best I can. I constantly check if the player is overlapping within the portal and if they are I have a distance within portal variable. This variable can change based on how close they are to leaving either side of the portal. If variable’s value is closer to zero than 1 then I know the player is in the portal. And I use a render to screen loop from the sprite utilities extension to render a fake player on the other side of the portal with help from the distance within portal variable. (that’s why the play is only animated on one side of the portal.) Finally I check which direction the portals are facing and from here I can rotate the fake player to make it look authentic. I also use the portal direction to reroute the player’s velocity. All my code for the portals was greatly inspired by @richard. Here is their demo →
Sprite utility extension: https://arcade.makecode.com/S36103-68701-57573-37120
Hope this helps!
1 Like
@Bifrosty you continue to kill it with these games! so glad my portal demo was of use to someone
4 Likes
Sorry just bringing this up but you can just skip the puzzle if you jump through the black holes we have to do it in the end anyways.
1 Like
I’m hilariously aware of that skip
. My friend found it the day I released it and I still haven’t updated the game. I will eventually but if I was to update the link due to how the settings extension works it would erase all the level progress of players. I’ll probably fix it in a few days so be warned.
2 Likes
Also, you can skip through into green portal if you have a portal above and below the green portal, and move towards the green portal you clip into the portal before the gree portal disapates
1 Like