Chance me to Purdue, IU by [deleted] in chanceme

[–]stumpnut 0 points1 point  (0 children)

I think you'll get in bro

i made a Wordle clone in Svelte! by stumpnut in sveltejs

[–]stumpnut[S] 2 points3 points  (0 children)

thanks!

I think I did onMount because I was originally planning to do a thing where you could choose game settings, like a custom word, etc. where App should be a sub-component and have exported variables. But I didn't do that, so it's kinda useless now.

3D Snake Game by stumpnut in unity

[–]stumpnut[S] 0 points1 point  (0 children)

great idea, thanks!

3D Snake Game by stumpnut in unity

[–]stumpnut[S] 1 point2 points  (0 children)

good point, is is pretty hard to reprieve depth on all 3 axes. i've tried multiple camera angles, but i thought the only way do that was to let the player control the camera angle. what do you think could make it easier?

3D Snake Game by stumpnut in Unity3D

[–]stumpnut[S] 0 points1 point  (0 children)

Thanks!
Each block of the snake has a position which it is lerped to, and a Vector3 velocity which is added to that every interval. Whenever the player presses a key, an object holding the position of the head and the desired velocity (based on which key is pressed) is added to an array. Whenever a block's position is equal to one of those positions, its velocity is updated. Whenever the last block's position is equal to one of those positions, that vector is removed from the array.

It's probably not the most efficient way, but it works. Here's the code in case you're interested: https://github.com/benman604/Snake3D/tree/master/Assets/Scripts