2-Player T-Rex Runner
Do you know how long it takes to create a fun game?
At Preface, it wasn't that long.
Have you passed by our coffee shop in Tin Hau earlier? Have you competed against other players for the top spot on the leaderboard?
Back in April, Nathaniel and Edison were invited to take part in the Preface Easter Special project — recreating the classic easter egg game hidden in Chrome browser — “T-Rex Runner”.
Originally a single-player game, Nathaniel and Edison from Preface Coding enhanced the code and turned it into a 2-player game. The world exclusive edition of the T-Rex Runner game was later built into an actual arcade game console and put out at Preface Coffee for visitors to play. The whole project was to show that programming can empower anyone — even kids — to do something great.
That’s pretty much the level of impact we’d love an App Inventor student to achieve.
Who would have thought this game coded by 2 young kids and ended up headlining our sharing in one of the biggest developer summits in the world, the MIT App Inventor Summit 2019.
Held by Massachusetts Institute of Technology (MIT) right on their campus in Cambridge, MA, the Preface team was honored to be invited as a distinguished educator to host an educator workshop, as well as showcasing our T-Rex Runner project to the top technologists from all over the world.
During the summit, our team shared the experience of building the T-Rex Runner console. Since the standard package of App Inventor does not offer an easy way for users to connect an app to an external controller, the Team, however, made use of a keyboard extension that developer can connect the control panel of the app to a set of external hardware keys with which you can perform different controls. That’s the mechanism of the big arcade button for controlling the T-Rex to jump over the cacti and other hurdles.