Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

lesbianham

5
Posts
2
Topics
3
Following
A member registered Jul 10, 2019

Recent community posts

I really really like this idea! It’s totally cool if not, but would it be alright if attempt making my own game based on this idea. Let’s face it, it probably wouldn’t see a release at all, but if it does make it to that point, I’d definitely credit you!

Like I said though, it’s cool if you’d prefer me not to!

Been playing around with Cedric's lightcast, and finally got it working with the current version of Pixelbox. Now I'm wondering what I'd have to do in order to work with a directional light, rather than an area light (I believe this is the correct terminology, but please correct me if I'm wrong!)

Here's the lightcast source: lightcast

I'm not even sure if the code I'd have to alter is in main.js or somewhere else.

The picture below shows what the code is doing currently. Rather than this, I'd like to have it work more like a flashlight, so that the lit tiles correspond to the rotation of the sprite. How can I do this? Thanks!


Update:

Figured it out! For some reason, I had "Use  webGL for rendering" checked in settings. Unchecking this fixed it! I'm a very amateur programmer, so I have absolutely no idea why, but webGL was conflicting with the function ctx.beginPath.

I hope anyone else messing around with lightcast can look at this and learn from it!

(1 edit)

Update:

Changing  "require('pixelbox/pointer')" to "require('pixelbox/pointerEvents')" in main.js lets me run the code without receiving on error, however the code still does not seem to work properly.  It seems that nothing is displayed on screen until collision is detected.

I'll continue to update if I make any more progress.

(1 edit)

Been messing around with Pixelbox and exploring Cedric's GitHub for the past couple hours. I found the source for lightcast and thought it would be fun to play around with! Pixelbox asked me to update the code, which I've done. After doing so, trying to run results in the following error:


Error: Cannot find module "pixelbox/pointer"  from "C:/Users/user/Desktop/lightcast-master/src"


Should I not have updated the code? How can I fix this?

Thanks!