pistacchio / dedalus Goto Github PK
View Code? Open in Web Editor NEWA system based on Javascript and HTML to generate and run Choose Your Own Adventure narrative
A system based on Javascript and HTML to generate and run Choose Your Own Adventure narrative
Hello,
is there any responsive theme i.e Bootstrap like? I'm trying themes on my browser and none seem responsive-friendly. What would be the best approach for this issue?
Having an onPrint plugin that doesn't modify printing should return 'true' in order to let Dedalus continue its own onPrint function.
story.isInInventory('tocha_apagada') && story.isInInventory('Isqueiro')
I can't seem to add text for objects which will no longer show up after the object is taken (when revisiting the same passage).
Below are the relevant parts of my code -
<obj id="Keys" inventoryName="A Set of Keys">
<action id="Get">
<when>!story.isInInventory('Keys')</when>
You take the Set of Keys.
{{ story.putInInventory('Keys'); }}
{{ story.disable('findKeys'); }}
</action>
</obj>
<page id="tree_top">
<img width="480" src="images/Cyprus_Tree_Top.png"></img>
You're in the top of a tall cypress <show paragraph="seeKeys" id="findKeys">tree</show>.
Exists: <turn to="dismal_swamp">Down</turn>
</page>
<paragraph id="seeKeys">You see a Set of <interact with="Keys">Keys</interact> here.</paragraph>
This may be an issue of me not understanding Dedalus properly, but it has kept me from using it. My full code is here.
Any help would be greatly appreciated.
If you add this to getPages
it allows breaking the content up in large stories:
if (src) {
$.ajax({ url: src,
async: false,
dataType: 'html',
success: function(data) {
page = $(data)
}
});
}
Then in the html file:
<page id='someid' src='something.html'></page>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.