Text Engine Game Prototype
It has been a long time since I opened up a text editor and made something only with that. After many years of Game Engines, Unity, VR, etc. I wanted to get back to what I originally started with and enjoyed. This is a from scratch simplified text engine for purpose of creating simple prototypes for future games.
I wanted to make the simplest implementation I could of a text game engine, with basic room descriptions and button based choices.
Essentially each room is an object containing list of actions, and target rooms to traverse from the actions.
Complete Code:
<style>
body{
margin-bottom:32px;
margin-top:32px;
text-align:center;
background-color:black;
}
#maincont{
margin-top:32px;
text-align:center;
width:90%;
height:60%;
border:1px solid lime;
background-color:black;
color:lime;
}
#inputbar{
display:flex;
justify-content:center;
align-items:center;
margin-top:5%;
border:1px solid lime;
width:90%;
height:30%;
padding-bottom:1%;
}
#paratxt{
font-family:'Georgia';
text-align:justify;
padding-left:12px;
padding-top:4px;
padding-right:12px;
text-indent:1em;
vertical-align:center;
}
.btn{
padding:4px;
margin:4px;
margin-top:8%;
background-color:lime;
text:black;
font-family:'Georgia';
width:22%;
height:40%;
box-shadow:none;
highlight:none;
border:1px solid lime;
font-size:3%vh;
}
</style>
<div id="maincont">
<p id="paratxt">Ok this is the text i guess.</p>
</div>
<div id="inputbar">
<button class="btn">Button 1!</button>
<button class="btn">Button 2!</button>
</div>
This is an in progress text game engine.
Published | 3 days ago |
Status | In development |
Platforms | HTML5 |
Author | FusionLearningLabs |
Genre | Interactive Fiction |
Development log
- Simple little Text Game Engine3 days ago
Leave a comment
Log in with itch.io to leave a comment.