<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ana Redmond on Medium]]></title>
        <description><![CDATA[Stories by Ana Redmond on Medium]]></description>
        <link>https://medium.com/@anaredmond?source=rss-55c06c576845------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*jSWxQ0KO9oIsLfX7GkxSAA.jpeg</url>
            <title>Stories by Ana Redmond on Medium</title>
            <link>https://medium.com/@anaredmond?source=rss-55c06c576845------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 22:15:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anaredmond/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kotlin Conf 2019: Going Native]]></title>
            <link>https://medium.com/@anaredmond/kotlin-conf-2019-going-native-14bd2fae9ba3?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/14bd2fae9ba3</guid>
            <category><![CDATA[kotlin-native]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[kotlinconf]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 19:22:09 GMT</pubDate>
            <atom:updated>2020-01-08T20:04:34.279Z</atom:updated>
            <content:encoded><![CDATA[<p>As promised, here are the slides from my presentation on Going Native</p><p><a href="https://docs.google.com/presentation/d/1TTl28hzwaAy-MjaTWi8lsJ4TxNwOPESqBsgDo36NaA4/edit?usp=sharing">https://docs.google.com/presentation/d/1TTl28hzwaAy-MjaTWi8lsJ4TxNwOPESqBsgDo36NaA4/edit?usp=sharing</a></p><p>Some people prefer to go through the slides quickly. Others prefer to watch the full video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLQ176FUIyIUY6SKGl3Cj9yeYibBuRr3Hl&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpdMJVpaMD68&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpdMJVpaMD68%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/112cc1e9301bd48a71bb40a586542e94/href">https://medium.com/media/112cc1e9301bd48a71bb40a586542e94/href</a></iframe><p>Yet others may want to look at summaries from attendies, such as a summary of all the Kotlin multi-platform sessions from Touchlab:</p><p><a href="https://touchlab.co/kotlinconf-2019-recap/">Touchlab KotlinConf 2019 Recap - Touchlab</a></p><p>And, more detailed summary of my talk from Ordina-jworks:</p><p><a href="https://ordina-jworks.github.io/conference/2019/12/18/KotlinConf-2019.html#going-native-how-i-used-kotlin-native-to-port-6-years-of-android-game-code-to-ios-in-6-months-by-ana-redmond">KotlinConf 2019 - Yannick De Turck, Jeroen Meys, Pieter Van Hees, Jens Bosman and Michael Vandendriessche</a></p><p>Thanks so much to the organizers of KotlinConf for accepting my talk and inviting me on the closing panel. I don’t have the words to express how much it encouraged and validated my work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14bd2fae9ba3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[infinut Math FREE]]></title>
            <link>https://medium.com/@anaredmond/infinut-math-free-21f1d077c75b?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/21f1d077c75b</guid>
            <category><![CDATA[infinut-math]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Fri, 08 Nov 2019 16:53:19 GMT</pubDate>
            <atom:updated>2019-11-08T16:53:19.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLif6l4E7-q1_flnnt8N6g.png" /></figure><p><a href="http://infinut.com/">infinut Math K-2</a> is now totally and completely FREE for everyone, everywhere. No Ads, No Purchases, Just Learning.</p><p>We built the most effective play-based math learning and practice. In the above chart, the effectiveness correlates directly to the degree of elaboration in the feedback that the math software provides. But, I couldn’t make infinut Math self-sustaining from a business point of view.</p><p>Two years ago, the question I got the most from many parents was… “Is infinut Math available on iOS”. I solved that last year with <a href="https://medium.com/@anaredmond/native-cross-platform-game-published-12-of-12-3021b5345dd2">Kotlin Native</a>. Now the question I get the most from teachers is “Can you make infinut Math free? We have devices, but, need good learning programs for them”.</p><p>It was not an easy decision to make infinut Math free. I struggled with it.</p><p><em>My first thought was if I make it free, how will it sustain?</em></p><p>But, it doesn’t cost much to run, since it is well optimized to cache and transfer little amounts of data. I could code for someone else, and pay for the servers with earnings.</p><p><em>What about bringing back the awesome team and building more games and learning for kids?</em></p><p>But, what good is building the best, most effective math learning for kids, if the school is unable to provide it to them, and, the kids are unable to play and learn from it.</p><p><em>What about selling to teachers to sustain it?</em></p><p>Teachers are doing their best to do the best they can for our kids (including mine), in the face of many, many challenges. They are the ones asking me to make it free. They are not asking for themselves. They are asking for their students, just like my kids.</p><p><em>What about selling to parents?</em></p><p>Only the ones who need it the least can afford to buy anything. Most end up letting their kids watch passive videos on you tube instead of interactive learning. I can provide them the best alternative. No ads. Just learning.</p><p><em>Can I actually do it? Can I make it free? What about everyone’s expectations?</em></p><p>Once I let go of the dream of bringing my team back, and accepted that I will need to go back to work to pay for the servers, it seems like an obvious decision. The team (Barb, Susan, Shima, Mike) are working at other places or on other things now. They are the kindest, most giving people I know. I will always owe them for creating infinut Math with me.</p><p>It was not an easy decision to make infinut Math free. I struggled with it.</p><p>By making infinut Math FREE, I am setting myself free to explore what’s next.</p><p>I’m looking forward to <a href="https://kotlinconf.com/speakers/715fbed7-a949-4afd-8441-313360a6fa9a/">speaking</a> and <a href="https://kotlinconf.com/talks/">learning</a> at <a href="https://kotlinconf.com/">KotlinConf</a> soon and then, some family time for the holidays. I am excited to see what the next year brings!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21f1d077c75b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity Vs. Kotlin-Native]]></title>
            <link>https://medium.com/@anaredmond/unity-vs-kotlin-native-64cd75386357?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/64cd75386357</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[kotlin-native]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[native]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Tue, 11 Jun 2019 16:20:58 GMT</pubDate>
            <atom:updated>2019-06-20T17:03:56.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*ELeAEBv8Ir2XkiEuOpmhfQ.png" /></figure><p>Barb has been my collaborator since 2015. She is a versatile artist and game designer who has dedicated herself to creating games to engage kids in learning. She has been helping and supporting me on <a href="http://infinut.com/">infinut Math</a>: providing expertise, encouragement, cheer leading, often without much pay. This time, I hope to return the favor.</p><p>Barb has wanted to build a interactive math storybook for her portfolio for as long as I have known her. She did the illustrations and wrote the story herself. But, even though she wanted to do the code herself too, it would take a while for her to learn and do it herself. I had just completed porting all of <a href="https://medium.com/@anaredmond/native-cross-platform-game-published-12-of-12-3021b5345dd2">infinut Math to Kotlin-Native and publishing on iOS too</a>. So, as I marketed the app, I wanted to code something new too. I offered to be the coder for Barb’s app. The app, <a href="https://www.happylittleraincloud.com/">Gimble the Happy Tree Frog</a>, was released this week. Its a beautiful storybook with animations, narration and interactive math.</p><p>Our first task was figuring out what platform to use. I was familiar with Kotlin-Native and, hence, was tempted to build it using the same <a href="https://medium.com/@anaredmond/cross-platform-game-game-sdk-2-of-c9bcd4878cf4">native framework I had previously developed</a>. But, since this was a storybook, more heavy on design and animations, we thought we’d try Unity. It would allow Barb to build animations and book pages visually. All my previous projects have been native, most recently Kotlin-Native. It was yet another language (C#) and platform (Unity) for me to learn, but, Barb took the first step by installing BookPro plugin, and getting started on the pages for the Book. The platform is different, but, the things we needed to do with it, were similar, yet very different. Here’s some of what I learnt building in Unity vs. Native:</p><ol><li><strong>Multi-device</strong>: We defined an initial grid and design, and tested it on 4:3 and 16:9 orientations. We thought that should be sufficient. At the end of the project, when we tried it on iPhone X we discovered that was closer to 18:9 and parts of the book were getting cut off. Fortunately we were able to change the ratio parameter for determining whether to use width or height for sizing without changing the layout. For Native, we typically computed layouts at run time, so, this was not an issue in native.</li><li><strong>Animations</strong>: were easier with Unity and its visual editor. Barb could layout the book, and do the animations without needing to code. The problem we had was only one of us could edit the scene at a time, since otherwise it would cause merge conflicts with no easy merging. For Native, Barb would do mock ups, and we’d code the animations. Multiple developers could easily merge code. So, there was no conflicts.</li><li><strong>Audio</strong>: was simple to do with unity, though performance varied based on device capability. To provide audio hooks, I had to change the BookPro scripts. We used similar callbacks at the end of an audio sequence as we did for native.</li><li><strong>Interactivity</strong>: was harder with unity. We eventually figured out that we needed to use the event system, not ray casters, and that helped a lot. We still had to figure out Unity’s multitude of co-ordinate systems. I still don’t fully understand it, but, managed it somehow. I really missed our native single screen-based co-ordinate system when coding this.</li><li><strong>Memory Usage</strong>: Where I was used to our very large native apps running on 100M or so, our small Storybook app took up 300M+. It was more like 600M+ at first, but, we re-imported all the images with max 512 to bring the memory down by about half. Reducing the size further did not seem to help much. With Native, we only loaded what we needed for that game when we need it, and at a resolution determined at run time based on what we’d be able to display. That was not possible with Unity.</li><li><strong>FPS</strong>: Our frames per second was initially only between 10–20. It took me almost 2 weeks to figure out an issue with BookPro. We were enabling transparent pages, and that meant that all pages were rendered, not just the two visible ones. Turning off transparent pages required me to change the BookPro scripts to fix the rendering. Once fixed, the FPS jumped to 60 for high power devices. On Native, we typically get similarly high FPS.</li><li><strong>Load Time</strong>: On low power devices, Unity takes a while to startup, often 10s or more. Native apps, with a lot more games, could be easily optimized to load in &lt;1s, and continue to load resources on demand or in the background.</li><li><strong>App Size</strong>: The Unity app, granted it included images, animations and audio, is ~180M installed, ~100M download. Our largest native app, with 60+ games, and lot more images and audio is still less: ~130M install and ~90M download.</li></ol><p>I don’t think the feedback mechanisms, the large number of games in one app, and how quickly we built them for <a href="http://infinut.com/school">infinut Math</a> in native would be possible with Unity. Also, the dashboard, student management, assignments screens, that are built with native widgets, would be a nightmare to do in Unity, if even possible at all. But, Unity was well suited to this storybook project, since it was more design and animations, with relatively less interactivity. I’d use it again for a similar project.</p><p>It is easy to want to believe that there is one thing that works for all our projects, only one thing we need to know and do. But, as engineers, we have to keep learning so we can figure out the best tool for the job. Even two game-based learning projects are not the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64cd75386357" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Women Tech Makers: infinut]]></title>
            <link>https://medium.com/@anaredmond/women-tech-makers-infinut-bb077f135061?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb077f135061</guid>
            <category><![CDATA[women-tech-makers]]></category>
            <category><![CDATA[entrepreneur]]></category>
            <category><![CDATA[woman-in-tech]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Sun, 03 Mar 2019 03:04:13 GMT</pubDate>
            <atom:updated>2019-06-12T16:29:12.918Z</atom:updated>
            <content:encoded><![CDATA[<h3>International Women’s Day talk for Women Tech Makers: infinut</h3><p>I’m Ana Redmond, Founder and CTO of <a href="http://infinut.com/">infinut</a>. For the last 7 years I’ve been building games to teach kids math concepts. Before that, I worked as a software developer for 15 years and for a few years also taught Java and then, Android programming at University of Washington, Professional and Continuing Education (UWPCE). In spite of all my accomplishments and qualifications, I dropped out of the tech industry about 8 years ago, and swore I would never return to it. This talk is the story of my journey since then, finding my purpose in tech.</p><p>I started building math games for my daughter when she started falling behind in math in Kindergarten itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1JKg0UZ-qmBa6GYBjw5Sg.jpeg" /><figcaption>Have you seen this expression when its time to do math?</figcaption></figure><p>I found that the reason, why my daughter was so frustrated with math, is that she was being asked to memorize numbers and equations without understanding what they mean. As an engineer, I know that math learning is not about rote memorization. It is about understanding and connecting math to everyday things. So, that’s what I build into the games.</p><p>I was at an Android app hackathon in late 2011 and I decided to build her a simple game to teach her the concepts of addition and subtraction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Jbnuz82TAteuDKVnE4Xhg.png" /><figcaption>Addition is adding objects into a box, subtraction is simply removing them.</figcaption></figure><p>My daughter loved playing that game. She played it over and over again. So, I published it on Google Play and it just took off. Over the next few years, I built her many such games to teach concepts. Those games were downloaded 1.5 million times in total. But, eventually, the market for one-off educational games died.</p><p><strong>Well, I thought, that’s the end of it.</strong></p><p>But, then, in early 2016, we were awarded a <a href="https://nsf.gov/awardsearch/showAward?AWD_ID=1548029&amp;HistoricalAwards=false">National Science Foundation SBIR Phase I grant</a>. With that grant, I was able to put together an all woman team of engineers, educator and game designer…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qpELZfUt5NTMlzo_FNdqw.jpeg" /></figure><p>… and build what I really wanted to: conceptual math learning of all topics for Kindergarten.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgG7OW3WstsbV--Gwdmkvg.png" /><figcaption>30 games, 30 lessons for Kindergarten</figcaption></figure><p>We kept the idea of explaining concepts simply, and with much better graphics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VysT8pnydePzEj2gJgxAtg.gif" /></figure><p>To that we added step-by-step audio-visual feedback integrated into every game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-6SCYsEt_OUzzqG1cHVFg.gif" /></figure><p>This feedback is absolutely necessary for children to learn as they play, yet no other math games provide it. We build 30 games in 6 short months and conducted research at a Title 1 public school.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeTV6WKbl3LN4t_yg1p7vQ.gif" /></figure><p>Our research showed more than a year of gain in learning for students who played the app in just 3 months (Cohen’s d: 1.24, p&lt;.001). My favorite is that there were these 2 ELL (English Language Learners) girls, who improved the most, and afterwards, the teacher said, they started asking more questions in class. Their confidence grew. The results are unprecedented, and we should study further. But, we did not get our Phase II follow on funding from the NSF.</p><p><strong>And, I thought, maybe that’s the end of it.</strong></p><p>But, then, the entire team decided to stay for a year and build 1st and 2nd grade math because they believed so much in what we were doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idwEUeXkjXP8NUEZDl3pow.png" /><figcaption>60+ games, 120 lessons for K-2</figcaption></figure><p>By the time we completed 2nd grade, I was completely burnt out. I could not so much as look at another piece of code. So, I thought I’d try and license or even sell the company. We were Android only at the time, so, we were able to license the apps to Playaway. Playaway builds pre-loaded tablets for libraries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*oyH4oC8xtmODZyeLIEFRPg.gif" /><figcaption>Series of 12 pre-loaded tablets for libraries with infinut Math</figcaption></figure><p>But, any other licensing or even acquisition talks with school, or homeschool providers, did not go anywhere because we were not on both major platforms. They could hardly tell half their customers: You can’t have it.</p><p><strong>So, I thought, that’s probably the end of it.</strong></p><p>But, then, I discovered Kotlin Native.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*K3qL1cxrzmaFx3vZ2BSDAg.png" /></figure><p>Kotlin Native gave me a way to port all that complex game code once, and run it on multiple platforms natively. It should work, in theory. So, I put together a plan for how we could go multi-platform, and sell to schools. Sherri, who was our school sales adviser, and former GM of Microsoft Education, agreed to come on board as CEO. And, we went looking for funding. But, midway through that, Sherri decided to retire for personal reasons. Have you heard the saying:</p><blockquote>Woman makes plans, God laughs</blockquote><p>It was futile trying to raise funding on my own. Investors were also laughing at me: Is this even a real business?</p><p><strong>And, I thought, that’s definitely the end of it.</strong></p><p>But, then, I realized that I had been able to build games for my daughter in the first place because I am an engineer. I can code. So, I decided to build it cross platform myself. I din’t know how long it would take to build it by myself. There was a lot I needed to learn. I din’t know what problems I will run into. Kotlin native was very new. I din’t know if it would work. When you can’t plan for anything, its best to just start coding. I started coding in June of last year, and it took just 6 months to publish on iOS. We published all the grades on iOS just over 2 months ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*bzh-mBkaPEF0GybiNVWwyA.png" /></figure><p>Perhaps that saying shouldn’t be: Woman makes plans, God laughs. It should be:</p><blockquote>Woman builds it anyway, let the others laugh</blockquote><p>It is a new beginning. I am figuring out how to do sales now. I beg teachers to try it. I get all excited when they want to. And, I celebrate when they tell me kids love playing and learning at the same time! Some teachers, even as far as Australia and Dubai, want to try it. But, not that many kids get to try it, because, most people still believe that math learning is about memorizing computations. Its hard to change people’s minds. I don’t know if I’ll be successful.</p><p><strong>All I know for sure, is that this is NOT the END of it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb077f135061" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Cross-platform Game: Published (12 of 12)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-published-12-of-12-3021b5345dd2?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/3021b5345dd2</guid>
            <category><![CDATA[publishing]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Sat, 15 Dec 2018 00:34:20 GMT</pubDate>
            <atom:updated>2019-12-20T17:21:40.515Z</atom:updated>
            <content:encoded><![CDATA[<h3>Native Multi-platform Game: Published (12 of 12)</h3><p><strong>The last 20%</strong></p><p><a href="https://medium.com/@anaredmond/native-cross-platform-game-data-handling-11-of-c8f06e345f06">With data testing completed </a>and subscriptions integrated via StoreKit, we are ready to release infinut Math Kindergarten with 30 lessons to teach kids math concepts. 1st Grade with 40 lessons and 2nd Grade with 50 lessons will be easier to convert and should be published within the next month or so.</p><p>There was only one minor issue during publishing that Kotlin-Native caused: when we uploaded the app to the appstore, it was rejected at first because NSMicrophoneUsageDescription was not provided. We are, however, not using any recording APIs, only playback. It took some time to figure out that since were were invoking AVAudioSession from Kotlin-Native, there is a wrapper that Kotlin-Native created for the recording function, that in turn triggered the error. The only workaround at this time was to provide a NSMicrophoneUsageDescription. With that defined in the apps info.plist file, the archive was accepted for internal testing.</p><p>Technical problems all solved, for the last week, I’ve mostly been working on the Legal. The first submission was rejected and I added a new screen clarifying how auto-renew subscriptions work and also added Terms of Use working with the lawyer. The process may be tedious, but it is worth it. Apple provides clear reason for why the app was rejected, and have a good amount of samples and guidelines available on how to fix the issue. It will help make the Android app better too when we update it to match the iOS one.</p><p><strong>End of a fruitful year</strong></p><p>Once the Kindergarten app was released, I continued to complete the 1st Grade and 2nd Grade apps. <a href="https://itunes.apple.com/developer/id1436758341">It is all released now.</a> Reflecting back, the scariest part of the project were the many, many times that I had to solve problems with no documentation, and no code samples. And, I was pretty much on my own. I could ask questions on the Kotlin-Native slack channel. They were very supportive, but, they neither had access, nor the depth of understanding of our code-base.</p><p>Requiring both creative thinking and grit, this was the toughest project I have done in my 20 years of coding. I learnt multiple languages: Kotlin, Swift. I worked on multiple architectures: iOS and Android. It was a great year of learning and growth.</p><p><strong>A new beginning</strong></p><p><a href="http://infinut.com/">Ours</a> hasn’t been a typical journey. I had been building learning games for kids since 2011. But, they were getting out of date. Then in 2016, we won a NSF grant. That year I was able to build a team, and games that I had been dreaming of building, but, couldn’t find the funding to. That was a good time.</p><p>When that funding ran out, I couldn’t afford to keep the team. I looked for funding for a while hoping to keep the small team. But, wasn’t successful. Letting go of the team was the painful time. A year+ later, there is some revenue coming in. I use that to pay for graphics, audio, and keep creating. I do the code myself. I’ve stopped looking for funding. I am looking for potential partners/licensees.</p><p>Taking it one day at a time, I am happy building learning games for kids and thankful that I am able to. Next, I am looking forward to a year-end break just having fun with kids during the holidays.</p><p>Merry Christmas and a Happy New Year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3021b5345dd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Cross-platform Game: Data Handling (11 of …)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-data-handling-11-of-c8f06e345f06?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8f06e345f06</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Thu, 11 Oct 2018 16:06:21 GMT</pubDate>
            <atom:updated>2019-12-20T17:21:13.650Z</atom:updated>
            <content:encoded><![CDATA[<h3>Native Multi-platform Game: Data Handling (11 of …)</h3><p><a href="https://medium.com/@anaredmond/native-cross-platform-game-ios-with-kotlin-native-quirks-10-of-a74d2fdce835">With game testing almost done</a>, I am behind on implementing data integration for reports, dashboard and assignments. My original plan was to try and do this in a re-usable cross-platform way. However, given the complexity of handling server connectivity and that Firebase has great documentation on iOS, but, not multi-platform Kotlin, I decided to stick to the well-treaded path and build it as a reusable framework in Swift. It will be simple to replace it with a common Kotlin module if/when Firebase provides a multi-platform Kotlin library to do so.</p><p>Keeping in mind that I may do a common implementation later, I put the data model in the common module in Kotlin, and defined a common Data Handling interface there too.</p><pre><strong>interface </strong>DataHandler {<br>    <strong>fun </strong>login()<br>    <strong>fun </strong>logout()<br>    ...<br>}</pre><p>Then, I created a separate library in Xcode using Swift to implement the data handling interface. Kotlin-Native automatically prepends the three letter acronym (GDK) for our common framework to class definitions. So, we access the Kotlin interface DataHandler from Swift as GDKDataHandler.</p><pre><strong>public class </strong>FirebaseDataHandler: GDKDataHandler {<br>    <strong>func </strong>login() {<br>        ...<br>    }<br>    <strong>func </strong>logout() {<br>        ...<br>    }<br>    ...<br>}</pre><p>My iOS project structure is growing with separate libraries for games, data, shared screens, and then one app each for Kindergarten, 1st and 2nd grade to put it all together for publishing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*7ueq_A2l4_APXWxOl6JssA.png" /></figure><p>Next part was setting up Firebase SDK. As usual, this was the hard part, with many problems e.g. Pods did not work for Firebase SDK setup, since I am not using workspaces, only xcode projects. So, I added it manually as a static library. Initially I put the frameworks and .h and modulemap files in separate folders from the frameworks, which did not work. Putting them all in the same folder, and adding that folder to the <em>User Header Search</em> paths for both the data framework and the kindergarten math app project worked. The Firebase.configure() call worked after putting the Google services plist file into the data framework (Note: By dragging and dropping it into the data framework project, it is automatically added to the copy resources phase of the build).</p><p>We had previously used Google Single-sign-on for our project. It made sense for Android, but, I prefer a more open system for iOS. Fortunately, Firebase recently introduced email-link authentication. The email-link-auth also verifies the email during login, and automatically ties together new logins to user accounts previously created using Google Single-sign-on. This means that existing customers can login using the same email on iOS and see the same reports, dashboards, assignments etc. on either device. Eventually, I plan to replace Google Single-sign-on with email link authentication on Android as well. It is safer for kids, since parents must access their email to login.</p><p>With this plan, I had to repeat the Firebase implementation code in iOS, but, given that our data model is not complex, it was the best approach at this time. Next, I will add subscription purchase for the <a href="http://infinut.com/">iOS app</a> and we will be <a href="https://medium.com/@anaredmond/native-cross-platform-game-published-12-of-12-3021b5345dd2">ready to publish our first app to iOS</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8f06e345f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Multi-platform Game: iOS with Kotlin-Native quirks (10 of …)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-ios-with-kotlin-native-quirks-10-of-a74d2fdce835?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/a74d2fdce835</guid>
            <category><![CDATA[educational-games]]></category>
            <category><![CDATA[android-vs-ios]]></category>
            <category><![CDATA[kotlin-native]]></category>
            <category><![CDATA[2d-games]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 15:45:43 GMT</pubDate>
            <atom:updated>2019-12-20T17:20:52.163Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@anaredmond/native-cross-platform-game-ui-screens-9-of-f7ac723e4fd1">The games for the first app are mostly ported to Kotlin</a>: compiled to iOS using Kotlin-Native and running on an iPad. As we began testing the games on the iPad this week, we started finding some unexpected issues. I came from an Android background, so, some of these issues might be obvious to anyone who has more iOS development experience than me. Here is some of the bigger ones and how we solved them.</p><p><strong>Class initialization on iOS vs. Android</strong></p><p>Kotlin has many different ways of initializing objects during creation:</p><ul><li>Declare and initialize simultaneously</li><li>Initialized in init {} block</li><li>Initialize in the constructor</li></ul><p><a href="https://medium.com/keepsafe-engineering/an-in-depth-look-at-kotlins-initializers-a0420fcbf546">Kotlin defines the order of execution for the initializers</a>. However, we ran into a situation for which the order of execution was unclear. In our Android code, we had many cases where the Parent class constructor calls a method that is overridden in the Child class to initialize a variable defined in the child class.</p><p>For example, in the following Parent and Child class, the initChild() function is called from the Parent’s init which sets the value of the variable c declared in the child class.</p><pre><strong>open class </strong>Parent {<br>    <strong>init</strong>{<br>        initChild()<br>    }<br>    <strong>open fun </strong>initChild() {<br>        ...<br>    }<br>}<br><br><strong>class </strong>Child:Parent() {<br>    <strong>var c</strong>:String = <strong>&quot;Declare&quot;<br>    init </strong>{<br>        <br>    }<br>    <strong>override fun </strong>initChild() {<br>        <strong>c </strong>= <strong>&quot;Child&quot;<br>    </strong>}<br>}</pre><p>When I run this code on Android, the value of c ends up as “Child”, whereas on iOS, it is “Declare”. This implies that for Android the child c value is set first, before the superclass init{} -&gt; initChild() is called. But, in iOS, it is the opposite. The superclass init{} -&gt; initChild() function is called first, and then the declaration initializer for variables in the Child class is called, setting the value to “Declare”.</p><p>This problem causes errors due to things not being correctly initialized on iOS, for classes that work fine on Android. If this was new code, I would recommend not using this type of initialization, and using the Kotlin provided init {} blocks instead. But, this is ported Android code, and I did not want to make too many changes that would trigger additional changes. So, in this case I solved the problem by moving the declaration of the var c to the Parent, even though it is only used in the Child class.</p><pre><strong>open class </strong>Parent {<br>    <strong>var c</strong>:String = <strong>&quot;Declare&quot;<br>    init</strong>{<br>        initChild()<br>    }<br>    <strong>open fun </strong>initChild() {<br>        ...<br>    }<br>}<br><br><strong>class </strong>Child:Parent() {<br>    <strong>init </strong>{<br><br>    }<br>    <strong>override fun </strong>initChild() {<br>        <strong>c </strong>= <strong>&quot;Child&quot;<br>    </strong>}<br>}</pre><p>With this change, the initialization order is the same in Android and iOS: parent declaration sets c to “Declare”, and then the init{} -&gt; initChild() sets the value to “Child”.</p><p><strong>Touch Events on iOS vs. Android</strong></p><p>Our games were originally built on Android. When we ran them on iOS, at times the state of the game was incorrect after user touches screen or lifts their finger from the screen. Barb found several such bugs after only a day of testing. I had to try and fix it before she did more testing. After a day of debugging, it appeared that on iOS a touch down event is not automatically followed by a touch move, and a touch up event is not automatically preceded by a touch move, whereas on Android it is. Some of the game code was assuming this behavior and hence would sometime end up in an indeterminate state. Instead of trying to find each of those issues and correcting individually, I worked around it by sending an extra touch move event on touch down or touch up to our games on iOS.</p><p><strong>Lists and Arrays on iOS vs Android</strong></p><p>Our Android game code often uses Arrays instead of Lists for performance. Some of that crept into the interfaces defined in Kotlin and invoked from Swift. However, Swift has no differentiation between an Array type and a List type. And just to make it really confusing, it is called an Array in Swift and behaves like a List. Kotlin List type maps to a Swift Array type. Kotlin Array types map to a custom class GDKStdLibArray in Swift. So, a simple initialization of a Kotlin Array in Swift looks not so simple:</p><pre>let gifts = GDKStdlibArray(size:1, init:{_ <strong>in<br>        </strong>GDKGift(...)<br>})</pre><p>It doesn’t use the simplified Swift Array syntax for initialization, getters etc. So, where-ever I needed to call Kotlin code from Swift, I changed the function signature to Kotlin List type instead of Kotlin Array type. Fortunately, since its Kotlin and not Java, changing Array type to List type doesn’t cause any issues. They both have the same function signatures in Kotlin. And my Swift Code now looks like any other Swift Array.</p><p>Testing on the <a href="http://infinut.com/">math games</a> is well in progress now. Some of these cross-cutting concerns are getting fixed fast. <a href="https://medium.com/@anaredmond/native-cross-platform-game-data-handling-11-of-c8f06e345f06">It is time for me to work on Firebase Data Integration next.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a74d2fdce835" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Multi-platform game: UI Screens (9 of …)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-ui-screens-9-of-f7ac723e4fd1?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7ac723e4fd1</guid>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[kotlin-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile-game-development]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Thu, 06 Sep 2018 18:58:40 GMT</pubDate>
            <atom:updated>2019-12-20T17:20:33.675Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@anaredmond/native-cross-platform-game-java-to-kotlin-8-of-e54844559b46">As I built a few more game screens</a>, I got confident that I could convert all our games to Kotlin-Native, thus building for both iOS and Android. I still had UI screens to build. These are screens that show list of lessons, or the report card, assignments etc. At the beginning, my plan was to write them separately in iOS in swift. These screens use UI widgets such as scrolling lists that are implemented using RecyclerView in Android. But, once I got comfortable building the games, and realized that <a href="http://infinut.com/">our UI screens</a> also look a bit game-like to keep with the theme, I wondered if I could write some of them in Kotlin-Native, thus writing them once, and reusing the code in iOS and Android.</p><p>I decided to give myself a week to experiment with writing one of our UI screens, which shows a list of lessons that the kids press to play. This is how the screen currently looks in the <a href="https://play.google.com/store/apps/details?id=com.infinut.kindergarten.math.home">infinut Math Kindergarten</a> app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mwiUfqOgh07ghR3-HYGiA.png" /></figure><p>Each lesson button has an image, a number, some text. The list of lessons scrolls. When the lesson button is clicked that lesson plays.</p><p>It was surprisingly easy to replace the lesson buttons with custom ones drawn using our Game SDK instead of overriding the ImageButton class on Android. The scrolling was the difficult part. I tracked the scroll amount from touch motion, and used a transformation matrix to change the position of where the button was drawn on screen. Then, replicated the flinging motion to scroll by capturing the fling velocity using GestureDetector on Android and a UIPanGestureRecognizer on iOS. The velocity was used to determine the amount of scrolling. Here is what the screen looked like on Android and iOS with shared code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VtoJ08F-dP2hIn2-YoB7g.png" /></figure><p>I still have to complete parts of the screen, but, as proof of concept, it works! It will be worth changing some of the other screens such as reporting, dashboard, assignments to common code using our cross-platform Game SDK instead of using platform specific UI widgets.</p><p><a href="https://medium.com/@anaredmond/native-cross-platform-game-ios-with-kotlin-native-quirks-10-of-a74d2fdce835">But, first, as we start testing the games, we discover some interesting quirks of building iOS games using Kotlin-Native</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7ac723e4fd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Multi-platform Game: Java to Kotlin (8 of …)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-java-to-kotlin-8-of-e54844559b46?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/e54844559b46</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[kotlin-native]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Fri, 17 Aug 2018 17:55:34 GMT</pubDate>
            <atom:updated>2019-12-20T16:57:23.588Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@anaredmond/native-cross-platform-game-first-screen-7-of-9324c9081fe6">With the proof-of-concept done</a>, I am rapidly porting all the games. I built the games in Java on Android originally. Now I am converting them to Kotlin, so they can be run on both iOS and Android. Fortunately, IntelliJ automatically converts Java code to Kotlin. I just copy/paste the Java code into a Kotlin file, and it pops up a helpful dialog asking:</p><blockquote>This looks like Java code. Would you like to convert it to Kotlin?</blockquote><blockquote>I answer: Yes!</blockquote><p>Or, I move over entire packages, select all the files, right click and select</p><blockquote>Convert Java File to Kotlin File</blockquote><p>That’s all it takes. Then, I go through the code, and change the references to drawing and audio functions to the Game SDK. The first game took a bit longer. The Game SDK functions had to be adjusted to match what the games expected. Now, the process goes faster. After converting the <a href="https://infinut.com/">kids math game</a>, I run it on both Android and iOS to verify that it all works as expected. A more detailed testing cycle will happen later. Here is a video taken on an iPad running the picnic basket game</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcRKx2_Zh5gM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcRKx2_Zh5gM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcRKx2_Zh5gM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5359fd32f94df311a2f1225f45d6a09f/href">https://medium.com/media/5359fd32f94df311a2f1225f45d6a09f/href</a></iframe><p>The easy bit is sometimes the hardest part. When it gets easy, there is no challenge, boredom can set in and I can lose focus. It is not as much fun as problem solving is. I have to keep reminding myself that Barb will be coming in once school starts, and I need to have this ready so she can test the lessons and the app on iOS.</p><p>Periodically, I run into interesting problems that need to be solved differently on both platforms:</p><ol><li>How to draw a dashed line: on Android, I used DashPathEffect, on iOS I used setLineDash function on UIBezierPath.</li><li>How to draw a radial gradient: on Android, I used a RadialGradient shader on the Paint, on iOS, I used CGContextDrawRadialGradient function to do the same.</li><li>How to set fade-in and fade-out the whole scene: I had done this previously by changing the alpha on the whole Canvas on Android. However, that was more computationally intensive and hard to replicate on iOS. So, instead, I covered it with a black rectangle that goes from opaque to transparent to fade-in and the reverse to fade-out.</li></ol><p>Solving these problems keeps me going, and looking for the next problem to solve keeps me motivated.</p><p>Its almost end of summer. Kids were out of school during summer. I drove them to camp today and picked them up 3 hours later. It is a short amount of time for quietly coding. But, now that they are older, I can work after they get back home. Sometimes I need to take them for play dates, or swim class. I take my <a href="https://www.manning.com/books/kotlin-in-action">Kotlin-in-Action</a> book with me to read while waiting at the swim class. Working on my own project gives me flexibility to manage my schedule. I don’t work on the code over the weekend. I dig in the backyard, go for a bike ride with Conor and the kids or just lie on the couch and read a book. Come Mondays, I am ready to take on <a href="https://medium.com/@anaredmond/native-cross-platform-game-ui-screens-9-of-f7ac723e4fd1">the next challenge</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e54844559b46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Multi-platform game: First screen (7 of …)]]></title>
            <link>https://medium.com/@anaredmond/native-cross-platform-game-first-screen-7-of-9324c9081fe6?source=rss-55c06c576845------2</link>
            <guid isPermaLink="false">https://medium.com/p/9324c9081fe6</guid>
            <category><![CDATA[kotlin-native]]></category>
            <category><![CDATA[educational-technology]]></category>
            <category><![CDATA[ios-game-development]]></category>
            <category><![CDATA[android-game-development]]></category>
            <dc:creator><![CDATA[Ana Redmond]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 15:20:07 GMT</pubDate>
            <atom:updated>2019-12-20T16:57:00.488Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@anaredmond/native-cross-platform-game-architectural-concerns-6-of-cd11d5837cf5">With the build and framework setup</a>, I started working on the first screen. I built with shared Kotlin code that runs natively on Android and iOS. As I built it, I ran into many small challenges, some I solved quickly, some took longer, none felt insurmountable. This is the fun part where it all feels doable. Along the way, I solved many interesting problems:</p><ol><li><strong>Matrix transforms to animate images</strong>: The implementation uses Matrix in Android and CGAffineTransform on iOS. They work differently. It took a while to figure out which functions on iOS CGAffineTransform result in pre and which result in post transformation on the matrix.</li><li><strong>Writing on a bitmap for using finger touches to stamp on touchscreen</strong>: I used this excellent example to get started: <a href="https://www.raywenderlich.com/18840/how-to-make-a-simple-drawing-app-with-uikit">How to make a simple drawing app with UIKit</a>. I converted it to Objective-C calls in Kotlin-Native to use it from our game code.</li><li><strong>Playing a sequence of audio files for instructions</strong>: This was done by converting our original code which plays one file and when that is complete plays the next one. Now it uses AVAudioPlayer on iOS and MediaPlayer on Android for its implementation.</li></ol><p>The proof is in the pudding. Here is the first screen, looking and working the same on both iOS and Android. The screen is a single class written in Kotlin that runs on both iOS and android. It is the proof-of-concept for this project. All the parts, the buttons on the top, the instructions, the blackboard to stamp on, and the stamps themselves are handled by common code. The touch events are handled using shared code resulting in the stamps shown on the board when the kids tap it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*315XR6UXD2lXyx2ZhIPmxQ.png" /></figure><p>I had been pushing off converting <a href="https://infinut.com/">infinut Math games</a> to iOS, assuming I first needed to get funding. I thought I needed a bigger team to build it. I spent countless hours fundraising or writing grant proposals: meetings, follow ups, perfecting slides, commercialization plan and story telling. Someone would show interest and I’d get my hopes up, only to see them squashed in a few days or weeks. It was exhausting and a time suck. I eventually gave up on fundraising and just decided to start coding. It may have been the best decision I made. I feel so empowered knowing that I can complete this project. Even though I know there are many more problems to solve, I have come this far, and it is good to know I can build it.</p><p>Thanks to the team at JetBrains for making this possible. <a href="https://medium.com/@anaredmond/native-cross-platform-game-java-to-kotlin-8-of-e54844559b46">I will continue on and port our games to publish on iOS.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9324c9081fe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>