One Light by baggyn

[raw]
made by baggyn for LD28 (COMPO)
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

Feedback

capnramses
16. Dec 2013 路 12:54 UTC
i can't start; i get the intro screen as in your 2nd screenshot but it won't accept my input :(
馃帳 baggyn
16. Dec 2013 路 19:55 UTC
Ow :( Click the game to make sure it has focus. Also what browser/OS you using?
capnramses
16. Dec 2013 路 22:32 UTC
chrome, linux. just firing up my windows vm...
capnramses
16. Dec 2013 路 22:39 UTC
haha! i got it working on chrome+windows. no idea why it would be different. anyway, nice concept using light! on the second level it dawned on me that id wasted half my fuel already and that it was going to be very dark for the next few levels ;-)
馃帳 baggyn
16. Dec 2013 路 22:50 UTC
How strange, don't have a linux box to test it on unfortunately. Remember, shrinking the light uses less fuel.
bspa
17. Dec 2013 路 00:11 UTC
Same problem on Firefox on Linux :( For what it's worth, here's a stacktrace from the console:

[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
olafsworld98
18. Dec 2013 路 13:30 UTC
on windows the screen is just blank forever
Dr. Mo
20. Dec 2013 路 04:21 UTC
Oh wow, I don't get to refill the lamp at all? This game is always over in about 30 seconds when I play it. Nice bump-mapped background though.
SimianLogic
21. Dec 2013 路 03:01 UTC
Nice lighting effect -- the spiral one tripped me up the most. Beat it on the 4th try with 5.6% oil left!
AlexFili
04. Jan 2014 路 10:00 UTC
Clever use of the theme. Fairly clever game mechanics and gets hard fast. Good effort!
BradleySmith
04. Jan 2014 路 17:31 UTC
I enjoyed the level design in this. :)