Tutorial Stream: Making a simple painting application using Castle’s User Interface API

Nikhilesh Sigatapu
Castle Games Blog
Published in
2 min readDec 11, 2019

Castle has a user interface API that allows your game to display buttons, text inputs, sliders, and even fancy elements such as color or file pickers to let users interact with your game. Today at 4:30pm PST, I’ll be streaming a tutorial about how to use this API to make a painting game.

After finishing this tutorial, we’ll have a painting program that can create this image.

Castle’s UI API widgets are optimized for each platform — web widgets on desktop and native widgets on mobile — to provide users the best interaction experience. This means that scroll views on mobile will have native scroll physics (you can scroll and release on iOS to have the scroll view keep going) and copy paste in text inputs will work as users expect on their platform. These nuances are usually hard to implement properly but the UI API handles them out of the box.

Our hope with the UI API is that developers use it to make tools for themselves or for players — such as level editors or drawing tools — to encourage fast iteration on their games and even user generated content that players share.

On the stream I’ll cover the use of the UI API to make a simple painting application where users can share their drawings to Castle as posts.

A preview of the painting game.

Join me on our Twitch channel at 4:30pm California time. See you there!

--

--