SAM is an html page to write simple adventure games.
All you need to change is the 'commands.js' file.
You can set there:
- Game name (will appear as title);
- Credits (will appear at the footer of the page);
- Commads of the game.
Command syntax is:
- I: Image;
param: ImageFileName
Example:
["I", "images/question-mark.jpg"]
- T: Text;
param: Text to show
Example:
["T", "It's evening and you studied all day long!"]
- B: Button;
param: Text of the button
param: Label where the button points to
Example:
["B", "You decide to play just for five minutes", "Play"]
- R: Restart Button.
param: Text of the button
Example:
['R','You lose, do you want to restart?']
You can also change 'SAM.css' to change the page look (colors, dimensions, ...).