Difference between revisions of "Testing library samples"
From MSX Game Library
(→Samples) |
|||
Line 18: | Line 18: | ||
* <tt>.cmd</tt> with Build Tool option overwrite | * <tt>.cmd</tt> with Build Tool option overwrite | ||
− | Execute <tt>build.bat</tt> and type the name of one of the [[samples]]. "s_game" for example. | + | Execute <tt>build.bat</tt> and type the name of one of the [[samples]]. "s_game" for example.<br/> |
''<u>Note</u>: Please don't try to run [[samples|samples marked as WIP]].'' | ''<u>Note</u>: Please don't try to run [[samples|samples marked as WIP]].'' | ||
Revision as of 11:25, 18 January 2022
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 | Template sample (can be use as base to create a new program) |
Samples
Each sample have 2 files :
- .c with sample source code
- .cmd with Build Tool option overwrite
Execute build.bat and type the name of one of the samples. "s_game" for example.
Note: Please don't try to run samples marked as WIP.
Using command-line (CMD.exe) in this directory, you can directly specify the sample to build using the command:
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 build.bat and change "set DoRun=0" to "set DoRun=1" to allow auto-launch of the built program.
Targets
TBC...
Template
TBC...