Giter Club home page Giter Club logo

Comments (3)

feilipu avatar feilipu commented on July 17, 2024 1

Great.
The fixes work.
Tried all the builds.

I get errors for snake spectrum, but that is not related to this issue,

>:~/Z80/CROSS-LIB/src$ ./xl snake spectrum
----------------------------
Cross-Lib `xl` helper script
----------------------------
Platform: linux2
GNU MAKE command: make
----------------------------

['./xl', 'snake', 'spectrum']
Project name       : snake
Project type       : game
Number of threads  : 4
Extra optimization : 
Compiler's options : 
run command : make spectrum ZSDCC_MAKEFILE_THREADS_OPTS='-j 4' ZSDCC_MAKEFILE_COMPILATION_OPTS= -f games/snake/Makefile.snake


zcc +zx -DFORCE_NARROW -DFULL_LOWER_BORDER -DNO_WALL -DNO_BLINKING  -Icross_lib -Icross_lib/sleep -Icross_lib/display -Icross_lib/display/graphics_mode -Icross_lib/display/alt_print -Icross_lib/include -Icross_lib/sound -Icross_lib/sound/cc65/atmos -Icross_lib/sound/cc65/c264 -Icross_lib/sound/cc65/pokey -Icross_lib/sound/cc65/sid -Icross_lib/sound/cc65/vic20 -Icross_lib/sound/cc65/gamate -Icross_lib/sound/cc65/creativision -Icross_lib/sound/cc65/pet -Icross_lib/sound/z88dk/bit_bang -Icross_lib/sound/z88dk/gb -Icross_lib/sound/z88dk/psg -Icross_lib/sound/lcc1802/comx -Icross_lib/sound/cmoc/mo5 -Icross_lib/sound/generic -Icross_lib/text -Icross_lib/input -Icross_lib/rand -Icross_lib/display/redefine_characters -Icross_lib/display/tiles -Igames/snake/generated_assets -Igames/snake \
-pragma-include:cross_lib/cfg//z88dk/zpragma_clib.inc \
-pragma-redirect:getk=getk_inkey \
-DALT_SLEEP \
-DANIMATE_PLAYER \
-DSOUNDS \
-DZ88DK_JOYSTICK \
-D_XL_SLOW_DOWN_FACTOR=3300 \
 \
-D__SPECTRUM__ \
-lndos -create-app \
-DCONIO \
-DUDG_GRAPHICS \
-pragma-redirect:fputc_cons=fputc_cons_generic \
-o ../build/Xsnake_spectrum_48k.prg \
cross_lib/display/init_graphics/z88dk/udg/udg_init_graphics.c \
games/snake/generated_assets/z88dk_xchase.asm \
cross_lib/sleep/sleep_macros.c cross_lib/display/display_macros.c cross_lib/input/input_macros.c cross_lib/text/text_macros.c games/snake/main.c games/snake/control_player.c games/snake/move_snake.c games/snake/snake.c games/snake/game_text.c games/snake/variables.c
games/snake/main.c:931:1: error: Missing token, expecting ( got {
games/snake/main.c:931:1: error: Illegal Argument Name: 
games/snake/main.c:932:7: error: Illegal Argument Name: 
games/snake/main.c:932:10: error: Illegal Argument Name: 
games/snake/main.c:932:12: error: Illegal Argument Name: 
games/snake/main.c:933:1: error: Illegal Argument Name: 
games/snake/main.c:934:15: error: Illegal Argument Name: 
games/snake/main.c:935:14: error: Illegal Argument Name: 
games/snake/main.c:935:16: error: Illegal Argument Name: 
games/snake/main.c:935:17: error: Illegal Argument Name: 

Maximum (10) number of errors reached, aborting!
Compilation aborted
make: *** [games/snake/Makefile.snake:1992: spectrum_48k] Error 1
>:~/Z80/CROSS-LIB/src$ 

from cross-lib.

Fabrizio-Caruso avatar Fabrizio-Caruso commented on July 17, 2024 1

@feilipu thanks for helping me find an issue :-)
Thanks again for reporting the issue with Cross Snake. I found the problem and the trivial fix, i.e., dos2unix games/snake/main.c.

By the way, Cross-Lib can be used to build the very same games on 200 targets over several different dev-kits, not just Z88DK, but also CC65, CMOC (6809), LCC1802 (RCA 1802), etc... and even native builts (target ncurses or empty target).

from cross-lib.

Fabrizio-Caruso avatar Fabrizio-Caruso commented on July 17, 2024

Thanks a lot for providing the details.
The problem is in the asset generation. My bad.
xl uses a makefile target which:

  1. generates assets for a specific game (same for all targets with the same tile geometry)
  2. builds the binary/image
  3. cleans things up

The problem is that I forgot to include step 1 for these target targets.
It is now fixed.
Please do a git pull to see if you can build these targets.

By the way, the standard games for the spectrum are build with:

xl chase spectrum
xl bomber spectrum
xl shoot spectrum
xl snake spectrum
xl horde spectrum

All the examples in examples are build the same way, i.e., xl <game/example>

from cross-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.