Thursday, June 16, 2016

Web Interactive Fiction: FyreVM Text Styles

Web Interactive Fiction: FyreVM Text Styles

http://ift.tt/1Xs15Qx

My initial thoughts on this extension were to offer font control. Then I used it and realized this completely breaks my SoC intent. Text styling should be left to using em, b, i, and strong tags, along with link commands (hyperlinks that send commands to the VM).

So I removed the font and color constructs.

Then when testing link commands, I realized everyone would use them for compass directions and such, so I added the following:

go-north is a link-command with command "north".
go-northeast is a link-command with command "northeast".
go-east is a link-command with command "east".
go-southeast is a link-command with command "southeast".
go-south is a link-command with command "south".
go-southwest is a link-command with command "southwest".
go-west is a link-command with command "west".
go-northwest is a link-command with command "northwest".
go-up is a link-command with command "up".
go-down is a link-command with command "down".
go-in is a link-command with command "in".
go-out is a link-command with command "out".

do-inventory is a link-command with command "inventory".

Now that I have this wrapped up and have a “feel” for where development should go, I’m going to move back over to my ReactJS application development and a real-world example. This will include a responsive design, reusable components, save/restore, paging or scrolling options, images and videos, sounds, modal popups, menus, and more.

But I have to set this aside and work on other things for a bit. fyrevm-web work will probably be silent for a few months.

Add a Comment




Gamebook blogs

http://ift.tt/1Xs15Qx
via Planet Interactive Fiction http://planet-if.com/

June 16, 2016 at 12:05PM

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.