Skip to content

davidmagnotti/davidmagnotti.github.io

Repository files navigation

David Magnotti

The repository is a collection of HTML5-based games I've made.

I'm a software developer that works in the cyber security field. I was inspired after reading an Ars Technica article about Kenta Cho's 'Paku Paku' to explore game development. I've never been much of a creative, but I've experienced great joy in exploring this area of technology that intersects with art and engineering.

There's been many amazing software tools and libraries that have helped me in creating these games, including:

Mobile Ports

I decided to experiment with mobile application development, which led me down a path to porting one of my HTML5 games (Red Light) to Android and iOS:

Background

Back in 2011, I developed a few Android applications, published on the Google Play Store (or 'Android Market' as it was known at the time). I wanted to introduce my son to mobile application development, starting with Android. I was shocked at the progression of Android development from 2011 to 2024. Not only has the technology for writing code changed substantially (Android Studio instead of Eclipse, Kotlin over Java) but the testing and deployment process have changed significantly, too. I suppose it's a sign of Android 'growing up.' :-)

It seems like there's paradigm shifts in technology every few years that mean you have to constantly be in a state of learning. The .NET framework is a great example of this, migrating UX from WinForms to WPF to various XAML implementations. I've found some of the tech stacks have a high learning curb as well. For us hobbyists, it's discouraging that not only will you spend a significant amount of effort learning something new, but that the technology you learn will only be useful for a few years. With that in mind, I decided to explore if I could simply port web applications without rewriting any code directly to mobile platforms, and instead focus on teaching my son core web development concepts. I concluded this was possible, with my research leading me to Apache Cordova (or as we called this more experimental technology back in 2011, 'PhoneGap').

I was pleasantly surprised at the maturity of Cordova, and ease of building for Android and iOS. Despite owning an iPhone, I actually don't own a Mac, so I rented one from the VPS provider, MacInCloud. It took me more time learning how to setup my developer box with the right certificates and getting Xcode deployment figured out than it did to write any of the games I've made. But, with a few hours of troubleshooting, I was able to build and test my applications locally in iOS. I published to the App Store and after a few minor tweaks to address some feedback from the Apple App Store review team, I was published!

Building for Android with Cordova on Windows was a breeze. However, I did not have a positive experience with publishing to Google Play. I learned my primary developer account from 2011 was suspended due to inactivity. I opened a support case with Google to re-activate the account, but I was informed their policy prohibits re-activation of an account suspended due to inactivity. I created a new account and discovered that Google had a recent policy change that requires any developer account created after November 2023 to have 20 private testers to test the application. I couldn't tell you 20 people I know that own Android phones, let alone ask them to help me test a game port for my game development hobby. I decided to proceed with publishing my Android application in the Amazon Appstore instead, which was a breeze.

There's some rumblings spanning back to 2022 about Apache Cordova usage declining (The Sunset of Apache Cordova: Alternatives For Cross Platform Mobile Development in 2022) which I worry means I'll soon have to find an alternative. As I mentioned, technology changes every few years. It seems that most technology companies gravitate toward using Flutter, React Native, or Xamarin for cross-platform mobile development, as each stack provides a 'first-class' app experience (great performance, native UI elements, etc). I find front-end web development frameworks like React and Angular become unnecessarily complex in larger codebases, so I'm not interested in React Native. I'm uneasy with learning Flutter seeing that it uses its own language I would need to learn (Dart). As an experienced C# developer, I could explore using Xamarin, but I would still need to learn other aspects of Xamarin like the actual UI framework. While not one of the major three contenders favored by larger companies, I found a fourth contender in Ionic Capacitor. Capacitor provides a similar Apache Cordova experience for porting HTML5 applications, and was actually based on the same technology at one point. I'll probably end up migrating from Apache Cordova to Ionic Capacitor in future ports.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages