Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Benji Kay

116
Posts
12
Topics
167
Followers
90
Following
A member registered Nov 17, 2015 · View creator page →

Creator of

Recent community posts

Thanks, it's great to hear you're enjoying it! If you feel like sharing any games you make with it, I would love to see them.

Hey, sorry for the delayed response! I guess you're right that text games are often written from scratch. Even in my case, I had an idea for a text game I wanted to make before I started writing the engine. But, I thought it would be both beneficial and also fun to structure the code such that it could be used for other games.

Having an idea in mind for a game was really useful for developing the engine, because it gave me a clear picture of the features I would need to implement. You can see this from the very first commit on Github, which included very simple versions of an engine and a game disk to then be expanded upon.

Later, when working on the new features for what would become text-engine 2.0, again I was working in parallel, this time on three new game disks. One of these was what would become the new demo disk for introducing folks to the game, and another was a new story disk I was collaborating on with a friend. Once again, fleshing out those games gave clear direction for which new features to implement next.

Thanks! If you press up & punch at the same time, that is meant to represent an uppercut.

Understood. I think your game is written from an underrepresented perspective and I really look forward to seeing more. Thanks again for sharing.

I'm enjoying your game! I assume there's a <spoiler>key</spoiler> somewhere to the <spoiler>chest</spoiler> but I haven't found it yet...

If you are interested for playtesting purposes, I can send you the log of my adventure so far.

text-engine community · Created a new topic Post Your Games
(1 edit)

If you've made a game that uses text-engine, post it here!

Works-in-progress are OK, too.

You bet, no problem.

Similar to how there is an onLook callback, rooms also have an onEnter callback that fires when the player enters the room. If you attach an onEnter method to your room and call playSound inside it, that should do what you’re wanting.

(1 edit)

It's no bother at all! I'm happy to help. You can use the prereqs to do this. You can make up any arbitrary string as a prerequisite, for instance 'door', and place it on the line you wish to hide, like this:

{ option: 'How do I UNLOCK this door?', line: 'You have to use a key, of course!', prereqs: ['door'] }

Now the option won't show up until some code runs that pushes that prerequisite onto the character's chatLog. You could do this, for instance, in the onLook callback for the door like this:

{

   name: 'door',

  desc: 'It\'s locked.',

  onLook: () => {

    const npc = getCharacter('gregory');

    npc.chatLog.push('door');

  }

}


Now you've met the prerequisite for discussing the door with Gregory (or whatever your NPC's name is). The next time you talk to him, the topic will show up.

This technique is used in the "ur dead" demo. After you learn from the character Fran about how names work in the underworld, it unlocks the ability to ask the other characters you've met what their names are.

If you have more questions, don't hesitate to ask. Like I said, happy to help!

No worries at all! If you're interested, I'd encourage you to check out at how the sound was implemented for the demo here: https://github.com/okaybenji/text-engine/blob/itch/custom/audio.js

It's pretty straightforward, so definitely take a look if you're wanting to do something similar. I can help with this to some extent, so just let me know if you have any questions about it.

Hey, no, you’re right. The engine doesn’t provide any tools for sound. In order to add sound you’ll need to learn about how sound works in HTML and/or JavaScript. One library you might look into for this is Howler.js.

text-engine community · Created a new topic AMA

Hey, I'm Benji! I made this engine. And I made this forum just now! If you have any questions, please ask here and I'll be happy to help.

You're welcome. The server automatically assigns the teams based on how many players are online. The only way you could control this is by joining the game one at a time, left, right, left, right, etc. (and ensuring no one leaves while players are still joining).

You are embedding the wrong link. This is what you should embed: http://benjikay.com/100ng/

No worries, you're fine! That link I posted is the game only, so you should be able to embed it.

Hey, thanks! The game is also hosted here: http://benjikay.com/100ng/

You could embed that page in a frame or iframe if you wanted.

Hey, thanks for the feedback! Really glad you are enjoying working with the engine. I'd be happy to help with this. It might be easier to get on a chat thread. Do you use Discord?

Thanks very much!!

Thank you very much! :D

Thanks so much!

No, this game was written in JavaScript, so it would not be possible to run on an emulator. (You could run the soundtrack in an emulator with an NSF player if you wanted, though!)

when you say the level 1 screen, do you mean the title screen that says level 1 or level 1 itself? if it's the level itself, are the animations playing? (there should be sparkling stars, characters bouncing a little with idle animations, and a character talking to you explaining the controls.)

which browser are you using, and what version?

hey, happy to try to help with this. can you explain in more detail what stuck means?

Feel free to build it for Windows. The game is open source. https://github.com/okaybenji/goodnight

🙏

Yes, that's correct. I don't have a PC to build the game on for that platform. The experience should be pretty much the same either way, though. The website version supports fullscreen, gamepad, etc.

That's my last destination to check off the list. 🙏

Thanks for your help. It seems my saves are safe.

I believe I've partially figured out the issue. It seems there is some code in the binary that requires that the filename not be changed. The default filename is "Neon" for some reason. If you change it to "Neon Struct" the game will crash on launch.

I still haven't been able to determine what is wrong with the icon. It was visible at some point but now it's not.

Hmm... so I played the game for a while today, through several levels, saved and quit to come back to it later, and somehow the icon has disappeared again and the game once again crashes every time I try to open it. I did just update OS X to the latest version (10.14.2), but somehow I doubt that's related. Where are the saves stored? If I download the game again will I lose my saves? Thanks.

Ah, sorry, I tried downloading it again and it worked this time. Also the first time the app didn't have an icon and used the default. Now I see the art. Not sure what happened.

Can I get help running this on macOS? Crashes the instant it's started. Seeing this error on crash: 

Thank you so much!!

Pardon my intrusion here. If I'm not mistaken, Loren built this using JavaScript and HTML. If you're looking for a framework to create your own text adventure, you might try text-engine. The commands and interface are a bit different, but you could achieve the same look (and even animate the display of the text) with a bit of CSS.

A+! Very chill! <3

Love it!!

Ah, great, it works with Keka! I am on the same version of OS X (10.13.6). I was using The Unarchiver 2.7.1.

Hey, I wanted to let you know that the Mac version 7z archive (1.0.2) is corrupted according to OS X. Let me know if I can help in any way to get this resolved.

You were right, the app built once I commented out 'win64' in the platforms. The icon still didn't work, though.

Just so you know, I went with an Electron app for my own project, but I am happy to help you troubleshoot the icon issue if you'd like me to.

Hi there! Thanks for this rad tool!

I'm having an issue building for Mac, both with my own app and with your example app. When the built app is launched, rather than showing the provided web app, it seems to show a placeholder/default nw.js page. It also seems not to use the provided icon.

Any help would be greatly appreciated it!



❤️