Search found 33 matches
- Sat Nov 16, 2019 12:39 am
- Forum: General
- Topic: Coverage reports in LOVE
- Replies: 9
- Views: 10298
Re: Coverage reports in LOVE
LuaCov works fine for me under Windows in 11.2. I'm doing: require('luacov.runner').init({ runreport = true, deletestats = true, exclude = { "^tests/.*" -- etc... } }) Then after running my tests I just call love.event.quit as usual, and it writes the coverage report to luacov.report.out (...
- Sat Aug 17, 2019 12:57 am
- Forum: Support and Development
- Topic: [STI & hump] Movement system help
- Replies: 2
- Views: 3048
Re: [STI & hump] Movement system help
The hump.camera documentation says Camera.new(x, y, zoom, rot) so I'd assume you could just pass a number bigger than 1 there to zoom in. Except...that doesn't work. And it looks like STI is thoroughly obnoxious and resets the transform. I mean, I can see why they did it: to avoid tearing. But it me...
- Thu Aug 08, 2019 1:50 am
- Forum: Games and Creations
- Topic: GMTK Jam 2019
- Replies: 1
- Views: 4038
GMTK Jam 2019
We made a game with LOVE for the GMTK game jam: https://teamwintergreen.itch.io/filament There's a single axis of control: you zip along a curved path, avoiding obstacles. 11 levels to try. https://img.itch.zone/aW1nLzIzNDc1MjUucG5n/347x500/XA4CUu.png Looks like there are also a bunch of other LOVE ...
- Mon Dec 17, 2018 1:14 pm
- Forum: Support and Development
- Topic: How do I get local coords?
- Replies: 7
- Views: 5203
Re: How do I get local coords?
I'm not sure what you're using for phyics, but physics bodies are almost always in world coordinates. Local coordinates are generally used for attaching child objects (guns, etc) to a body, not for interacting with other bodies or things like the mouse cursor. You could possibly use the Transform ob...
- Tue Nov 20, 2018 12:07 pm
- Forum: Games and Creations
- Topic: The Yam of Endor - Traditional Roguelike Space Shooter
- Replies: 3
- Views: 5462
Re: The Yam of Endor - Traditional Roguelike Space Shooter
Huh. Looks like I never posted about my latest update: version 0.5 adds gamepad support and has friendlier aiming (if you accidentally hit the wrong direction, you can correct it without it taking an extra turn).
- Mon Nov 12, 2018 5:50 pm
- Forum: Support and Development
- Topic: [solved] What does ox and oy
- Replies: 1
- Views: 2103
Re: What does ox and oy
The origin point (ox, oy) on the image will be placed at the (x, y) coordinate that you pass to draw. So changing ox and oy will move the image. For example: function love.load() img = love.graphics.newCanvas(64, 64) love.graphics.setCanvas(img) love.graphics.setColor(0.5, 0, 1) love.graphics.rectan...
- Sun Nov 11, 2018 4:19 pm
- Forum: Libraries and Tools
- Topic: amour - a basic scene graph library
- Replies: 7
- Views: 9568
Re: amour - a basic scene graph library
I have difficulty thinking about the game as a scene graph. That's also why I haven't started with Amulet Interesting. A scene graph is basically just a big list of objects to be updated and drawn each frame, plus support for nesting objects and drawing children in local coordinates relative to the...
- Sat Nov 03, 2018 9:07 am
- Forum: Support and Development
- Topic: Palette Swap Shader: How to stop it mixing colors from neighboring pixel?
- Replies: 3
- Views: 3922
Re: Palette Swap Shader: How to stop it mixing colors from neighboring pixel?
Does palette:setFilter("nearest", "nearest") do what you want?
- Mon Sep 24, 2018 11:39 am
- Forum: Support and Development
- Topic: How to treat analog movement as a button press?
- Replies: 2
- Views: 3018
Re: How to treat analog movement as a button press?
You have to do it yourself, but it's not hard. The values for an axis generally go from -1 to 1, so just check if it's above a threshold. You probably don't want to use 1 as the threshold because they might not be perfectly calibrated, or might drift over time so they hit the case before going all t...
- Sat Sep 22, 2018 10:29 am
- Forum: Games and Creations
- Topic: Endless Archery
- Replies: 10
- Views: 13699
Re: Endless Archery
By the way, do you have any ideas for more achievements? Most of them are pretty generic. The two that stand out are Tricky Shot and especially Pierce the Sky. So I wonder if you could do more things that encourage you to try different trajectories. Maybe things like a low-power shot, or a low angl...