Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

this probably isnt a huge deal for anyone else, but last night i found out that one of my major issues with haxepunk (no way to manipulate bitmaps directly) isnt actually an issue. so now: lighting!!!!

im not gonna use darkness tooo much, mostly for underground biomes. but now i can have another thing you can upgrade: your scanner's flashlight!

(you also may have noticed the presence of water. water probably won't be in that specific biome, im just reluctant to show other tilesets for fear of spoiling too much.)

(+4)

related: variable distance means i can scale the darkness depending on how far down you go. entering: the caverns!

gonna start making new creatures/plants for this biome :)

That lighting is simple, but it looks really nice!

(+1)

yeah! i wanted something super-simple. ever since seeing how nuclear throne did it ive wanted to do that kind of lighting for my game.

I love the look of it, though it's a bit weird that the player and cursor have separate light sources rather than a light shining from the player towards the cursor. Is it intentional that there's actually two light sources or is that just the limitations of the lighting right now?

i was considering that, and i still might try it out because it would probably look cool.

the lighting is only limited by my intelligence :P if i do too many calculations when i go thru all the pixels the game can lose a lot of frames very quickly. i dont think that should be a problem here, but we'll see.

Ah, as a fellow programmer, I understand. Good luck!

(1 edit)

update on the light thing: i did the 'check if pixel is between the scanner and the player and light it up if its close' thing and it looks...much worse than expected :P



what i had pictured in my head was basically a triangle facing the scanner with the tip centered on the player which would probably take a lot more time to figure out in my lighting system, so i think im done with this idea

Oh wow, yeah that does look weird, haha. Oh well.