Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

2048 - Puzzle Game

2048 is a popular puzzle game, where the user has to slide numbered tiles on a 4x4 grid in order to merge them into a tile of a higher value.

Genre Puzzle
Complexity Simple
Tutorial How to make 2048 with Felgo
Project Location <Path to your Felgo SDK>/Examples/Felgo/demos/2048/2048.pro
To run this demo, open the .pro file with Qt Creator. This demo is also available for quick testing with the Felgo Sample Launcher

Description

2048 is a popular puzzle game made by 19-year-old Italian developer Gabriele Cirulli. The user has to slide numbered tiles on a 4x4 grid in order to merge them into a tile of a higher value.

A tutorial on how to create this 2048 game is available here: How to make 2048 with Felgo.

We also provide the full source code of 2048 made with Felgo in the Felgo SDK here.

Used Felgo Features
  • Checking swipes with the MouseArea component.
  • Dynamically create and remove of entities using the EntityManager.
  • Animating entities with the NumberAnimation and ScaleAnimator components.
  • Combining Animations with the SequentialAnimation and ParallelAnimation components.
  • Using the Grid and Repeater components to automatically generate a grid of items.

Files:

Images: