Search found 87 matches

by Skeletonxf
Wed Jun 07, 2017 1:40 pm
Forum: Support and Development
Topic: Smart AI under gravity
Replies: 4
Views: 3929

Smart AI under gravity

I'm making a game using love2d's physics module and I currently have some AI units that are supposed to try to fly into the player. They and the player have the same movement system where the player controls dx and dy values bounded by -1 and 1, when using a joystick or using a keyboard - this then ...
by Skeletonxf
Wed May 31, 2017 2:16 pm
Forum: Libraries and Tools
Topic: Shädows (A light engine)
Replies: 40
Views: 46716

Re: Shädows (A light engine)

I think you would have to create a shape https://github.com/matiasah/shadows/wiki/Shape out of verticies that outline your spite. So you'd first have to find a way to convert your spite into verticies. If you only need one or two sprites you could probably do it manually but if you're going to have ...
by Skeletonxf
Fri May 05, 2017 8:56 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120441

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

I'm not entirely sure what you mean. Do you want to hand over ImageData to a library and get that shadowed-ified? I've only used it for basic shape shading - shapes defined in the engine. I shouldn't be too hard to edit the glsl till it is ES compatible in any shading engine, anyway. It's basically ...
by Skeletonxf
Sun Apr 23, 2017 3:21 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120441

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

You can see for yourself.

https://github.com/matiasah/shadows/wiki

A word of warning, the repository says the wiki is out of date. I don't know what features and API overlap because I have only used shadows myself.
by Skeletonxf
Wed Apr 12, 2017 8:56 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120441

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

On mobile love2d uses OpenGL ES, rather than normal OpenGL. This is in some ways incompatible with OpenGL code written without concern for ES, though you can wrestle with the pixel shaders and make them all ES compliant, and thus able to run on phones as well as desktops. This is exactly what I've b...
by Skeletonxf
Sat Apr 08, 2017 10:56 pm
Forum: Games and Creations
Topic: Some Circle Game. Ideas to make it better?
Replies: 14
Views: 11660

Re: Some Circle Game. Ideas to make it better?

I've played a few versions from my phone and found a few usability issues there. A deselect button would be really useful and clear coloured/otherwise visuals for what I've selected would really help with making sure I send my troops where I want. A few times now I've selected a node I've then not b...
by Skeletonxf
Fri Apr 07, 2017 9:59 pm
Forum: Libraries and Tools
Topic: Lua-Collections Array List
Replies: 0
Views: 1571

Lua-Collections Array List

I've implemented most of an array list backed by a lua table and have started using Love2d's LuaJIT FFI to make a similar system using a struct, hopefully these are useful to people :) For once I actually ran profilers and made sure that what I wrote was running efficiently. I think this ArrayList i...
by Skeletonxf
Fri Mar 24, 2017 10:26 pm
Forum: Support and Development
Topic: Calling other languages from love2d?
Replies: 17
Views: 12983

Re: Calling other languages from love2d?

Thanks for the help and for all the comments I guess. I think I'm going to look into going Love2d/LuaJIT -> LuaJIT FFI -> C -> Haskell FFI -> Haskell if possible. I imagine I should dive into using Haskell on its own first to actually learn it properly without being able to jump back to imperative c...
by Skeletonxf
Thu Mar 23, 2017 6:41 pm
Forum: Support and Development
Topic: Calling other languages from love2d?
Replies: 17
Views: 12983

Calling other languages from love2d?

Say I wanted to mix Lua with another language such as Haskell, I've found https://wiki.haskell.org/HsLua and to me it looks like using two languages each with a C FFI would probably not be quite so hard as mixing other sorts. Can I / how would I go about setting something like this up from within a ...
by Skeletonxf
Sat Feb 11, 2017 8:45 pm
Forum: Support and Development
Topic: Forum Problems
Replies: 46
Views: 20305

Re: Forum Problems

So I've got a really weird bug(s) on the index pages when viewing from a phone.

https://love2d.org/imgmirrur/fD9ocB1.png

This started today and not when this thread was made as well?