Log In  


Cart #portal_golf-3 | 2021-09-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
32

Chain portals together to collect all the gold!

Portal Golf is a physics puzzle game with portals. Place portals around the level in order to get the ball to collect every gold bar. You have no control over the movement of the ball and can only place portals before you start the run. Try to use as few portals as possible to earn medals, or just fill the whole level with portals and have fun!

Detailed Instructions are in-game

Controls:

  • Left click on any wall with a white edge to add a portal
  • Left click and drag an existing portal to move it somewhere else
  • Right click to delete an existing portal
  • Press C to start or stop a run

If you need more help, I made an in-depth guide over here


Note that the game plays much more smoothly on desktop than web - consider downloading it. This is the full version of a game jam game I made last year. Follow me for more gamedev! https://twitter.com/MaxBize

32


would like to play it but you didn't remove the include ;p


1

@SmellyFishstiks OOF! Fixed it


Incredible work!


Excellent portal mechanics. I wanted to make a Portal-like game. I'm gonna check out your code :)


@professir thanks!

@qequ I apologize for the how messy the code is :P Here's a quick orientation: the ball is actually called 'cash', all of the ball's movement code is in rigidbody_t:update, and all of the portal management code is in portal_manager_t:update. The movement physics is based on this article and the portal stuff is all homegrown. I have somewhat detailed commit messages on github which might help. Feel free to ask questions here or DM me on Twitter. Happy exploring!


1

I first heard about this game on Reddit a year ago but only recently got round to making a video for it. I really liked this a lot:

https://youtu.be/XrvrQp7Rjy8


@inphanta thanks for sharing the recording! I always love watching people play my games :D

You were playing it on hard mode! You can click and drag portals to move them or right click to delete them - no need to reset every time you want to make a change

Also, you somehow managed to hit a bug I've never seen before by placing a portal off screen at the start of level two!



[Please log in to post a comment]