DEV Community

Cover image for πŸ‘Ύ Krescent - My experience on participating Github Game Off 2020 Game Jam on Itch.io πŸ‘Ύ
Kevin Moe Myint Myat πŸ‘¨β€πŸ’»
Kevin Moe Myint Myat πŸ‘¨β€πŸ’»

Posted on • Updated on

πŸ‘Ύ Krescent - My experience on participating Github Game Off 2020 Game Jam on Itch.io πŸ‘Ύ

πŸ˜… Last month I participated in a game jam on https://itch.io with a browser game that I've co-developed with my colleague from work. It's called...

Krescent ( πŸš€ Moonshot Themed Game πŸŒ™ )

The submission can be viewed here ...

https://m3yevn.itch.io/krescent

The actual link to the game is at ...

https://krescent.vercel.app/

THE IDEA πŸ’‘

The theme is called Moonshot, so I was pretty sure I'm going to build a planetary theme. After that, as I came from web development background, I started research Javascript games and encountered this game tutorial called The Aviator which is created with ThreeJS.

Ref: https://tympanus.net/codrops/2016/04/26/the-aviator-animating-basic-3d-scene-threejs/

This game has the basic idea of what I wanted to do which is an endless running game on the moon avoiding rocks and eating points. Very basic and easy for beginner game developer!

THE TECH STACK πŸ“š

  1. Programming - Javascript
  2. Framework - Nuxt VueJS
  3. 3D WebGL Engine - BabylonJS
  4. Hosting - Vercel
  5. OS wrappers - ElectronJS

Javascript as a core programming language is guaranteed since that's the one that I'm comfortable with and luckily my colleague who is a python developer agree to explore it.

For the framework, VueJS Nuxt is a choice because I'm used to work with React in professional life and that's why I took it up a notch and tried something different. However, I've got a few Vue experience on personal projects and hobby projects. Nuxt was chosen just for the quick scaffolding and famous DX (Developer Experience)

For 3D WebGL engine, I would like to try ThreeJS because it's well known across JS world and I'm interested to test it out. But then again, my colleague would like to explore BabylonJS and I also agree to it since BabylonJS has a good documentation as well as a good reputation comparable with ThreeJS.

THE IMPLEMENTATION βš’οΈ

We have to used up our hard-earned weekends developing the game and researching. At first, coming up with a boilerplate was easy because of Nuxt 's excellent toolings. Vuex is also used to manage the state across different components. The difficulty came when we started touching on Canvas.

As for convenience I used Vue-Babylonjs wrapper initially which has a learning curve abit deeper that we expected. And the documentation doesn't seem to help us also. The wrapper library has done a great job in starting the scene and mesh objects but when it comes to real dirty job, it lacks the freedom to program.

That leads us to implement our actual game logic like collision, moving, rotation etc to use the vanilla babylonJS object approach since it has the playground and big community with lots of examples to play with. Surprisingly, when we were doing the development, BabylonJS just released the new documentation as well which is super helpful for us.

After 3 weeks of grinding our weekends and some weekday nights, the basic functions of game has done. I took it as a win. The last week, we just used it for improvements and garnishing with better game experience.

THE LESSON πŸŽ„

Although we didn't win, that was not our intension in the first place. Our intension was to try out game development in action and yes, we felt it. Game development, as fun as it is when the players are playing, the sweat and tears that the developers have to put in to details to create a good game is just admirable. I got a lot of fun working on that and it helps me to grow in my day-to-day developer career also. Hope you guys like my sharing!

How about you guys also?
Have some game development experience?
❓❓❓❓
Please share in the comments below. πŸ‘‡

The Github repo for the project
https://github.com/m3yevn/krescent

Top comments (0)