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 github.com
Simply click on the image to the right
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.
- it's not recommended by Corona Labs
- it's not permanent and will disappear when Corona Labs decides
- it might turn off other functionality that you want in the new engine
Reasons to use
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_kompatibleall 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.
Here is the full documentation for 'dmc-kompatible'.
Get quickly up-and-running with