Skip to content

lmartinking/Quik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quik

screenshot

The source and assets for Quik: Gravity Flip Platformer.

This is the develop branch, updated to use Flixel 4.

It is inspired by two games I love: Cannabalt and VVVVVV.

You can still get a copy of the published version for:

This game was created back in 2014, using Haxe and HaxeFlixel.

Most of the time was spent on level design, and code was fairly quick to write (there are some scruffy parts across the code-base), but my goal was to get a game released in a few months.

I am releasing the code now because I think this could help others discover how fantastic the Haxe/HaxeFlixel platform is for making cross-platform games! Not to mention, a nice resource for those learning to make their own games.

Build

You will need Haxe, OpenFL/Lime and HaxeFlixel set up.

Known Working Versions of Dependencies

  • Haxe 3.4.7
  • HxCPP 4.0.4
  • Flixel 4.5.0
  • Lime 7.0.0
  • OpenFL 8.4.1
  • polygonal-core 1.0.4
  • polygonal-ds 1.4.1 (this may require a fix to the code in de/polygonal/ds/Bits.hx)
  • polygonal-printf 1.0.2-beta

Then

    lime -Drelease build mac -64

You can also use build.sh to create something similar to the actual released binaries:

    ./build.sh mac_publish_release

Code Tour

NOTE: It helps to first know the basic structure of a HaxeFlixel game. If unsure, have a look at the HaxeFlixel tutorials and demos first.

The entry point is source/Main.hx, but as you can see it pretty much brings up...

...the code in source/Game.hx, which is mostly glue around play states, saving, scores, etc.

Most of the gameplay guts are in source/PlayState.hx, which is the main "game state".

Loading levels (created using Tiled) is handled via source/LevelLoader.hx which delegates things back to PlayState.

Customised UI widgets are in source/ui/.

Of interest: There are some simple macros in source/misc/MacroStuff.hx which are used to embed the compilation date, extract and return the version from Project.xml, and obfuscate secrets used for HMAC in the code!

The secrets in this source have been changed so you can't fake high scores :-)

Licence

The code is licenced under LGPLv3. See LICENSE and COPYING.LESSER.

The assets (graphics, sounds, music, levels) are Freeware, and cannot be distributed as part of a published work without permission.

Copyright (c) 2014 Lucas Martin-King.

About

Source code for "Quik: A Gravity Flip Platformer". A great learning resource for learning how to use Haxe and HaxeFlixel to make games.

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published