Game Off Update #1: Graphics
This is part of a series documenting my game development process for Github's Game Off. Check out the past posts:
I have been working on my game. It's still in the early stages, but I'm hoping after I lay the groundwork that I will work faster. I'll be posting more at that point too. (I've also been out of town this week.)
I spent probably too much time figuring out what technology to use. I played around with LLJS to see what performance wins it gives, and it's not clear that it will give me enough to worry about in this tight timeframe. The biggest win is that it removes almost all GC pauses, but I think I can simplify my game so that modern browsers are fast enough .
So here is what I have:
It's a basic terrain using WebGL from scratch. I didn't use three.js because I'm really used to OpenGL and I want to get to know WebGL specifically. I used three.js at first, but the amount of work to figure it all out is too much right now.
Two libraries that I've found very helpful so far:
- simplex-noise.js: An implementation of simplex noise, a faster algorithm than Perlin Noise
- gl-matrix: High-performance matrix and vertex calculations using typed arrays
The pixelation is on purpose. I'm considering integrating the pixelated aesthetic with a 3d game. I think it looks really cool, and also removes a lot of work with detailed 3d stuff.
I also sat down and ran through ideas for a specific game mechanic. I'm not exactly sure what it will be like, but I have an opening scene in mind that I really like and I'm simply going to pursue that. It will most likely be some sort of strategy game.
My next step: Flesh out the engine code with basic 3d collision detection, and nail down a game mechanic.