intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Dec 16, 2017 7:48 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun May 10, 2015 2:32 am 
Offline

Joined: Wed Apr 29, 2015 7:18 pm
Posts: 3
Hi everyone,

I've recently been using inklewriter as a prototyping tool for a game I'm implementing in Unity. To this end, I've ported the Inklewriter player to C# and have put together a simple example scene that replicates the inklewriter web UI using standard Unity 5 UI components.

The port is fairly stable and complete at this point, so I've released the code on GitHub:


I'd love to know what you think!

Michael

Image


Last edited by mstevenson on Sun May 10, 2015 3:18 pm, edited 4 times in total.

Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 10, 2015 1:38 pm 
Offline

Joined: Sun Apr 18, 2010 3:58 pm
Posts: 773
Could you post a screenshot? What do your Unity examples look like out of the box?

_________________
At Choice of Games, we sell long-form choice-based interactive fiction games. We're looking for writers, paid in advance.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 10, 2015 3:13 pm 
Offline

Joined: Wed Apr 29, 2015 7:18 pm
Posts: 3
Hi Dan, I've edited my original post to include a screenshot. The Unity package includes a compiled InklewriterSharp DLL, a set of Unity 5 UI widgets that replicate the inklewriter web UI, and an example scene that plays the Musgrave Ritual story.

Each UI widget has an attached component that implements a "Set" method. "Set" takes an appropriate object from the InklewriterSharp story player and modifies the UI state accordingly. For example, the TextBlock widget takes a Paragraph object, which contains body text and an optional image to be displayed.

This is currently just a pure port of the existing inklewriter web player, however once I'm reasonably certain that it runs existing stories correctly I'll consider expanding its functionality to layer on features that are likely to be more useful in a graphical environment.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 10, 2015 3:39 pm 
Offline

Joined: Wed Apr 29, 2015 7:18 pm
Posts: 3
I also wanted to clarify, this is a completely unofficial port, but I've received permission from inkle to make it available. These libraries may be used both commercially and non-commercially so long as credit is given to inkle studios.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon May 11, 2015 2:01 pm 
Offline
User avatar

Joined: Sun Aug 15, 2010 8:52 am
Posts: 1400
I am excited about this port and look forward to seeing where you take this next!

_________________
Carolyn VanEseltine


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jun 22, 2015 3:00 pm 
Offline

Joined: Mon Jun 01, 2015 3:20 pm
Posts: 27
I am following this with interest.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jul 01, 2015 3:22 am 
Offline
User avatar

Joined: Wed Jul 01, 2015 3:18 am
Posts: 2
Thank you for putting this together. I hope to use it in a future Unity project. :D

_________________
"Peace cannot be kept by force; it can only be achieved by understanding."

- Albert Einstein


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Nov 06, 2015 2:19 pm 
Offline

Joined: Fri Nov 06, 2015 2:07 pm
Posts: 1
Hi!

First of all thank you for your great contribution!

I'm using the player, and I wondered if it supported markers? I've imported a story in Unity, but certain options that are dependant on markers do not show up when they should.

Thanks


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Nov 11, 2015 10:25 pm 
Offline

Joined: Wed Nov 11, 2015 10:02 pm
Posts: 2
This is great! I have an issue with the example project though, whenever I advance to one of the next pages, the entire thing scrolls down to the very bottom instead of starting at the top like it should. Any idea why this is happening?

Here is an example at the beginning where it scrolls past the picture, cutting it off:
Image

Here is another example 2 clicks later where it scrolls down too far and cuts off a good amount of text at the top as well as the image:
Image


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Jul 09, 2016 8:04 pm 
Offline
User avatar

Joined: Mon Dec 03, 2012 12:45 pm
Posts: 33
I was literally just wishing inklewriter could be ported to Unity, and voila, found this. I'm going to give it a shot sometime this week, this looks awesome.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group