dmc-kompatible is a Lua module which allows your legacy Corona Graphics 1.0 code to run in Corona Graphics 2.0 within minutes and with minor modifications.

This is intended for older, existing code. If you want some of the same features, but are starting a new project, then check out [dmc_kozy.lua].




This module can be freely downloaded from

Simply click on the image to the right


I have used this to allow a medium sized project (57 files, 14k LOC) to run using the latest version of Corona SDK (at the time of this writing, version 2013.2100).

Though I wouldn't be surprised if a bug popped up somewhere. If you use this and find something that's not translating properly, please let me know. I'd like to make modifications to the code to fix it.

Corona Labs has supplied a flag to enable a mode for V1 Compatibility, but that solution isn't perfect:

  1. it's not recommended by Corona Labs
  2. it's not permanent and will disappear when Corona Labs decides
  3. it might turn off other functionality that you want in the new engine

Reasons to use dmc_kompatible

Here are some of the reasons why you would use this module:

  • Your existing code will still work This is perhaps the biggest win because older projects will still work and don't need to be re-written, even long after Corona Labs discontinues the V1 Compatibility Flag.

  • You don't think in HDR There are those who don't think in percentages and don't want to start, even for new projects. :) The library allows them to continue describing colors using traditional RGBA values.

  • You still get all of the new Corona Graphics 2.0 features There's no need to turn on the V1 Compatibility Flag, so the engine is using all of the new features. Even with dmc_kompatible all of the new HDR functionality is still available to you.

  • You don't need the extra color space Part of the move was to allow the engine to start supporting more than 8 bits per color channel. For a lot of applications this is overkill and unnecessary so the switch to HDR is pointless.

  • You get more functionality There is more functionality built in, like being able to used named colors, hex colors, mixing RGB and HDR if necessary, etc.

Please read the caveat in the [dmc_kompatible Documentation]

Module Documentation

dmc-kompatible Documentation

Here is the full documentation for 'dmc-kompatible'.

Getting Started - dmc-kompatible

Get quickly up-and-running with dmc-kompatible.