Search found 16 matches

by SNK1337
Sat Nov 08, 2014 6:14 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120295

Re: Löve "Light vs. Shadow" Engine v2

I see what you mean but I think you are still doing something wrong. first off if you want a stationary light you should just set the position when you create it like this -- create light at 500,500 lightMouse = lightWorld:newLight(500, 500, 255, 127, 63, 300) also I tried the exact same code light...
by SNK1337
Fri Nov 07, 2014 3:01 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120295

Re: Löve "Light vs. Shadow" Engine v2

Thank you for doing this! I've been wanting to create a game with that engine for a while now, and this will probably make the process much more painless. I'm having an issue however: Am I doing something wrong, or is the translation of the light source somehow buggy? For example, when setting it t...
by SNK1337
Thu Nov 06, 2014 9:37 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120295

Re: Löve "Light vs. Shadow" Engine v2

Thank you for doing this! I've been wanting to create a game with that engine for a while now, and this will probably make the process much more painless. I'm having an issue however: Am I doing something wrong, or is the translation of the light source somehow buggy? For example, when setting it to...
by SNK1337
Sat Aug 23, 2014 3:47 pm
Forum: Support and Development
Topic: Can I use C++ code in my game?
Replies: 9
Views: 11598

Re: Can I use C++ code in my game?

All I know is on the FFI link I sent. I have personally never used it. Note that this won't allow you to "use C++". It will allow you to use (a subset of) C, as far as I know, but that's it. Oops, I mean C functions in the case of FFI. Regardless, could you go a bit into detail about the ...
by SNK1337
Sat Aug 23, 2014 1:06 pm
Forum: Support and Development
Topic: Can I use C++ code in my game?
Replies: 9
Views: 11598

Re: Can I use C++ code in my game?

This is slightly out of my knowledge zone, but since LuaJIT has FFI you can probably implement a vector library in C directly on the .lua source of your game, without having to recompile LÖVE. Or maybe do a hybrid implementation where some methods are implemented in C and others in Lua, using a C s...
by SNK1337
Wed Aug 20, 2014 3:09 pm
Forum: Support and Development
Topic: Can I use C++ code in my game?
Replies: 9
Views: 11598

Re: Can I use C++ code in my game?

Löve is merely a framework; in the end it's still running Lua, which means you have access to everything Lua can do. Including the option to run C++ code from libraries you make. Alright! I'm very new to all this, so could you maybe give me a quick rundown of the whole process of writing a function...
by SNK1337
Wed Aug 20, 2014 2:00 pm
Forum: Support and Development
Topic: Can I use C++ code in my game?
Replies: 9
Views: 11598

Can I use C++ code in my game?

Hi everyone, I recently read a bit about how to write C++ code that is usable within Lua here . I know that LÖVE itself is an example of C++ code that is used in Lua, however I have a question: Can LÖVE only handle pure Lua code, or could I, for example, write a vector library in C++ and use it with...
by SNK1337
Fri Apr 11, 2014 8:04 am
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine [0.4.3]
Replies: 117
Views: 121882

Re: Löve "Light vs. Shadow" Engine [0.4.3]

How exactly is translation used with this? If I use the lightWorld.setTranslation() before drawing everything, I get this: http://puu.sh/82uxo.jpg while it's supposed to look like this: http://puu.sh/82uyY.jpg Do I also have to use love.graphics.translate() at some point? Or are there any other fun...
by SNK1337
Thu Apr 10, 2014 4:32 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine [0.4.3]
Replies: 117
Views: 121882

Re: Löve "Light vs. Shadow" Engine [0.4.3]

WetDesertRock wrote:Whats wrong with:

Code: Select all

love.graphics.translate(100, 100)
lightWorld.setTranslation(100,100)
Shouldn't that work?
Nope, that definitely doesn't work at all http://puu.sh/83psb.jpg
by SNK1337
Thu Apr 10, 2014 4:28 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine [0.4.3]
Replies: 117
Views: 121882

Re: Löve "Light vs. Shadow" Engine [0.4.3]

If you set the light worlds translation by the same value you set loves translation, and it messes up, then its a bug I think. But you should set both values to the same. I put this at the start of my love.draw() just to test: love.graphics.translate(100, 100) lightWorld.setTranslation(getLightTran...