Search found 32 matches

by TheHUG
Wed Jun 19, 2019 6:22 am
Forum: Support and Development
Topic: love2d seems to work fine, yet it doesnt respond
Replies: 3
Views: 234

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?
by TheHUG
Mon Jun 17, 2019 7:28 pm
Forum: Support and Development
Topic: This release is not compliant with the Google Play 64-bit requirement
Replies: 4
Views: 350

Re: This release is not compliant with the Google Play 64-bit requirement

Oof, I'm afraid I don't really know what I'm talking about but I'm having a look around to see if I can find anything helpful, because that seems like it really sucks. Getting something to actually work for android must have been hell (I remember giving up when I tried) judging from this https://dev...
by TheHUG
Fri Jun 14, 2019 7:26 pm
Forum: Support and Development
Topic: (Math Help) How do I round to the nearest 50?
Replies: 2
Views: 163

Re: (Math Help) How do I round to the nearest 50?

first thing that comes to mind is:

Code: Select all

function roundnearest(num, to)
    local rem = num % to
    if rem < (to / 2) then
        return num - rem
    else
        return num - rem + to
    end    
end
(then you call it with '50' as the second argument)
edit: messed it up, need sleep. fixed.
by TheHUG
Fri Jun 07, 2019 1:21 pm
Forum: Support and Development
Topic: How to detect collision for multiple objects
Replies: 4
Views: 552

Re: How to detect collision for multiple objects

How do I detect collision for multiple objects? :awesome: Love.physics has collision detection (and so do wrappers for it https://github.com/HDictus/breezefield) But if all you need is collision detection then HardonCollider is more minimalistic https://github.com/vrld/HC If you want to implement i...
by TheHUG
Thu Jun 06, 2019 6:37 am
Forum: Support and Development
Topic: starting to development a game
Replies: 6
Views: 1055

Re: starting to development a game

No problem. In the tutorials love.graphics.draw is called to render the sprite. https://love2d.org/wiki/love.graphics.draw , As you can see in the documentation, the second and third arguments (after the drawable) are the x and y position at which to draw. So to move the sprite you just change the n...
by TheHUG
Wed Jun 05, 2019 7:06 am
Forum: Support and Development
Topic: starting to development a game
Replies: 6
Views: 1055

Re: starting to development a game

I don't have any of my own on hand, but I can point you to two tutorials with examples :
https://love2d.org/wiki/Tutorial:Animation
https://www.gamefromscratch.com/post/20 ... orial.aspx
by TheHUG
Thu May 30, 2019 7:16 pm
Forum: Support and Development
Topic: Code improvement (First time Lua-enet)
Replies: 7
Views: 1462

Re: Code improvement (First time Lua-enet)

I've heard good things about ZeroBrane. I imagine I imagine it can automatically correct your indentation when you press tab. You can also configure it to tell you when you go over 80 characters: https://studio.zerobrane.com/doc-editor-preferences (editor.edge=true). Figuring out how to break things...
by TheHUG
Wed May 29, 2019 7:43 am
Forum: Support and Development
Topic: Code improvement (First time Lua-enet)
Replies: 7
Views: 1462

Re: Code improvement (First time Lua-enet)

Hey ThatBonk, Good on you for asking for coding feedback :)! Getting feedback is really important in my experience. I'll get the readability nitpicks out of the way first: make sure your indentation is consistent, it's important for readability. When someone (including you) scans your code it's easi...
by TheHUG
Sun May 26, 2019 7:08 pm
Forum: Support and Development
Topic: Polygon render errors [v11.2] [SOLVED]
Replies: 4
Views: 1276

Re: Polygon render errors [v11.2]

HDPLocust wrote:
Sun May 26, 2019 4:39 pm
zorg wrote:
Sun May 26, 2019 4:33 pm
So unless you make it so it's convex and simple from the get-go, you will always need to triangulate it.
Ah, my bad. But this is bad too, hmm.
Why do you want to avoid triangulation?