Contra GLSL shader game UPBGE

Contra is a GLSL shader based game.

To run this game you need UPBGE 0.1.8 or higher.


https://www.dropbox.com/s/kdp0amzwgzn80vu/Contra.blend?dl=1

HG1

Do you have some kind of framework or a converter to make such games ?

I must admit that its pretty cool !

Do you have some kind of framework or a converter to make such games ?

Please note. The GLSL shaders itself are not made by me. Look into “Text” description for the author and original Shadertoy link.
I have only do the python scripts and changed the shaders to get it work in UPBGE.

Back to your question. The shaders are all manually typed. The sprites are mostly made by grabbing the original color and position pixel by pixel from the original sprite.

Wow the nostalgia :slight_smile:

yea this is pretty cool.

Oh no, the keyboard shortcuts are no good…

@ Akira_San

You can change it in _BufferA.fs (Java key mapping).

const float KEY_A                    = 65.5 / 256.0;

You can find the corresponding numbers in Input.py


keyboard_map[bge.events.AKEY] = 65
keyboard_map[bge.events.BKEY] = 66
.
.
.

So if you want to use KeyB to fire you have to change the value of the KEY_A.

const float KEY_A                    = 66.5 / 256.0;

ok, will try.

Very interesting, I like it, I’ll try it