Page 1 of 1

No Consolation - A game in progress (0.9.0)

Posted: Thu Dec 05, 2013 6:37 pm
by 20047m
Hello all!

I have been working on creating a stylish text based game for quite a while now and was looking for some people to test it out. I would love to hear any feedback that anyone has to offer! There is very little content right now, as I am mostly still testing the game’s framework. Keep that in mind when looking through it, as this is mostly just a small demonstration of what this app is going to look like.

Re: No Consolation - A game in progress (0.9.0)

Posted: Thu Dec 05, 2013 7:09 pm
by Nixola
Instant feedback: the files are swapped, noConsolationEdit.love errors about enumerate being nil, I'll leave you more feedback later

More feedback: "cd .." doesn't bring me to the previous dir level and I can't seem to type the slash (shift+7 in my keyboard layout, Shift doesn't seem to work - you are using textinput, aren't you? This seems to be a LOVE bug) so I can't actually proceed in the game

Edit #2: Except I can, because of root. Suggestion: make "cd .." move you to the parent dir instead of 'up'

Re: No Consolation - A game in progress (0.9.0)

Posted: Thu Dec 05, 2013 10:00 pm
by 20047m
Nixola wrote:Instant feedback: the files are swapped, noConsolationEdit.love errors about enumerate being nil, I'll leave you more feedback later
I switched the files. Should be fixed now :)
Nixola wrote:More feedback: "cd .." doesn't bring me to the previous dir level and I can't seem to type the slash (shift+7 in my keyboard layout, Shift doesn't seem to work - you are using textinput, aren't you? This seems to be a LOVE bug) so I can't actually proceed in the game

Edit #2: Except I can, because of root. Suggestion: make "cd .." move you to the parent dir instead of 'up'
"cd ../" is coming up on the upcoming features list. "up" is just a dirty hack until I get that working! I'm glad you pointed that out, thank you, I wasn't sure if many people were used to that.

As for input, what's the best way to track keys being pressed while being agnostic of keyboard layout? This part is somewhat new to me. Thanks!

Re: No Consolation - A game in progress (0.9.0)

Posted: Thu Dec 05, 2013 10:26 pm
by Nixola
The best way is using love.textinput, which should pass the pressed character; all the symbols (which don't require shift) seem to work though, so you either use the IT keyboard layout as well or you're doing that correctly already.

Re: No Consolation - A game in progress (0.9.0)

Posted: Fri Dec 06, 2013 3:55 am
by bizziboi
Is the 2 version purely because of love.filesystem.enumerate?

Because in that case you can do

if not love.filesystem.enumerate then
love.filesystem.enumerate = love.filesystem.getDirectoryItems
end

and use love.filesystem.enumerate and be 0.8.0 and 0.9.0 compatible.

Re: No Consolation - A game in progress (0.9.0)

Posted: Fri Dec 06, 2013 4:27 am
by slime
bizziboi wrote:Is the 2 version purely because of love.filesystem.enumerate?

Because in that case you can do

if not love.filesystem.enumerate then
love.filesystem.enumerate = love.filesystem.getDirectoryItems
end

and use love.filesystem.enumerate and be 0.8.0 and 0.9.0 compatible.
Or do this instead so you get in the habit of writing love.filesystem.getDirectoryItems, which is the new one rather than the one that's removed:

Code: Select all

love.filesystem.getDirectoryItems = love.filesystem.getDirectoryItems or love.filesystem.enumerate
:)