Maggin'

Posted by Nopykon on Sept. 23, 2015, 4:09 p.m.

I'm working on a flight game in javascript. So far, I have terrain, sky, a Nighthawk F-117 (maybe I should have a shoe instead…) and some wonky plane physics.

I'm not sure where the design should go. The hawk was made mostly as a placeholder, because it takes like 10 polys to model it. With that and the sky and the infinite terrain there (both making use of usual perlin noise), the game looks like it would play like Ace Combat. When I started working, I was thinking something more star-foxxy, more space exotica. Not sure where to take it next.

The game uses a software renderer that I wrote earlier this month to participate in JS13K with. It was going to be an awesome FPS and dreams and stuff, but ofc. I didn't have a game made in time for the 13th. :( JS13K is a compo where the challenge is to use max 13k of JS and data in a zipped folder.

The renderer itself uses HTML5 for the canvas and the function putImageData(array_of_pixels). The rest is my code manipulating the pixel array. Beware, JS rasterization of triangles is not very fast (ofc, my code could surely be a lot more efficient). :P The original idea was that I would save bytes using a tiny software renderer instead of WebGL, but now with no space restrictions, I'm using it for no good reason.

I could go on about the graphics engine, but instead I'm going to cut here. I'll just say that, technically, the graphics are closer to N64 than PS1. Please ask if you wonder anything!

Comments

Mega 8 years, 6 months ago

Very nice looking, reminds me of Terminal Velocity a bit if you've ever played that.

Quote:
I could go on about the graphics engine, but instead I'm going to cut here.
If you ever feel like it, it'd be nice if you wrote in depth about the graphics engine, I love that kinda thing!

Acid 8 years, 6 months ago

Please go on and on thx

Jani_Nykanen 8 years, 6 months ago

Well, this does looks amazing. I wouldn't have guessed this uses software renderer, it looks so smooth. I would really like to know more about how the graphics engine works.

Quote:
a Nighthawk F-117 (maybe I should have a shoe instead…)
You still have time to replace it! The world needs more games about shoes!

Nopykon 8 years, 6 months ago

Thank you guys. :) Okay I'll write in depth about the engine at some point.

@Jani, send me your shoe blender file… it would make for a good bomb target… >:D

Jani_Nykanen 8 years, 6 months ago

Quote:
@Jani, send me your shoe blender file… it would make for a good bomb target… >:D
No…. NO! No one shall bomb my precious shoe!

Nopykon 8 years, 6 months ago

Today, I have implemented ray collision with arbitrary triangle mesh (I just called the noise function to check if bullets were inside terrain before). I have changed bullets/beams/lasers, whatever they'll end up as, they're a bit big compared to the ship.