I posted these two articles in another thread, but the subject was different so I'll repost them here instead of linking there.
Tutorials on how to make tile maps and handling tile collisions:
- https://sheepolution.com/learn/book/18
- https://jonathanwhiting.com/tutorial/collision/
Search found 251 matches
- Mon Feb 19, 2024 12:08 pm
- Forum: Support and Development
- Topic: Trying to figure out collision with tiles in platformer game
- Replies: 11
- Views: 2221
- Sun Feb 18, 2024 9:19 pm
- Forum: Support and Development
- Topic: Tips & advice for making a small beginner project?
- Replies: 6
- Views: 717
Re: Tips & advice for making a small beginner project?
I'd like to learn to use the LOVE2D engine as a spare time thing, and I don't want to start off very ambitious, so I was wondering if anyone had good advice on how to start off once I've gotten through the basics of the engine? (...) Would this be a good place to start & work towards or should ...
- Sun Feb 18, 2024 9:03 pm
- Forum: Support and Development
- Topic: Need Beginners Help with Nil Value error
- Replies: 1
- Views: 461
Re: Need Beginners Help with Nil Value error
Hi. Read the error message, it's worth gold: main.lua:9: attempt to index field 'spriteSheet' (a nil value) It says the error is on your "main.lua" script, on line #9, which happens to be this: player.grid = anim8.newGrid( 12, 18, player.spriteSheet:getWidth(), player.spriteSheet:getHeight...
- Sun Feb 18, 2024 8:58 pm
- Forum: Support and Development
- Topic: Finding the visual center of a polygon
- Replies: 3
- Views: 534
Re: Finding the visual center of a polygon
Your image doesn't look like a polygon, but like something painted / raster data. Is your input shape polygonal, or is it a bitmap, or something else? Is it supposed to be animated? Is the center always in the same position, or do you need to calculate the nearest center towards some arbitrary point...
- Sat Feb 17, 2024 7:24 am
- Forum: Support and Development
- Topic: Spawning Endless Object With Conditions
- Replies: 2
- Views: 539
Re: Spawning Endless Object With Conditions
And a really quick question: If off screen objects are using memory like "setting a pipes X coordinate to -100" how could you actually destroy them once they are no longer used. The Lua language standard defines a memory managed environment, and the LuaJIT interpreter used by Löve follows...
- Wed Feb 14, 2024 8:26 am
- Forum: Support and Development
- Topic: Http requests
- Replies: 7
- Views: 985
Re: Http requests
Was there a reason why you didn't post the actual code that causes the error?
- Sun Feb 11, 2024 6:19 am
- Forum: Support and Development
- Topic: Random terrain collision
- Replies: 5
- Views: 874
Re: Random terrain collision
There was an article on GameDev.net many years ago, something like "So you want to be a game developer?", where it'd posit that the best way to learn how to program games, is to make clones of classic games of progressing complexity. It suggested starting with Pong, then Arkanoid, then Tet...
- Sat Feb 10, 2024 3:04 am
- Forum: Support and Development
- Topic: Http requests
- Replies: 7
- Views: 985
Re: Http requests
There's a module in Löve 12: https://love2d.org/wiki/lua-https (It's a standalone HTTP and HTTPS library made by the Löve team themselves by the way: https://github.com/love2d/lua-https) I couldn't find Löve 12 artefacts (binaries) to test, so you'd have to build from source. Ah, here it is, you go ...
- Thu Feb 08, 2024 1:10 pm
- Forum: General
- Topic: How do you code and deploy DLC's?
- Replies: 10
- Views: 3186
Re: How do you code and deploy DLC's?
Having a two itch projects - one with a paywall, means I'm maintaining two sets of code. Just to clarify: the game engine (the executable with the embedded .love) would be the same in both projects. But the game media assets, including your scene/level files, those would be different and reside out...
- Thu Feb 08, 2024 12:53 am
- Forum: General
- Topic: How do you code and deploy DLC's?
- Replies: 10
- Views: 3186
Re: How do you code and deploy DLC's?
I like thestarknight's drag and drop idea, that's very clean. But I'd probably just have the full game as the paywalled version. So there are two itch.io projects: A) game engine + shareware assets B) game engine + shareware + commercial assets. They're both self-sufficient. You can totally unpack t...