S
S
Sland Show2016-11-04 14:22:07
Java
Sland Show, 2016-11-04 14:22:07

How to work with light in LibGDX?

Good day.
I am writing my project - 2D platformer for Android. In general, the basis is already ready (ie the basis of the game itself, the "switch" between states, the idea of ​​the game, etc.) and it remains to start with all sorts of visual effects.
The fact is that I want to make different shadows from the light, but I don’t know how to do it better.
I found a couple of tutorials on Google , but based on them it is also not entirely clear what kind of RayHendler the author uses.
I just can’t understand what kind of RayHendler class is this , which is used when writing light, since my idea does not find this class at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
exenza, 2016-11-04
@SlandShow

RayHandler - box2dLights library class
Add it to build.gradle:
Here is a short howto and here is an example of usage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question