Hey everyone,
This started off as an experiment, while playing around with "dynamic" shadows for my game �Emo Guy� (Which has been shelved due to poor planning on my part and a massive loss of interest.) I have been reading and reading and reading up on the use of dynamic shadows. Unfortunately at present this is can be achieved with some cleaver imaging and positioning, or with the use of the Canvas plug-in and Turning off WebGL. This isn't the most elegant way to achieve this, but I figured I would attempt to create something using R0J0hound 's example, since I'm a sucker for dynamic lighting and shadows on 2D games.
Played around, pulled hair out, and came up with a quick little game w/ shadows. I showed my progress to a roommate and to my surprise he was not listening to a word I was saying when explaining the game, for he was like a little kid playing Mario. He immediately requested more levels after an hour of play and wanted some added mechanics like wall jumps. It then dawned on me that I basically made a SMB clone.
RGB
You are a fragile pixel that is called on when a display goes out. The cause of the outage is bad pixels.
There are 3 bad pixels spread out through each level.
Each jump takes a little bit off your health/brightness.
Hard Lands from jumping too high will result in a increased brightness loss.
High jump falls - result in death.
Each pixel grab changes your color in order of RGB - Red, Green, Blue
There are laser/beam traps that you must avoid and time to advance or to obtain a bad pixel, along with gaps and pitfalls.
Controls:
WASD = Left Right - in game : Up, Down - at menu
Space = jump
N = Speed Boost
P = Pause
You can jump off walls � Max 2 jump offs
If you use JoyToKey for controller mapping, you will be 10x more pleased with gameplay.
Scoring is based on Total deaths and hard lands. Lowest score is ultimately the best score.
RGB DEMO
*Note: jumps height/deaths with shadows on, on ill equipped hardware, can result in unrecorded deaths or weird random deaths. This is a result of the fall height mechanics being directly effected by FPS. If you experience this, the best fix is to turn off shadows in the options menu. They are OFF by default.
Tested Browsers: Chrome... Use Chrome
I tested two PC platforms.
Laptop: i5 and Intel w/ integrated graphics : Shadows on, is a bit laggy 30FPS
Desktop: Xeon and 2GB nvidia GTX650ti : No issues 60 FPS
Credits for shadows:
Shadows: R0J0hound - Shadows capx
Canvas Plugin: R0J0hound - Canvas Plugin
Still A WIP, but Let me know what ya think and if you find any issues or glitches.
Thanks!
Chrisfacecjf2013-03-09 15:39:38