A new version of CPCtelera, the Amstrad CPC game engine for C developers, was just released in version 1.3. CPCtelera offers a huge C library for the SDCC C cross-compiler, which makes it easier to create games and applications for the Amstrad CPC. This version features SDCC patches and bugfixes, some speed optimisations, new methods and a big toolset improvement. It is available for Windows, Linux and OS-X. You can get the latest version from GitHub and discuss it in the CPCWiki.
Changes in v1.3:
- API change on cpct_getXBits functions. Changed order of parameters to further optimize operations.
- Optimized functions: bitarray functions, cpct_count2VSYNC, cpct_px2byteM0, cpct_enable/disablefirmware, cpct_getHWColour, cpct_setPalette, cpct_fw2hw
- Added example on getting hardware values with cpct_getHWColour
- Automatic inclusion of binary files in DSK: Users can now specify a path for the makefile to retrieve binary files and insert them on the DSK on compilation.
- iDSK: Fixed historic data corruption problem on adding new files.
- Added cpct_winape script that automatically downloads, installs and lauches winape from command line to speed up development process. It works multiplatform, transparently using wine where required.
- Added cpct_setInterruptHandler and cpct_removeInterruptHandler functions to let the user easily hook any function to system interrupts.
- Added example on hooking a function to system interrupts.
- Added cpct_img2tileset support for generating sprites with interlaced masks.
- Added new script cpct_tmx2csv to convert tmx files from tiled into CSVs ready for inclusion in user code.
- Added Augusto Ruiz’s dskgen tool for generating and managing DSKs low level.
- Updated SDCC with latest patches and bugfixes.
- Modified SDCC building: SDCC now builds with maximum optimizations activated and all unnecessary parts are removed from compilation (it compiles faster)
- Improved Makefile functions for CDT Creation.
- Added examples about automatic assets inclusion/conversion and CDT generation with multiple files.
- Improved compatibility and functionality of Augusto Ruiz’s img2cpc
- Improved examples and explanations
- Added GCC/CLang version checking on installation (checks required C++11 features are present)
- Added splitted C/ASM bindings for most of CPCtelera’s functions, along with __z88dk_callee and __z88dk_fastcall calling convention use.