Archive for June, 2017

SnappyBird in 100 lines of code

June 20, 2017

Here’s a simple version of FlappyBird written in 100 lines of Java code in SnapCode with SnapKit and compiled to JavaScript. It’s part of my “summer of code” with my kids – a series of 1-2 page fun apps that we discuss, they type in and debug, then we discuss again. Not the most active style of teaching, but reminiscent of my childhood typing in programs from SoftSide magazine or 101 Basic Computer Games by David H. Ahl.

SnappyBird

Click to Play

Source is available under the source tab in the app or here.

Explode Demo

June 13, 2017

Here’s another silly demo of a simple method to make any view on screen explode into pieces. The actual explode code is only a few dozen lines of code (source). Here’s the demo running in the browser:

Explode

(Click for demo)

Demo was written in SnapCode with SnapKit and compiled to JavaScript with TeaVM.

Java Calculator with Touch Support

June 7, 2017

This is a silly little demo (only a page of code), but it’s fun. It’s also the first demo to show off new touch support I’ve added (for apps compiled to JavaScript).

Calc