Search found 118 matches

by erasio
Sat Jan 20, 2018 7:45 pm
Forum: Support and Development
Topic: love.graphics.print( coloredText ) question
Replies: 7
Views: 6848

Re: love.graphics.print( coloredText ) question

SetColor is a filter applied to everything that's being drawn.

Since it moved to numbers between 0 and 1 in 0.11 you can imagine it like every color is multiplied by what's been set in setColor.

0 * 1 = 0. So no blue will be rendered.
by erasio
Fri Jan 19, 2018 10:27 pm
Forum: Support and Development
Topic: Help with 2D lighting
Replies: 14
Views: 10711

Re: Help with 2D lighting

I'll keep it short and just say no.

In theory possible but the CPU is soo much worse at calculating things like light.

Dynamic light is relatively expensive. If you can't use shaders for it on your laptop it's very most likely not capable of displaying dynamic light in any form.
by erasio
Fri Jan 19, 2018 8:56 am
Forum: Support and Development
Topic: Help calling Love functions from a module
Replies: 3
Views: 3860

Re: Help calling Love functions from a module

Nothing to laugh about. I just sat here and wondered for quite a while myself. It's not that obvious. The source of this issue is this line: module(...) The module function encapsulates the following code. Such that it's public functions can be used when required but that the file itself has no acce...
by erasio
Fri Jan 19, 2018 8:44 am
Forum: Support and Development
Topic: Help with 2D lighting
Replies: 14
Views: 10711

Re: Help with 2D lighting

Lighting is done via a shader on the graphics card. So the normal map needs to be used there as well. Since it's not changing the color but just defining additional information to have the light look more realistic. An introduction to shaders and lighting I liked quite a bit is by catlike coding . I...
by erasio
Thu Jan 18, 2018 6:05 pm
Forum: Support and Development
Topic: Help with 2D lighting
Replies: 14
Views: 10711

Re: Help with 2D lighting

As zorg was mentioning. The "top down lighting" can work with sidescrollers too.

What exactly are you missing?

Or to reword that question. What's the difference between top down and sidescroller lighting?

Knowing that makes helping a lot easier :nyu:
by erasio
Thu Jan 18, 2018 4:33 pm
Forum: Support and Development
Topic: confused about print() statements
Replies: 3
Views: 2657

Re: confused about print() statements

I know that some consoles don't update in real time but simply stack up prints and display them at a later time (in my case this was usually after the game closed). The solution was to add this at the top of the main.lua: io.stdout:setvbuf("no") Which explicitly states to not buffer but to...
by erasio
Mon Jan 15, 2018 5:38 pm
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 10
Views: 18170

Re: MULTIPLAYER ONLINE GAME - how to do?

The topic of highly scalable networking systems is a huge one. We will not be able to explain it here. There are lots of options and possibilities for how to setup your game and networking. And they all depend on you knowing what you will be creating and knowing the options themselves. We can withou...
by erasio
Mon Jan 15, 2018 8:19 am
Forum: Support and Development
Topic: Access temporary / cache folder?
Replies: 1
Views: 1526

Re: Access temporary / cache folder?

Love2d has a dedicated save folder which is the only folder you can write to with love.filesystem. The location is platform independent (so different paths for different systems). You can just create a temp folder there and clear it regularly. Exactly what you're asking for isn't possible with love....
by erasio
Thu Jan 11, 2018 8:32 am
Forum: Support and Development
Topic: Multicore/Threading help?
Replies: 7
Views: 8826

Re: Multicore/Threading help?

Wow. Thanks for that explanation. I think I kinda get it. [...] It's more about outsourcing stuff thats unnecessary to compute on the main thread like eyecandy for example snowflakes in the foreground which have nothing to do with the game-mechanics but I need many of them and don't wanna pollute t...
by erasio
Wed Jan 10, 2018 6:00 pm
Forum: Support and Development
Topic: Multicore/Threading help?
Replies: 7
Views: 8826

Re: Multicore/Threading help?

Alright. Let's begin with the basics. The CPU is responsible for calculations of all kinds. It does that by getting commands which detail what calculations should be performed. This alone is a more complicated process than you might imagine. Accessing the hard drive takes incredibly long (from a sof...