Flashlightgame banner

Flashlightgame

4 devlogs
29h 20m 54s

A platformer game in which you fight off shadows using your flashlight.

This project uses AI

GitHub Co-Pilot Code Completions & PR Reviews

Repository

Loading README...

Th1n0

Today I made a thing called a prism bomb, right now it’s just a triangle but it will be something like a prism once we get the graphics in place. The way it works is, you shine your laser at it until it explodes, and then it send light rays in all directions. I also made improvements to the debug rays so instead of it drawing lines through objects which is inaccurate, it now draws a line between the start of the ray and the hit point, or a ray in the direction the real ray goes if it doesn’t hit anything. It’s gotten more difficult to work on the project the longer it goes on but it’s whatever except not really because we have a deadline but yk hopefully we get done before then.

Image: The remnants of a prism bomb explosion

Attachment
0
Th1n0

Today I was able to make the reflections show up in game using a freeform light. It’s not perfect since it kind of “leaks” light in some scenarios, it’s hard to explain. But anyways it works well for what it’s for. Which is some simple puzzles and maybe to make the final boss fight more interesting. Making it work took some hard work but I will try to explain it to the best of my abilities. So first it sends out one ray from the flashlight, which uses the previously developed reflection system to get accurate reflections. It then saves the reflections positions and uses it as points for the freeform light. Anyways you can see it working in the image and it works with any shape as long as it has a mirror tag.

Attachment
0
Th1n0

I have improved the flashlight by adding more settings as well as adding reflections. It can now reflect of mirrors accurately which will be used for puzzles. I have also started working on a system for lights in game matching the flashlight. Right now the normal flashlight uses a spotlight which is accurate but for the laser version I will be using a freeformlight. Sorry for not devlogging for 16 hours :(((!!!.
Image: stress test with a lot of reflections in different places.

Attachment
0
Th1n0

I have been working on a flashlight since it is one of the core parts of the game. I’ve made sure that it is highly customisable since we don’t know the specific details of how the flashlight should work. The flashlight also follows the players mouse.

Attachment
0