My New Spacecraft Browser Game with Vanilla JS
I enjoy creating mini-games or implementing interaction designs on the web.
And here is the browser game I've made recently!
GitHub - danialdezfouli/spacecraft-game: Vanilla JS game
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…
Are you new to Canvas?
Doing basic 2d stuff with canvas is so easy and has a main loop to draw and update that you can do this with a setInterval or for smoother animations with a recursive requestAnimationFrame
I have used canvas for stars, and I implemented most elements via DOM, and if you don't use a library like gsap, it would be hard to implement non-linear effects in canvas.
if you want to create a real-world browser game, it would be better to use libraries(engines) like pixijs.com for better performance and also better developer experience; I don't do it because I want to improve my skills and have something challenging for a weekends
And finally, for me, it's interaction design and not just a game which I always follow codrops and awwwards.
Feel free to ask questions or share your thoughts with me :)