Search found 59 matches

by NotARaptor
Sun Jul 21, 2019 3:39 pm
Forum: General
Topic: Ellipse Collision Detection
Replies: 4
Views: 6419

Re: Ellipse Collision Detection

I wrote something a while ago on the forum for ellipse-segment intersection, could be easily modified for ellipse-ellipse:

https://love2d.org/forums/viewtopic.php ... 42#p218942
by NotARaptor
Wed Jul 17, 2019 2:05 pm
Forum: Support and Development
Topic: Does anyone know how to keep the window above others?
Replies: 6
Views: 4876

Re: Does anyone know how to keep the window above others?

If you're only targeting Windows, you can use ffi to call the relevant WinApi functions directly - you'd need FindWindow and SetWindowPos: - Set the title of the window to some unique string (in love) - Call FindWindow [ffi] with that string to retrieve the HWND of the main window - Call SetWindowPo...
by NotARaptor
Thu Jun 27, 2019 6:50 pm
Forum: Support and Development
Topic: Infinite Runner Collision problem
Replies: 7
Views: 9432

Re: Infinite Runner Collision problem

It's because you're checking every collision box of the player, and the result will be dependent on the order you check them in. I bet if you swapped the order of the (2?) Collision boxes for the player, you'd have the opposite result. If you want to check if they need to fall, you need to check ALL...
by NotARaptor
Thu May 09, 2019 9:49 am
Forum: Support and Development
Topic: question about tables [SOLVED]
Replies: 3
Views: 3570

Re: question about tables

Code: Select all

local p = {}
for i = 1, 2 do local x, y = (2 * i - 1) * w / 4, h / 2; p[i] = { x=x, y=y, w=100, h=100, xx=x, yy=y } end
by NotARaptor
Mon Apr 08, 2019 8:07 am
Forum: Support and Development
Topic: Iso drawing help
Replies: 8
Views: 5922

Re: Iso drawing help

You can find a veritable hoard of relevant information here : http://www-cs-students.stanford.edu/~am ... html#tiles
by NotARaptor
Mon Feb 25, 2019 12:15 pm
Forum: Support and Development
Topic: Any way to make the window transparent?
Replies: 6
Views: 8996

Re: Any way to make the window transparent?

I can't test right now, but I have used a lot of win32 apis in the past (in C/C++) including these ones. I think that firstly you need to call SetWindowLong (or is it SetWindowLongPtr now? it's been a while!) to add the WS_EX_LAYERED extended style to the window, THEN call SetLayeredWindowAttributes...
by NotARaptor
Mon Feb 25, 2019 11:40 am
Forum: Games and Creations
Topic: Animated Grass
Replies: 4
Views: 11053

Re: Animated Grass

Hi Souxdentine - this board is to 'Show off your games, demos and other (playable) creations' - it seems your question would be better suited to the 'Support and Development' board. Also it's a bit light on detail; some screenshots or mockups of what you want to achieve would probably get a lot more...
by NotARaptor
Fri Feb 22, 2019 3:07 pm
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 131897

Re: [Library] anim8 - An animation library - v2.3.0 released

@grump, totally see your point, and so long as kikito doesn't mind his thread being hijacked, it makes for a great discussion. As with everything in development, there is rarely a one-size-fits-all solution that is optimal for every project, team and workflow. You can of course add this on top of an...
by NotARaptor
Fri Feb 22, 2019 11:59 am
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 131897

Re: [Library] anim8 - An animation library - v2.3.0 released

I just want to chip in here and say that I really like your stance on the flow of information in the animation library here, even if it seems to be unpopular with (or just strange to) some users. I totally agree - business logic should dictate animation logic, and not the other way around. After all...
by NotARaptor
Fri Jan 25, 2019 1:56 pm
Forum: Support and Development
Topic: Help for create bullet of tank
Replies: 5
Views: 5689

Re: Help for create bullet of tank

I figured this would be your next question! Your issue is that you're trying to treat the variable "obus" both as an array of objects, and as a single object at the same time - which obviously doesn't work. Of course, the noun "obus" in French is both singular and plural, so that...