Search found 12 matches

by love2d
Sun Jan 06, 2019 4:58 pm
Forum: General
Topic: ttxi - All repos gone
Replies: 1
Views: 2568

ttxi - All repos gone

https://github.com/ttxi I noticed that Moan.lua (https://love2d.org/forums/viewtopic.php?t=84110) is no longer available, and every other repo (I can't remember the other projects, but I know ttxi had others) are also gone. Does anyone know how many Love2d libraries ttxi worked on? I know a lot of p...
by love2d
Wed Oct 24, 2018 5:17 am
Forum: Support and Development
Topic: SDL_GetTicks equivalent in love?
Replies: 4
Views: 2747

Re: SDL_GetTicks equivalent in love?

Not sure what you mean by "start a timer". LÖVE only has global time, no timers that can be started or stopped. getTime returns the time in seconds that has elapsed since some unspecified starting time. It should do what you ask for. You can also keep track of time in love.update(dt), whe...
by love2d
Wed Oct 24, 2018 4:29 am
Forum: Support and Development
Topic: SDL_GetTicks equivalent in love?
Replies: 4
Views: 2747

SDL_GetTicks equivalent in love?

I see this: https://love2d.org/wiki/love.timer.getTime So I could technically just start a timer and never finish it. Basically need a timer that returns some fraction of a second identical to SDL_GetTicks. Also a problem SDL_GetTicks has, is it overflows at 49 days, but you can get around that usin...
by love2d
Fri May 04, 2018 8:33 pm
Forum: Support and Development
Topic: Cropping of quads easily? Anim8 / Walt library
Replies: 3
Views: 2891

Re: Cropping of quads easily? Anim8 / Walt library

So I figured out how to do this natively in Anim8. Anim8 uses Quads as frames. Grabbing a quad animation.frames[animation.position] (assuming 1 frame, for multiple have to loop over the frames and change them all or have a counter and change them pragmatically) and then using: https://love2d.org/wik...
by love2d
Fri May 04, 2018 3:00 pm
Forum: Support and Development
Topic: Cropping of quads easily? Anim8 / Walt library
Replies: 3
Views: 2891

Re: Cropping of quads easily? Anim8 / Walt library

pgimeno wrote: Fri May 04, 2018 2:53 pm love.graphics.setScissor is probably the best way.
Perfect, I think that will work!
by love2d
Fri May 04, 2018 2:07 pm
Forum: Support and Development
Topic: Cropping of quads easily? Anim8 / Walt library
Replies: 3
Views: 2891

Cropping of quads easily? Anim8 / Walt library

Hey guys, So I have been thinking of usecases where I want to use an animation library for all my entities in my game. For Anim8 specifically, there are a set number of "grids" attached to images, and entities all have their own Animation which is basically a set of instructions of how the...
by love2d
Sun Apr 29, 2018 7:36 pm
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12360

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

This way you may skip some frames if any lag occurs. If the lag becomes too much, the game will slow down temporarily (but it won't hang). Hey Ivan (and others) here's my updated code. I've tested it, and it seems to work (I can't think of a way to check the frameskip portion) where game tick rate ...
by love2d
Sun Apr 29, 2018 3:50 pm
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12360

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

Even if love.update takes say 1/2th of a second to execute (more than 1/1000th), (meaning the game will appear slower for slow computers). But even if we don't, eventually that loop should end, I'm not sure where the indefinite lock comes into play. Well, I'll put it this way, let's say that love.u...
by love2d
Sun Apr 29, 2018 3:00 pm
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12360

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

The issue is that if we set TICKRATE to 1/1000 love.update will run every 1/1000th a second right? NO! You might be able to clamp the lower bound of your "tickrate" to 1/1000 but there is no way to ensure that love.update is called every 1/1000th of a second. There is no way to guarantee ...
by love2d
Sun Apr 29, 2018 6:34 am
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12360

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

First i'm going to assume you did notice that the gist was from 2016, and you modified the infinite loop to be a returned function, like how the wiki page gives you the current 11.x default love.run function. Yes I did. After this research is done, I intend to submit my latest version to the gist. ...