Search found 61 matches

by TheHUG
Thu Jul 11, 2019 4:33 am
Forum: Support and Development
Topic: 64 bit android apk file
Replies: 4
Views: 4978

Re: 64 bit android apk file

There were some threads about this recently, here's one:
https://love2d.org/forums/viewtopic.php?f=4&t=86733

and this one seems to have a happy ending:
https://love2d.org/forums/viewtopic.php ... 20#p227820
by TheHUG
Wed Jul 10, 2019 5:03 pm
Forum: Support and Development
Topic: love2d seems to work fine, yet it doesnt respond
Replies: 13
Views: 10477

Re: love2d seems to work fine, yet it doesnt respond

huh, bab should be packaging the .exe themselves in principle. though I imagine that wouldn't solve your problem, as you also have it with the zipped exe.
If you run love.exe it without the game code, does it still become unresponsive? or is it only when packaged together with bab?
by TheHUG
Wed Jul 10, 2019 4:54 pm
Forum: Support and Development
Topic: [SOLVED] Math + Spread bullets
Replies: 10
Views: 5988

Re: Math + Spread bullets

currently it seems you're spawning the bullets with an offset, while what it seems you want is the spawn at the same point and adjust the velocity So first decide at what distance you want the set of bullets to look like the shape you have in mind. let's call this distance D Then, for each bullet wi...
by TheHUG
Wed Jul 10, 2019 7:25 am
Forum: Support and Development
Topic: love2d seems to work fine, yet it doesnt respond
Replies: 13
Views: 10477

Re: love2d seems to work fine, yet it doesnt respond

Oh wow, yeah that's a mess. what operating system are you using? This is probably beyond those of us just in the forums, maybe the people more involved in constructing love itself will be able to help more. You could try making an issue at https://bitbucket.org/rude/love/issues?status=new&status...
by TheHUG
Tue Jul 09, 2019 7:08 am
Forum: Support and Development
Topic: How to print text that isn't affected by the camera.scale ?
Replies: 12
Views: 10267

Re: How to print text that isn't affected by the camera.scale ?

the camera origin is the upper left corner? If you can change that, then it would be best to set the origin at the center so that you can just set it to player.x player.y.
If not, then you'll just need to reset the camera's location after you change its scale (apply the same operation)
by TheHUG
Mon Jul 08, 2019 12:14 pm
Forum: Support and Development
Topic: Object inheritance
Replies: 26
Views: 12098

Re: Object inheritance

Your example requires closures (somemethod) for the inheritance to work. That's still copying stuff around. Using just metatables would work better in this case. Hmm, I think you misunderstand, :somemethod is a method of childobject. Whenever you create a new childobject with childobject:new, it wi...
by TheHUG
Sat Jul 06, 2019 10:58 am
Forum: Support and Development
Topic: Advantages of using classes over tables for OOP
Replies: 5
Views: 4123

Re: Advantages of using classes over tables for OOP

One pretends to be a class, the other admits its just a table. You can get all the advantages of a class, with all the added flexibility of lua tables using the __index metamathod. I think the main advantage of using a library that mimics classes for you is familiarity with classes from other langua...
by TheHUG
Sat Jul 06, 2019 8:30 am
Forum: Support and Development
Topic: Object inheritance
Replies: 26
Views: 12098

Re: Object inheritance

There's more than one way to do this in lua, and rather than use a library implementing classes I prefer to do it explicitly, since its just a few lines. One of the things I like about lua is that unlike a lot of other scripting languages it doesn't pretend to have true classes, which lets you use t...
by TheHUG
Fri Jul 05, 2019 1:28 pm
Forum: Support and Development
Topic: Getting stuck between adjacent objects
Replies: 4
Views: 4681

Re: Getting stuck between adjacent objects

General advice for platformers is to avoid using physics engines, (i've specifically heard people say not to use box2d in fact, which is what love.physics uses behind the scenes. You are probably best off just using bounding-boxes or even tile-based collisions. If you prefer to use love.physics (if ...
by TheHUG
Wed Jun 19, 2019 6:22 am
Forum: Support and Development
Topic: love2d seems to work fine, yet it doesnt respond
Replies: 13
Views: 10477

Re: love2d seems to work fine, yet it doesnt respond

What do you mean doesn't respond? You gave it a main.lua to run on, with love.keypressed events that don't get triggered?