One Light by baggyn
You are lost in a cave with only one lamp. You have to find your way out before you run out of oil. Making the light bigger will reveal more of the map, but use oil faster. Shrink the light to conserve more oil.
This game was written in C++ using my open source 2D rendering engine Flux. It was then cross compiled to Javascript and WebGL.
Controls:
WASD / Arrow keys - Move
Q E - Grow / Shrink light
Concepts:
Find the blue exit
If the exit is grey then it is locked
If it is locked collect all the green keys
Hitting a wall will cause oil to spill
This game was written in C++ using my open source 2D rendering engine Flux. It was then cross compiled to Javascript and WebGL.
Controls:
WASD / Arrow keys - Move
Q E - Grow / Shrink light
Concepts:
Find the blue exit
If the exit is grey then it is locked
If it is locked collect all the green keys
Hitting a wall will cause oil to spill
| Web | https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html |
| Source | https://github.com/baggyn/OneLight |
| Original URL | https://ludumdare.com/compo/ludum-dare-28/?action=preview&uid=6680 |
[00:14:49.209] Error: successfully compiled asm.js code (total compilation time 238ms)
[00:14:51.321] "preload time: 2053 ms"
[00:14:51.564] Error: WebGL: enableVertexAttribArray: index -1 is invalid. That probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. @ https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1990
[00:14:51.565] Error: WebGL: vertexAttribPointer: index -1 is invalid. That probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. @ https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1993
[00:14:51.569] Error: WebGL: enableVertexAttribArray: index -1 is invalid. That probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. @ https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1990
[00:14:51.569] Error: WebGL: vertexAttribPointer: index -1 is invalid. That probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. @ https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1993
[00:14:51.601] uncaught exception: Assertion failed: E_OPENGL_ERROR == E_OK, at: src/FluxSpriteBatch.cpp,158,updateVBO at stackTrace@https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1270
___assert_fail@https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:1704
Runtime.dynCall@https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:725
_emscripten_set_main_loop/Browser.mainLoop.runner@https://dl.dropboxusercontent.com/u/4998298/ld/onelight.html:6369