Bacon2D is a framework to ease 2D game development, providing ready-to-use QML elements representing basic game entities needed by most of games.
This repository has been archived on 2026-02-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C++ 83.4%
  • QML 11.6%
  • Shell 3.1%
  • QMake 1.9%
Find a file
2018-12-19 16:54:05 -05:00
3rdparty Add libtiled as a submodule, and various support to get the program 2017-03-22 18:42:47 -04:00
doc Added tutorial to docs 2015-01-08 11:30:51 -05:00
examples Fixed the infinite_scroll example to use a Window 2017-03-23 13:30:28 -04:00
src Build qml files as a resource during static build 2018-12-19 16:54:05 -05:00
tests Add libtiled as a submodule, and various support to get the program 2017-03-22 18:42:47 -04:00
.gitattributes Don't include the archive script in dist 2014-07-21 09:49:55 -04:00
.gitignore Add *.pro.user to .gitignore. 2015-02-19 22:12:37 +01:00
.gitmodules Add libtiled as a submodule, and various support to get the program 2017-03-22 18:42:47 -04:00
Bacon2D.pro Prepare for release 2016-07-15 11:03:58 -04:00
COPYING License change for all LGPL code to MIT 2015-02-26 15:11:51 -05:00
COPYING.BSD Cleaned up license files to match what's referenced in the sources. 2014-07-14 22:01:36 -04:00
git-archive-all.sh Added dist target 2014-07-14 23:39:03 -04:00
README Updated link to docs in the README 2018-12-17 22:15:59 -05:00

2D Game Engine for QML

Bacon2D is a framework to ease 2D game development, providing ready-to-use QML 
components useful for creating compeling games.

API documentation can be found at http://bacon2d.github.io/docs/

========
1. Build
========

1.1) Dependencies

* Qt5
  	Qt5 source repository: https://qt.gitorious.org/qt/qt5

1.2) Building

Available QMake parameters:

* QTPATH (Optional)
	Prefix where Qt has been installed. It is required to install
	Bacon2D's QML import plugin and related files.
	The default path is /usr/lib/qt5


If building from a git checkout, you will need to initialize the git submodules:

$ git submodule update --init

Sample build from Bacon2D's root source tree:

$ mkdir build && cd build
$ qmake QTPATH=/opt/Qt5 ..
$ make
$ sudo make install


*MacOS note*:

If you get some error like 'could not resolve SDK path for...', add 
'QMAKE_MAC_SDK=MAC_SDK_VERSION'to the qmake command, like this (issue #80):

$ qmake QMAKE_MAC_SDK=macosx10.9 ..

Where MAC_SDK_VERSION points to the OSX version you're using (in the above 
example it is 10.9.x).

===========
2. Examples
===========

If you have installed the QML plugin to the proper Qt import directory,
you can run the examples directly from their specific source directories.

Each example can be opened and run from QtCreator, to open the fixtures 
example, open examples/fixtures/fixtures.qmlproject from QtCreator

To run the fixtures example without QtCreator:

$ cd examples/fixtures
$ qmlscene main.qml

If Bacon2D QML plugin was not installed you can export QML2_IMPORT_PATH 
environment variable or specify the path to your built plugin on 
the command line.

$ cd examples/fixtures
$ qmlscene -I ../../build/src/imports main.qml


===============
3. Get Involved
===============

http://bacon2d.com/contact.html