Search found 3550 matches
- Wed Oct 25, 2023 6:14 pm
- Forum: General
- Topic: Shame I'm leaving the Love2D Reddit
- Replies: 7
- Views: 32258
Re: Shame I'm leaving the Love2D Reddit
Reddit is cancer. Try twitter I guess. These forums are good. They used to be. Nowadays there are a few unfriendly, unhelpful people that lower the quality of the community support in these forums quite a bit. Thankfully, most issues are already posted in previous threads, so just searching a littl...
Re: Gravity
tourgen has a point IF you are going to need more forces to be applied to the object. You first calculate the force due to gravity times mass (i.e. the weight), then add it to all other forces acting on the object, and then obtain the final acceleration of the object by dividing the resulting force ...
- Tue Oct 24, 2023 12:06 pm
- Forum: Support and Development
- Topic: Cam11 bug when zoom = 0.6 (specifically)
- Replies: 4
- Views: 3053
Re: Cam11 bug when zoom = 0.6 (specifically)
What do you expect a line with less than 1 pixel width that's not centered at the middle of pixels to look like in a pixel grid? If you offset the line's position by (0.5, 0.5), then the centers of each end will be at the center of a pixel instead of in between 4 pixels. But what about the circle?
- Mon Oct 23, 2023 4:11 pm
- Forum: Support and Development
- Topic: Cam11 bug when zoom = 0.6 (specifically)
- Replies: 4
- Views: 3053
Re: Cam11 bug when zoom = 0.6 (specifically)
It's not a bug of cam11. Try this as main.lua: function love.draw() love.graphics.scale(0.6) love.graphics.circle("fill", 100, 200, 10) love.graphics.circle("line", 200, 200, 10) love.graphics.rectangle("fill", 300, 190, 20, 20) love.graphics.rectangle("line",...
- Sun Oct 22, 2023 7:52 am
- Forum: Support and Development
- Topic: Variable seen as nil for some reason.
- Replies: 2
- Views: 21513
Re: Variable seen as nil for some reason.
You can't have multiple love.load and love.update in different files (unless you know what you're doing and how to handle the switching between them, which is obviously not the case here, and even if you know what you're doing it's pretty discouraged in general, with pretty few exceptions). You have...
- Mon Oct 16, 2023 7:52 pm
- Forum: Games and Creations
- Topic: Silent Strike - WIP
- Replies: 19
- Views: 20369
Re: Silent Strike - WIP
It was suggested it should be green because Hollywood always has them green - but is that just a Hollywood thing? Green phosphor? It was a pretty common compound to make CRT screens of. It had a good retention of light. Also, radars actually update positions when the bar crosses them, not continuou...
- Sun Oct 08, 2023 6:06 am
- Forum: Support and Development
- Topic: Physics, forces and dt
- Replies: 7
- Views: 7507
Re: Physics, forces and dt
If you're trying to speed up time, why not apply that to world:update()?
- Mon Oct 02, 2023 11:03 am
- Forum: Support and Development
- Topic: Top down shooter with pseudo 3d camera?
- Replies: 1
- Views: 4802
Re: Top down shooter with pseudo 3d camera?
The world should probably be pure 3D even if drawn in pseudo-3D; therefore, each object should have a height with respect to the ground, and a thickness. Magnification factor is proportional to distance. Calculate the distance from the map to the camera, and from each object to the camera, and apply...
- Wed Sep 27, 2023 7:45 am
- Forum: Support and Development
- Topic: Drawing a line of tile
- Replies: 4
- Views: 4365
Re: Drawing a line of tile
Not sure, but you are having two loops rewriting each other using the same variable i. No they don't rewrite each other, despite of using the same variable. Loop control variables are implicitly local. You can check with e.g.: for i = 1, 5 do print(i) for i = 10, 12 do print(i) end end --[[ Output:...
- Mon Sep 25, 2023 6:08 pm
- Forum: Support and Development
- Topic: Linking Entities
- Replies: 11
- Views: 11199
Re: Linking Entities
Ooooh hadn't throught of that - though wouldn't it still need to check for existing IDs when creating a new entity? If an entity is removed, there will be a gap in the ID table that, unless I'm misunderstanding? If the order of entities is important, then yes, you need to either leave a gap, or to ...