Search found 30 matches

by JoshGrams
Mon Dec 17, 2018 1:14 pm
Forum: Support and Development
Topic: How do I get local coords?
Replies: 7
Views: 1245

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...
by JoshGrams
Tue Nov 20, 2018 12:07 pm
Forum: Games and Creations
Topic: The Yam of Endor - Traditional Roguelike Space Shooter
Replies: 3
Views: 1979

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).
by JoshGrams
Mon Nov 12, 2018 5:50 pm
Forum: Support and Development
Topic: [solved] What does ox and oy
Replies: 1
Views: 553

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...
by JoshGrams
Sun Nov 11, 2018 4:19 pm
Forum: Libraries and Tools
Topic: amour - a basic scene graph library
Replies: 7
Views: 3163

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...
by JoshGrams
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: 1145

Re: Palette Swap Shader: How to stop it mixing colors from neighboring pixel?

Does palette:setFilter("nearest", "nearest") do what you want?
by JoshGrams
Mon Sep 24, 2018 11:39 am
Forum: Support and Development
Topic: How to treat analog movement as a button press?
Replies: 2
Views: 428

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...
by JoshGrams
Sat Sep 22, 2018 10:29 am
Forum: Games and Creations
Topic: Endless Archery
Replies: 10
Views: 4369

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...
by JoshGrams
Fri Sep 21, 2018 9:08 pm
Forum: Games and Creations
Topic: Endless Archery
Replies: 10
Views: 4369

Re: Endless Archery

Adding the notification icon for new achievements is on my list of things to do. I'll probably include it in the next update, so keep an eye out for that. FYI, if you have an iPhone, I'm happy to invite you to the iOS beta. Excellent. I don't have a cell phone at all, but I appreciate the thought. ...
by JoshGrams
Thu Sep 20, 2018 8:52 pm
Forum: Support and Development
Topic: how to change cam perspective (fov && angle)?
Replies: 7
Views: 977

Re: how to change cam perspective (fov && angle)?

the upright rectangles/sprites have a small transformation to them as well. could you show this shader too? I am trying to achieve it but failing miserably and hope you have it sort of at hand. Yeah, that's an actual 3D perspective view. The tops of the upright rectangles are bigger because they're...
by JoshGrams
Thu Sep 20, 2018 12:53 pm
Forum: Games and Creations
Topic: The Yam of Endor - Traditional Roguelike Space Shooter
Replies: 3
Views: 1979

Re: The Yam of Endor - Traditional Roguelike Space Shooter

Thanks! In hindsight it might have been better (definitely more beginner-friendly) to do a more traditional space-game interface and slow time to a crawl when you're not providing any input the way SUPERHOT does. But I started this for the 2018 seven-day roguelike challenge, and at the time it seeme...