color-flood-for-amstrad-cpc
CROSS-LIB
color-flood-for-amstrad-cpc | CROSS-LIB | |
---|---|---|
1 | 5 | |
3 | 308 | |
- | - | |
10.0 | 9.7 | |
over 1 year ago | 4 days ago | |
C | C | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
color-flood-for-amstrad-cpc
-
Few lesser known tricks, quirks and features of C
const int myarray[mysize];
* Good news: C can do compile time constant structs and array with deep self-references.
Yes, in C you can define and fully declare complex data structures that are accepted as compile-time constants, including pointers to parts of itself.
See "self-contained, statically allocated, totally const data structure with backward and forward references (pointers)?" for a previous example at https://stackoverflow.com/questions/47037701/can-c-syntax-de...
-----------------
I used this for a game on a retro machine where such a data structure avoids code which would have been several times (perhaps 10 times) bigger: https://github.com/cpcitor/color-flood-for-amstrad-cpc/blob/...
Here's another take showing two variant: where overall construct is an array then a struct: https://gist.github.com/fidergo-stephane-gourichon/792c194e1...
CROSS-LIB
- Game Development Options on the Commodore 64
- Cross-Lib â A universal 8-bit library
- Cross LIB â A universal 8-bit library
- CROSS-LIB: A "universal" 8-bit game/program library that can targets 100+ systems
- Cross-Lib â retro-hardware abstraction layer by Fabrizio-Caruso for coding "universal" demos, games and programs, with examples
What are some alternatives?
printf-tac-toe - tic-tac-toe in a single call to printf
apultra - Free open-source compressor for apLib with 5-7% better ratios
printbf - Brainfuck interpreter inside printf
salvador - A free, open-source compressor for the ZX0 format
spectrum-desolate - đšī¸ Ported Desolate game from TI-83 Plus to ZX Spectrum
fantasy - A curated list of available fantasy consoles/computers.
prog8 - high level programming language and compiler targeting 6502 machines such as the C-64 and CommanderX16
millfork - Millfork: a middle-level programming language targeting 6502- and Z80-based microcomputers and home consoles
etlegacy - ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license.
devkitSMS - development kit and libraries for SEGA Master System / SEGA Game Gear / SEGA SG-1000 / SEGA SC-3000 homebrew programming using C language (and the SDCC compiler)
EMUCHIP8 - EMUCHIP8, a CHIP-8 emulator.
portfolio_os_m2 - 3DO M2 Portfolio OS v3.0 and tooling source dump