Search found 512 matches
- Fri Apr 19, 2024 8:15 pm
- Forum: Support and Development
- Topic: Input with Jump Buffer
- Replies: 6
- Views: 350
Re: Input with Jump Buffer
The issue with love.keyboard.isDown is that if your framerate is low, or the game happens to lag, your key strokes may not get recognized when the update functions run (effectively you tap the button in between the update ticks, making love.keyboard.isDown unable to tell what you did). On that front...
- Fri Apr 19, 2024 2:20 am
- Forum: Support and Development
- Topic: Input with Jump Buffer
- Replies: 6
- Views: 350
Re: Input with Jump Buffer
love.keypressed and love.keyreleased events only trigger once for a given key press and release. Think of them as alarms for when either action happens (press, release), as opposed to them getting continuously checked. The way your code is laid out, Player:jump is called only when these events are t...
- Wed Apr 03, 2024 6:16 pm
- Forum: Support and Development
- Topic: 2D Array
- Replies: 6
- Views: 537
Re: 2D Array
Keep in mind that whenever you create a new instance of this FallingSand class, the m_grid variable is essentially reset (ie. the "state" becomes 0 for all entries). You might be creating new instances somewhere else in your code, and this is the source of your woes. To fix this, you'd nee...
- Sat Mar 09, 2024 6:04 pm
- Forum: Support and Development
- Topic: Method doesn't see self variable when called by other method (hump.class)
- Replies: 8
- Views: 1211
Re: Method doesn't see self variable when called by other method (hump.class)
Classic is perfectly fine to use. If you want a list of other libraries, you can find a list here (under "OO", object orientation). Each library has their pros and cons, so essentially pick the one you like.
- Thu Mar 07, 2024 5:27 am
- Forum: Support and Development
- Topic: A tool like Aseprite but for hd sprites?
- Replies: 2
- Views: 991
Re: A tool like Aseprite but for hd sprites?
I believe for any "HD" visuals it's more common place for the art to be done with programs like Photoshop. If you're looking for a cheaper alternative with animation support, Krita might get the job done.
- Wed Feb 14, 2024 4:52 am
- Forum: Support and Development
- Topic: Question about casting rays (bump.lua)
- Replies: 4
- Views: 750
Re: Question about casting rays (bump.lua)
Again, depends on how you want the lasers to work. As in, are they fixed lasers that are always enabled (like a level hazard with fixed positioning), or are they a type where they become longer over time, until they hit a wall or an object (eg. a laser turret that goes on and off on a timer or a but...
- Mon Feb 12, 2024 1:39 pm
- Forum: Support and Development
- Topic: Question about casting rays (bump.lua)
- Replies: 4
- Views: 750
Re: Question about casting rays (bump.lua)
Depends on how you want your laser to behave. If you want your laser to move, and it will be an axis-aligned bounding box, then you can just create a thin rectangle that either moves on the x or y axis. The only problem may be handling how to handle collisions, or the laser "shrinking" aft...
- Sat Dec 30, 2023 10:50 pm
- Forum: Ports
- Topic: Probability of official Nintendo Switch port?
- Replies: 6
- Views: 11218
Re: Probability of official Nintendo Switch port?
Keep in mind that even if you have a game that you'd like to port to Switch (or other consoles), the people who have existing ports do not necessarily offer those ports for free. Some of them are running a business of porting love2d games to Switch (offering to port and publish games for a revenue s...
- Sun Dec 17, 2023 1:02 pm
- Forum: Support and Development
- Topic: Black screen
- Replies: 11
- Views: 38681
Re: Black screen
If reinstalling your OS solved the issue, it might have been that your GPU's drivers were at fault. AMD driver 22.7.1 for example is known to cause love2d to output purely black visuals.
- Sat Dec 16, 2023 7:39 am
- Forum: Support and Development
- Topic: [REQUESTING HELP] Optimization issues
- Replies: 5
- Views: 15547
Re: [REQUESTING HELP] Optimization issues
I've found jprof to be a good tool for measuring code performance and memory consumption.