I Coded Snake but with Portals in JavaScript
Ғылым және технология
In this game dev experiment, I coded a snake game with portals using Three.js and JavaScript. Check out the playable demo on my website and let me know what you think!
📖 Code - github.com/SuboptimalEng/thre...
🐦 Twitter - / suboptimaleng
💻 GitHub - github.com/SuboptimalEng
🌎 Website - suboptimaleng.com
== [ Timestamps ] ==
00:00 Coding Snake
00:23 Adding Portals
00:54 Portal GLSL Shader
01:24 Multiple Portals
01:52 Food for Snake
02:59 Snakes and Portals Demo
== [ Tags ] ==
#suboptimal #metaverse #threejs
Пікірлер: 14
Released this game unfinished so that I can finally have a strong resume when applying to AAA game studios 😎
Very cool idea! I'm interestd to see how the records would look on this game
@SuboptimalEng
Жыл бұрын
Thanks, David! I didn't add a scoring system yet, but I suspect it'll have to incorporate the shortest path algorithm with Portals.
very cool. i'd recommend having the snake blocks go through inside a portal block to improve the visuals. kind of like the teleporters in the game Baba is You. maybe having the snake come out the other side on top of the portal block rather than beside it
@SuboptimalEng
Жыл бұрын
Thanks, Henry! I considered making each snake block slowly appear from the portal, but coding it was way harder than the current implementation. This is just version 1.0 so perhaps I can add it in the next iteration.
nice idea! i will try to copy it and make my own version but in canvas 2d .
I've played it for a while and it's fun
@SuboptimalEng
Жыл бұрын
That’s great to hear - thanks for checking it out Pawel!
quantum gravity snake
so the game is like snakes... BUT WITH EXTRA STEPS.
@SuboptimalEng
Жыл бұрын
Pretty much 👌
Hi Suboptimal Engineer , i am new in code 3d web.I want to know : babylon,aframe and unity ?What language is best and easiest to scale,drag and drop 3d object
What font and theme?
@SuboptimalEng
Жыл бұрын
I use a custom version of the Gruvbox theme with the Iosevka font.