Difference between revisions of "Testing library samples"

From MSX Game Library

Line 9: Line 9:
 
|<tt>β”œβ”€πŸ“ targets</tt>  || Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
 
|<tt>β”œβ”€πŸ“ targets</tt>  || Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
 
|-
 
|-
βˆ’
|<tt>β”œβ”€πŸ“ template</tt>  || MSX1 template program (can be use as base to create your new program)
+
|<tt>β”œβ”€πŸ“ template</tt>  || MSX 1 template program (can be use as base to create your new program)
 
|-
 
|-
βˆ’
|<tt>β””β”€πŸ“ template_msx2</tt> || MSX2 template program (can be use as base to create your new program)
+
|<tt>β””β”€πŸ“ template_msx2</tt> || MSX 2 template program (can be use as base to create your new program)
 
|}
 
|}
  

Revision as of 12:46, 28 May 2023

The MSXgl samples can be tested from their respective directories:

πŸ“ projects
β”œβ”€πŸ“ samples Modules sample programs (VDP, PSG, Sprite, Print, etc.)
β”œβ”€πŸ“ targets Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
β”œβ”€πŸ“ template MSX 1 template program (can be use as base to create your new program)
β””β”€πŸ“ template_msx2 MSX 2 template program (can be use as base to create your new program)

Samples

Each sample have 2 files :

  • .c with sample source code,
  • .js with Build Tool option overwrite.

From the command-line you can execute build.bat (Windows) or ./build.sh (Linux) plus the name of one of the samples. "s_game" for example.

build s_game

You can also overwrite the target format (unless the sample needs a specific target):

build s_game DOS1

Note: If you have configured an emulator path in MSXgl\projects\default_config.cmd, you can edit project_config.js and change "DoRun = false;" to "DoRun = true;" to allow auto-launch of the built program.

Targets

TBC...

Template

TBC...