Fully agreed. Reading other's source code can help you incredibly; for example, I learned some things from your code, too (because I have a very loose grasp on the love modules, and the wiki documentation is kind of hard to follow).
Remember, the best thing to do if you're unable to read something is to ask for help or an explanation. Very rarely is it a bad idea, if ever.
Tilt - physics puzzler (r11)
Re: Tilt - physics puzzler
Well, I finally have a functional release of Tilt out! I know, it hasn't actually been a long time, but it has been a good amount of work. So here's the fun thing that the broken releases have been leading up to: you can create levels! See the first post for details. And feel free to post levels!
I'll probably be spending some time programming objects to be put into levels.
I'll probably be spending some time programming objects to be put into levels.
Tilt r6 out!
Tilt r6 is out! It includes:
-walls
-spikes
-a better level loading mechanism
-more sample levels
Anyway, now you're going to have to stick your levels into the "custom" folder and give them the extension ".tilt".
Feedback about the new release would be appreciated.
-walls
-spikes
-a better level loading mechanism
-more sample levels
Anyway, now you're going to have to stick your levels into the "custom" folder and give them the extension ".tilt".
Feedback about the new release would be appreciated.
- Attachments
-
- tilt.zip
- (29.64 KiB) Downloaded 67 times
Re: Tilt - physics puzzler (r6)
"Bad argument #1 to 'lines' (custom/sample1.tilt: no such file or directory)"
Re: Tilt - physics puzzler (r6)
Did you extract everything before running it?
Re: Tilt - physics puzzler (r6)
Yes, the format
...\love.exe
...\tilt.love
...\custom\[levels].tilt
...\love.exe
...\tilt.love
...\custom\[levels].tilt
Re: Tilt - physics puzzler (r6)
That's weird; it's working for me.
I switched from using love.filesystem for level loading to lua's built-in input/output functions for loading levels since love.filesystem always looks inside the .love file for stuff while lua's input/output library has no trouble looking inside the folder where the .love file is. Could this be causing a problem? And is there a good way to get love.filesystem to not just look in AppData or inside the .love file? I don't want to make people navigate to AppData or extract an executable file just to add a custom level.
I switched from using love.filesystem for level loading to lua's built-in input/output functions for loading levels since love.filesystem always looks inside the .love file for stuff while lua's input/output library has no trouble looking inside the folder where the .love file is. Could this be causing a problem? And is there a good way to get love.filesystem to not just look in AppData or inside the .love file? I don't want to make people navigate to AppData or extract an executable file just to add a custom level.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Tilt - physics puzzler (r6)
Don't use the Lua io, man. It's not a good idea, and it might be removed in a future version, to enhance sandboxing. (Plus, people have trouble with it all the time.)
Help us help you: attach a .love.
Re: Tilt - physics puzzler (r6)
There's a bug.
Hopefully at one point you'll be able to play with the directory your game is in, but for now, nope
Hopefully at one point you'll be able to play with the directory your game is in, but for now, nope
Re: Tilt - physics puzzler (r6)
OK, see if this one works.
You'll need to stick custom levels into %appdata%/love/tesselode_tilt/custom. Or ~/.love/tesselode_tilt/custom on Linux, etc.
You'll need to stick custom levels into %appdata%/love/tesselode_tilt/custom. Or ~/.love/tesselode_tilt/custom on Linux, etc.
- Attachments
-
- tilt-r6.5.love
- (29.7 KiB) Downloaded 73 times
Who is online
Users browsing this forum: No registered users and 38 guests