Guides & Tutorials API Reference Examples & Demos
Documentation

V-Play Components Examples and Demos

This page contains a list of learning resources for V-Play.

Here you will find both tutorials and full sample games. Some of these sample games are even published in the app stores, ready for you to use as best-practices of V-Play game implementations.

For a video of the best sample games, click here: Youtube video about V-Play Engine Highlights.

A collection of the best released games is available on the V-Play Showcases Page.

Note: You can download some of these sample games from the app store for a quick preview, or build any of them on your own as they are available open source as part of the V-Play SDK. See Game Highlights Published in the App Stores for a list of the best games.

V-Play Game Tutorials

V-Play Demos Games & Examples

Demo games contain multiple V-Play components. Examples on the other hand, only demonstrate the use of a particular component. Thus they are not full games and smaller in their complexity and size.

Game Highlights Published in the App Stores

This table highlights the best performing games in terms of game downloads and app store rating. All of these games are available with full source code and ready for you to create your own game based on them.

This demo is a physics-based action game about stacking as many boxes as fast as you can and is published in the app stores. It features user-generated level sharing and an in-game LevelEditor. You get rewarded for creating cool levels and sharing them with the game community, with the LevelStore component. It also includes VPlayGameNetwork for leaderboards for each level to compare with other players.

A tower-defense game which uses AI, particles, physics and audio components. It is the most comprehensive demo game using most of the V-Play Gaming Components. It also contains an in-game LevelEditor for creating your own levels.

This demo is like an inverse Doodle Jump: you play a chicken escaping from a massive henhouse. So you fly from roost to roost and avoid falling down. The more corns you collect on your way down to the exit the more points you get.

It features a scrolling background layer, storage of highscore and shows scene switching between main menu, game over and game scene.

It also integrates VPlayGameNetwork for cross-platform leaderboards and achievements. Plus integration of GameCenter and Flurry analytics.

Access Demos & Examples

The demos are part of the V-Play SDK. Open them by browsing to the Qt installation folder and then to the Examples/V-Play/demos or Examples/V-Play/examples subdirectory. The full source code of all demos and examples is available with the SDK download. Just open the .pro files and you can run the demos on your development machine or deploy it to your mobile devices. To speed up development time, you may use the game demos as a starting point for your own games.

Demo Games Grouped by Complexity

The complexity level of the demos vary. The demo games are a great starting point for learning how to use the V-Play components. Use this table to find a matching demo game for your experience level.

Difficulty Demo
Simple
Medium
Advanced

V-Play Demo Games

Cross-platform demo games
Multi-Scene-Multi-Level Demo Project template containing multiple scenes, multiple levels, loading levels at runtime, multi-resolution images, animations and hardware back button handling.

StackTheBox Demo This is a simple physics-based demo showing the basics of entity creation with EntityManager and uses other components including audio and particles. It is the full source code of the guide Getting Started with V-Play.

StackTheBoxWithEditor Demo This is an extended version of the guide Getting Started with V-Play and the StackTheBox Demo, with the addition of a LevelEditor and ItemEditor. It allows balancing while the game is running and to create own levels with the in-game LevelEditor. A tutorial about the creation of the game is available in How to add the LevelEditor to an existing game.

Stack With Friends Demo This demo is a physics-based action game about stacking as many boxes as fast as you can and is published in the app stores. It features user-generated level sharing and an in-game LevelEditor. You get rewarded for creating cool levels and sharing them with the game community, with the LevelStore component. It also includes VPlayGameNetwork for leaderboards for each level to compare with other players.

Squaby Demo A tower-defense game which uses AI, particles, physics and audio components. It is the most comprehensive demo game using most of the V-Play Gaming Components. It also contains an in-game LevelEditor for creating your own levels.

ChickenOutbreak Demo This demo is like an inverse Doodle Jump: you play a chicken escaping from a massive henhouse. So you fly from roost to roost and avoid falling down. The more corns you collect on your way down to the exit the more points you get.

It features a scrolling background layer, storage of highscore and shows scene switching between main menu, game over and game scene.

It also integrates VPlayGameNetwork for cross-platform leaderboards and achievements. Plus integration of GameCenter and Flurry analytics.

BalloonPop Demo In this demo you try to pop all balloons before the timer runs out. It is a very simple game with just slightly above 100 lines of code.

A tutorial about the creation of the game is available How to make a simple BalloonPop game with V-Play

Simple Ninja Game Demo In this demo you play a ninja and throw stars against invading monsters. It is a very simple game containing of only a single QML file with just 150 lines of code. This is 60% less compared to the C++ version of the Ray Wenderlich C++ version with Cocos2d-x.

It features multi-resolution images, switching between 2 scenes, physics for collision detection, audio and animations for movement of the monsters and stars.

CarChallenge Demo A simple physics-based racing game for 2 players. It demonstrates the controller concept for steering entities and a virtual joypad using the JoystickControllerHUD component.

This demo uses the physics components for movement and collision detection. The fired weapons will bounce off the walls until they collide with a car or another rocket. It demonstrates applying forces (to the movement of the car) and impulses (to the rocket).

ZombieBreak Demo Simple breakout game, kill all the zombies to stay alive!

This game idea and its image and audio resources are from the excellent Corona tutorial on Ray Wenderlich's site http://www.raywenderlich.com/26793/how-to-make-a-breakout-game-with-corona.

Particle Editor Demo This application helps to design, create and store particles for games created with V-Play and Cocos2D.

V-Play Examples

Component Examples
LevelEditor Example This application shows all the functionality of the V-Play LevelEditor to store, load and display a list of levels in the game.

GameNetwork Simple Example This example shows the basic V-Play Game Network functionality including the VPlayGameNetworkView, highscores and achievements.

GameNetwork Example This example can be used to test and simulate all of the functionality of VPlayGameNetwork.

GameWindowSceneScaling Example This is a basic example demonstrating the concept of using the GameWindow and Scene components for resolution- and aspect-ratio independent games.

Box2D Examples This is a collection of Box2D examples demonstrating all supported features of the physics system. The examples were written as part of the Box2D QML plugin and were modified to work with VPlay game engine.

Particles Examples This is a collection of Particles examples demonstrating the different settings for the Particles element.

Parallax Examples This test demonstrates the difference of ParallaxItem and ParallaxScrollingBackground. Furthermore, it explains the usability of these elements.

Facebook Example This example tests the functionality provided by the Facebook plugin and is usable on Android and iOS devices. It serves as a starting point of testing Facebook functionality.