Platino Game Engine Sample Code

Here you will find a selection of sample code to help you get started with Platino. You can download individual projects below, or grab everything straight from our Github (updated 11/8/2016!)

 

Looking for community contributed samples, tutorials and more? We have plenty.

Flappy Bird

Flappy Bird

A fully functional clone of the popular game Flappy Bird in Javascript, made with Platino.

Updated 11/8/16 with new higher-resolution graphics. PhysicsJS version coming soon!

Download Flappy Bird Sample
Card Flip

Card Flip

Use a flip effect to turn a card back and forth when tapped.

Download Card Flip Sample
Camera

Camera

An example of how to control camera movement around a large scene.

Download Camera Sample
Physics

Physics

Using PhysicsJS, this sample is fast and remarkably simple. It is the best place to start if you want to use physics in your game.

Download Physics Sample
Chipmunk

Chipmunk 2D Physics

NOTE: Chipmunk is outdated. Code remains for those who were using it previously. PhysicsJS is what we support and suggest.
Sample usage of the Chipmunk2D physics engine in Platino.

Download Chipmunk Physics Sample
Events

Events

Simple sample showing use how to use events.

Download Events Sample
Platino Shooter

Platino Shooter

A complete shooter game with movement using transforms, particles, sprites and a scrolling background.

Download Platino Shooter Sample
Codestrong Shooter

Codestrong Shooter

Another complete shooter game, originally shown at Codestrong, utilizing the new audio engine with an endless scrolling background, transforms, particles and animated sprites.

Download Codestrong Shooter Sample
Scenes

Scenes

A sample showing how to easily change to a new scene in Platino.

Download Scenes Sample
Transforms

Transforms

A demo of the transform API.

Download Transforms Sample
Bunny Mark

Bunny Mark

Standard Bunny Mark test.

Download Bunny Mark Sample
Tank

Tank (Multiplayer)

A multiplayer tank game utilizing PubNub APIs.

Download Multiplayer Tank Sample
Isometric

Isometric Tiles

How to create and work with Isometric tile maps in Platino.

Download Isometric Tiles Sample
Particle Dice

Particle Dice

A random number generator with manipulation of the text and various particles effects.

Download Particle Dice Sample
Jukebox

Jukebox (ALmixer)

See the basic setup and usage of ALmixer to pay a sound or song in a Platino or TiSDK application

Download Jukebox Sample
TouchEvent

Touch Event Sample

Demonstrates the use of three types of touch events: game, scene and sprite. Use the HUD buttons to tilt the camera, and touch anywhere to see the response within both the scene and button object.

Download Touch Event Sample
Raycasting with JS

Raycasting Sample

This sample is to demonstrate how raycasting can be done with Platino and Javascript, however it has zero optimization at the current time. It will receive an update to improve performance but until then should be used for educational purposes only.

Download Raycast Sample