Search found 17 matches

by dracula004
Tue Nov 28, 2017 8:41 am
Forum: Support and Development
Topic: [Issue]particle system behave weird about offset and size
Replies: 3
Views: 2914

Re: [Issue]particle system behave weird about offset and size

slime wrote: Sun Nov 26, 2017 4:35 pm When things are drawn with LÖVE, the origin offset is applied first, then it's scaled, rotated, and translated.
So it seems difficult to get things work as I expect.

i found this issue while trying draw laser effect in my game.
or does anyone got other method to draw a cool laser?
by dracula004
Sun Nov 26, 2017 8:28 am
Forum: Support and Development
Topic: [Issue]particle system behave weird about offset and size
Replies: 3
Views: 2914

[Issue]particle system behave weird about offset and size

love version:0.10.2 zzzz.gif in the gif above, every particle system, except the sizes, is exactly same. the red rectangle is the area designed for particle spread, but it seems that the size affects the offset in someway. is it a bug of particle system? ps0:setSizes(1) ps0:setParticleLifetime(1) ps...
by dracula004
Thu May 14, 2015 10:01 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

Solved.

The work project is on github:
https://github.com/Nigh/simple_dll_for_Love2D

thx much for your help. :ultrahappy:
by dracula004
Sun May 10, 2015 3:04 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

I got it working! :awesome: :awesome: :awesome: Here is a repository with support for building in linux and windows (I have only tried VS in windows): https://github.com/GoogleBot42/IronBox Look at my CMakeLists.txt. That is what is really important. Also the declaration of the openlib function has...
by dracula004
Sun May 03, 2015 6:47 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

I seemed to be wrong with my previous statement because in linux I compiled with this: g++ -fpic -llua -ldl -shared main.cpp -o lovelib.so ' The "-llua" means I was just linking against plain lua (if I understand correctly). But this is linux so the build process might be different or mor...
by dracula004
Wed Apr 29, 2015 7:49 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

I feel pretty stupid now.... :death: Ok it is really late where I live so I can't do anything tonight but after a quick glance your code looks fine but because LOVE uses luaJIT (assuming you are using LOVE version 0.9.x) not just plain lua make sure you are using the luaJIT c headers instead of lua...
by dracula004
Mon Apr 27, 2015 12:47 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

The source was already attached in former post. I'm trying to build that dll with vs. I downloaded the source before (and just now) and there are no c or c++ files in there. Can you post the C/C++ source (not just lua) The .dll file is not really any help. It's the C::B project. C source included. ...
by dracula004
Sat Apr 25, 2015 6:31 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

I~=Spam wrote:Can you post the error that is given in the console? Or does LOVE really crash?

Can you post the C/C++ source? That would be really helpful for us to help you. ;)
The source was already attached in former post.

I'm trying to build that dll with vs.
by dracula004
Wed Apr 15, 2015 9:44 am
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

Oh you can use Lua FFI. Example : https://github.com/CapsAdmin/goluwa/blob/18ca14e653832c6c71b5208c4929ceea2f5357d5/.base/lua/libraries/steam/ffi/steamworks/init.lua And it works. I tried the alien lib for lua. And the same, works well in standalone lua, but crashed in love2d... here is the project...
by dracula004
Mon Apr 13, 2015 3:48 pm
Forum: Support and Development
Topic: [SOLVED]HELP! How to make a dll available for Love2D ?
Replies: 34
Views: 15933

Re: HELP! How to make a dll available for Love2D ?

Lapin wrote:Oh you can use Lua FFI.
Example :

https://github.com/CapsAdmin/goluwa/blo ... s/init.lua

And it works.
thx, I will have a try.