Search found 238 matches

by knorke
Thu Mar 21, 2024 11:19 pm
Forum: Support and Development
Topic: [BUG] Video not playing to the end
Replies: 7
Views: 1217

Re: [BUG] Video not playing to the end

This seems solved then?
For everything related to video codecs etc I still want to mention this very good forum:
https://forum.doom9.org/
by knorke
Sun Feb 18, 2024 3:43 pm
Forum: Support and Development
Topic: Tips & advice for making a small beginner project?
Replies: 6
Views: 640

Re: Tips & advice for making a small beginner project?

I do not know that game but it seems to be some 2D RPG/puzzle game. Depending on how unique each room/puzzle is, you are basically making multiple games within one game. There may be mechanics that only get used for one scripted event and so on. Also for such game you need many different graphics. E...
by knorke
Sat Feb 10, 2024 6:04 am
Forum: Support and Development
Topic: Random terrain collision
Replies: 5
Views: 837

Re: Random terrain collision

He is trying to make a gridbased map like in Sokoban, love.physics is not needed/suitable for that and overkill. This line has two typos, it shoud be == instead of =: if collidablex[detection]=x and collidabley[detection]=y then Löve tells you about that when trying to run: Error: Syntax error: main...
by knorke
Sun Feb 04, 2024 12:40 pm
Forum: General
Topic: tileGrid function
Replies: 4
Views: 1252

Re: tileGrid function

I think https://love2d.org/wiki/ParticleSystem is not suitable for such simulation. It is a powerful system and can be used for nice effects but (as far as I am aware) there is no way to read or set the position of individual particles. So it is impossible to check for collisions between particles. ...
by knorke
Thu Jan 18, 2024 3:10 am
Forum: Libraries and Tools
Topic: Tiled Polygons - how to make tiled world smooth
Replies: 8
Views: 7530

Re: Tiled Polygons - how to make tiled world smooth

Hi darkfrei, you make very good code doodles. You should make an actual game or whatever-thing sometime! It looked like an interesting alternative to my level editor because making caves/tunnels is very quick and easy. (In my editor I have to create each polygon by hand by clicking their corners) In...
by knorke
Thu Jan 18, 2024 2:24 am
Forum: Support and Development
Topic: 2D lighting engines
Replies: 12
Views: 26041

Re: 2D lighting engines

Only after settling on an art direction is when you'd worry about implementing it with shaders, textures etc. It's also easier to ask for help, "I want it to look like this (shows mockup)". I do not disagree but sometimes it is also the other way around. Sometimes the question is more lik...
by knorke
Sun Jan 07, 2024 6:35 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 207046

Re: I used ChatGPT

love.window.setTitle("Space Dodge")
googling for that name brings up several git repos and tutorials with that same name. Some use Pygame, some use Lua.
CopyGPT!
by knorke
Sun Jan 07, 2024 6:24 pm
Forum: Games and Creations
Topic: Started My Very First Love2d Game
Replies: 25
Views: 281385

Re: Started My Very First Love2d Game

Sorry, I do not have the time to submit code. So I can only give some feedback. My laptop's resolution is 1366*768. Some libraries exist for the resolution problem, for example: https://love2d.org/forums/viewtopic.php?t=92494 Usually it does not require a complete rewrite, just inserting a few lines...
by knorke
Sun Dec 31, 2023 5:54 am
Forum: Games and Creations
Topic: Started My Very First Love2d Game
Replies: 25
Views: 281385

Re: Started My Very First Love2d Game

Hi you should add version numbers to your filenames, otherwise it quickly gets confusing. Anyway, I tried the version from this post https://love2d.org/forums/viewtopic.php?p=258162#p258162 (I believe) and it instantly hangs up. (Program not responding, have to close it via task manager) In initiate...
by knorke
Mon Dec 25, 2023 12:25 pm
Forum: General
Topic: [Just for fun] Roast my code.
Replies: 14
Views: 233466

Re: [Just for fun] Roast my code.

You re-use the "tmp" variable multiple times for completely different things. tmp = load(file) -> fileContent = load(fileName) function getnewlines(array, offset) tmp = {} tmp[1] = 0 tmp[2] = offset -> local i = 0 local newlinesCount = 0 tmp = love.window.showMessageBox("Warning"...