Amazing! I absolutely love projects like this, where you put a game in somewhere it clearly wasn't meant to be. I made a game you play in your file browser[0] before, and I have another idea planned using windows error dialogs.
A kindred spirit!
Dungeons and directories is great! I've only played the beginning so far[Edit I've beat the game now and joined the secret club!], but I really laughed at the "You walk through the southern door, and straight into the chasm you saw earlier..." Picture : "you walking straight into the chasm with a smile on your face".
I ran into the same problems you did, any variable leads to an exponentially large state. Other than, "scoping" as you put (or branch merging as I put it), the most space-efficient way I found to keep state was to ask the player to remember a passcode. So the player can keep track of the state, but I don't have to (ie. exponential space savings!). Even when entering the password, you can keep the space small (n*2 rather than 2^n) see [0]. Players used to retro PC games will remember entering passwords found in their instruction manual, so it's an added nostalgic appeal. Let me know when your error dialogs game is done. If you want to collaborate on some games, hit me up, I too love games where they shouldn't be. 0: https://github.com/mmulet/code-relay/blob/main/markdown/how/...
Thanks! Just played through fontemon now (I think, the final battle is unbeatable right? I think I tried every move combo). Had a bit of trouble getting it to work in system programs, but on your site it worked just fine (in libreoffice it would just repeat the intro if I changed the font size, and gimp would shift things up and down depending on the highest pixel in the frame).
Yeah it still has a lot of quirks. On libre office, you have to change the font size to size 2px (and zoom in) or so to play the game all the way through without resetting. Same thing happened to me in gimp, it's annoying but playable.
I had a similar "variables" problem when designing a choose-your-own-adventure book with my kids. I wanted your character to be able to reach the same pages but have state -- e.g. have a key or not have a key. I didn't want to have to duplicate pages with different state (which I kind of remember from old CYOA books -- there's be pages with almost the same thing, but now slightly different because you entered the room with a sword or whatever).
In the end, because it's a book and not a computer game, we could just ask the user: "If you have a key, turn to page 43..." and it just depends on the user being honest (or as honest as any reader of a CYOA book is, with nine fingers stuck between pages). I assume there were similar books in the past that used the same mechanic -- maybe the Fighting Fantasy books? I forget.
Could you have used the key as a simple crypto-key? As in, give them the two digit number, and tell them "Turn to page 17+the number of the key".
Or if you wanted to make them work a little harder and maybe teach a little math, "17 times the number mod 47". Of course they can still be dishonest, but it gives them an opportunity to have solved a simple puzzle. They get to the correct page because they "won".
You're following someone's footsteps and don't even know it.
This is years beyond the statute of limitations so I can finally talk about it - in my youth I broke into one of LANL's servers for kicks; some Lotus/IBM Domino machine, saw nothing of interest except for a project directory which even the admin didn't have access to... I didn't want to escalate privileges any further because it'd require permanent changes and would probably trip a flag - but then I found a bizarre folder. Someone coded a series of directories within Domino and made a maze game, maybe a Zork 'lite'. I spent a few minutes exploring and got bored.
Barely remember... I think it was some staff/user directory listed within robots.txt, which also happened to not verify edit credentials on the backend so I was able to 'borrow' a login from a backup admin :)
Plenty of similar stories about other better known orgs/corps but this isn't the venue for those :)
This week I stumbled upon John Robertson for the first time. He made an choice based Adventure game called The Dark Room, which (in its first iteration) was realized with YouTube Annotations, then performed live, and now he streams it on Twitch. It's an interesting combination of preparation and improvisation
Perhaps the most interesting consequence of this game design is that you can edit the past, changing a single decision while leaving your other choices in place.
For example, it's possible to go back to the beginning of the input box and edit your character selection while keeping the rest of your gameplay in place. Seems like this could have a lot of potential as a puzzle game mechanic.
Best quote from the author's article explaining how it was done (even though by his own admission he didn't follow his own advice in the case):
"If you want to make a game, make a game. If you want to make a game engine, make a game engine. But never, ever, make a game engine to make your game!" I spent a good five+ years working on my own game engine to make my own games with it. Never finished a single game, or the engine-- but it was a fun learning experience so there's that.
It's a much better quote than the annoyingly common, "Don't write a game engine!"
If you work in games or want to work in games, writing a game engine is a very valuable experience. Probably the best thing you can work on for personal growth. That said, I think you get substantially more value out of the experience if you've already gotten your feet wet making games with a commercial engine.
Now obviously QJ2D is not going to replace Godot or even LÖVE2D or TIC-80. It's a couple of days' worth of work, less than 200 lines of code; anyone could have done it. And nobody else is going to use it unless they have Greek letters on their keyboard. But not only did I learn a lot, it's also a substantial improvement for this kind of thing over the raw browser. I think I'll probably rewrite it differently for the next project, though... I don't want to "work in games", but of course I enjoy writing games. I mean that's all computers are good for, really! ______ † not really games
Comments (76) 29 threads
I also released the code for the game engine. Available here: https://github.com/mmulet/code-relay/tree/main/markdown/Tuto...
0: https://wheybags.com/dungeons_and_directories/
I ran into the same problems you did, any variable leads to an exponentially large state. Other than, "scoping" as you put (or branch merging as I put it), the most space-efficient way I found to keep state was to ask the player to remember a passcode. So the player can keep track of the state, but I don't have to (ie. exponential space savings!). Even when entering the password, you can keep the space small (n*2 rather than 2^n) see [0]. Players used to retro PC games will remember entering passwords found in their instruction manual, so it's an added nostalgic appeal.
Let me know when your error dialogs game is done. If you want to collaborate on some games, hit me up, I too love games where they shouldn't be.
0: https://github.com/mmulet/code-relay/blob/main/markdown/how/...
Overall, awesome stuff :D Ever since I read [0], I knew you could do some funky stuff with ligatures, but I never imagined you could take it this far :D
0: https://blog.janestreet.com/commas-in-big-numbers-everywhere...
You have to keep going past the ending (GameOver) keep typing. You'll revive and beat the boss.
Continue this thread — 2 replies
In the end, because it's a book and not a computer game, we could just ask the user: "If you have a key, turn to page 43..." and it just depends on the user being honest (or as honest as any reader of a CYOA book is, with nine fingers stuck between pages).
I assume there were similar books in the past that used the same mechanic -- maybe the Fighting Fantasy books? I forget.
Or if you wanted to make them work a little harder and maybe teach a little math, "17 times the number mod 47".
Of course they can still be dishonest, but it gives them an opportunity to have solved a simple puzzle. They get to the correct page because they "won".
Continue this thread — 2 replies
This is years beyond the statute of limitations so I can finally talk about it - in my youth I broke into one of LANL's servers for kicks; some Lotus/IBM Domino machine, saw nothing of interest except for a project directory which even the admin didn't have access to... I didn't want to escalate privileges any further because it'd require permanent changes and would probably trip a flag - but then I found a bizarre folder.
Someone coded a series of directories within Domino and made a maze game, maybe a Zork 'lite'. I spent a few minutes exploring and got bored.
Plenty of similar stories about other better known orgs/corps but this isn't the venue for those :)
This week I stumbled upon John Robertson for the first time. He made an choice based Adventure game called The Dark Room, which (in its first iteration) was realized with YouTube Annotations, then performed live, and now he streams it on Twitch. It's an interesting combination of preparation and improvisation
For example, it's possible to go back to the beginning of the input box and edit your character selection while keeping the rest of your gameplay in place.
Seems like this could have a lot of potential as a puzzle game mechanic.
"If you want to make a game, make a game. If you want to make a game engine, make a game engine. But never, ever, make a game engine to make your game!"
I spent a good five+ years working on my own game engine to make my own games with it. Never finished a single game, or the engine-- but it was a fun learning experience so there's that.
If you work in games or want to work in games, writing a game engine is a very valuable experience. Probably the best thing you can work on for personal growth.
That said, I think you get substantially more value out of the experience if you've already gotten your feet wet making games with a commercial engine.
Now obviously QJ2D is not going to replace Godot or even LÖVE2D or TIC-80. It's a couple of days' worth of work, less than 200 lines of code; anyone could have done it. And nobody else is going to use it unless they have Greek letters on their keyboard. But not only did I learn a lot, it's also a substantial improvement for this kind of thing over the raw browser. I think I'll probably rewrite it differently for the next project, though...
I don't want to "work in games", but of course I enjoy writing games. I mean that's all computers are good for, really!
______
† not really games
All comments shown.
Couldn't load more comments. Check your connection and try again.