Live data from Hacker News

Spherical Snake

kevinalbs.com

121–130 of 141 posts

Re: Spherical Snake

#122

I was pleasantly surprised when a friend texted me after work to say this game was on Hacker News. I hope it brought some small joy to your day. Some comments helped identify some minor tweaks. I do not expect to have time or motivation to make bigger changes soon. Feel free to make GitHub issues.

Hypersnake! We need hypersnake! Snake on the surface of a hypersphere [1]! (Cubes can come too.)

[1] https://mathworld.wolfram.com/Hypersphere.html

Re: Spherical Snake

#124

I was pleasantly surprised when a friend texted me after work to say this game was on Hacker News. I hope it brought some small joy to your day. Some comments helped identify some minor tweaks. I do not expect to have time or motivation to make bigger changes soon. Feel free to make GitHub issues.

You might find this fun. There this sonic the hedgehog special stage from sonic three that takes place on a sphere. Recently I made a remake of it and they project a 2d grid onto a sphere, but the projection adjusts as you move, so no matter where you go, you never end up at a pole. The poles always stay on your sides.

The other interesting bit is that you can have an arbitrary map size and just repeat it. The game is 32x32 but it could be whatever.

https://blue-sphere.fly.dev/play?map=s3-01

Anyway, great stuff you have here!

Re: Spherical Snake

#126

I was pleasantly surprised when a friend texted me after work to say this game was on Hacker News. I hope it brought some small joy to your day. Some comments helped identify some minor tweaks. I do not expect to have time or motivation to make bigger changes soon. Feel free to make GitHub issues.

I just want to say I love this idea and execution. Great work, please make more :)

Re: Spherical Snake

#127

Lovely. Would love if it canvas was bigger on desktop. Zoomed in 3x is much better but pix-elated. The first 50 or so levels were very easy. Started getting difficult around 90+.

This should work: function scale(multi) { cnv = document.getElementsByTagName('canvas')[0]; cnv.width = 358 * multi; cnv.height = 360 * multi; window.focalLength = 200 * multi; window.init(); } scale(4);

Very nice.

Paired that with cnv.requestFullscreen() for a much better experience.

Then I started noticing the dropped frames every few seconds due to GC pauses.

> Major GC

> Duration 43.52 ms (self 26 μs)

> Collected 53.1 MB

Ouch!

Re: Spherical Snake

#128

I was pleasantly surprised when a friend texted me after work to say this game was on Hacker News. I hope it brought some small joy to your day. Some comments helped identify some minor tweaks. I do not expect to have time or motivation to make bigger changes soon. Feel free to make GitHub issues.

You might find this fun. There this sonic the hedgehog special stage from sonic three that takes place on a sphere. Recently I made a remake of it and they project a 2d grid onto a sphere, but the projection adjusts as you move, so no matter where you go, you never end up at a pole. The poles always stay on your sides. The other interesting bit is that you can have an arbitrary map size and just repeat it. The game i…

Is this AI made?

Re: Spherical Snake

#130
What is the strategy after it gets longer than a great circle? Wiggle with constant frequency to "fold" it? Constantly move in one direction to form a spiral? Something completely different?
Post reply on HN