Difference between revisions of "Testing library samples"
From MSX Game Library
(Created page with "The MSXgl samples can by test from their respective directory: {| |- |π <tt>projects</tt> || '''Sample programs''' |- |ββπ <tt>samples</tt> || Modules samp...") |
|||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| β | The MSXgl [[samples]] can | + | The MSXgl [[samples]] can be tested from their respective directories: |
{| | {| | ||
|- | |- | ||
| β | | | + | |<tt>π projects</tt> || |
|- | |- | ||
| β | | | + | |<tt>ββπ samples</tt> || Modules sample programs (VDP, PSG, Sprite, Print, 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_msx2</tt> || MSX2 template program (can be use as base to create your new program) | ||
|} | |} | ||
| + | |||
| + | == Samples == | ||
| + | |||
| + | Each [[samples|sample]] have 2 files : | ||
| + | * <tt>.c</tt> with sample source code, | ||
| + | * <tt>.js</tt> with [[Build Tool]] option overwrite. | ||
| + | |||
| + | From the command-line you can execute <tt>build.bat</tt> (Windows) or <tt>./build.sh</tt> (Linux) plus the name of one of the [[samples]]. "s_game" for example. | ||
| + | <pre>build s_game</pre> | ||
| + | |||
| + | You can also overwrite the target format (unless the sample needs a specific target): | ||
| + | <pre>build s_game DOS1</pre> | ||
| + | |||
| + | ''<u>Note</u>: If you have [[Install|configured an emulator path]] in <tt>MSXgl\projects\default_config.cmd</tt>, you can edit <tt>project_config.js</tt> and change "<tt>DoRun = false;</tt>" to "<tt>DoRun = true;</tt>" to allow auto-launch of the built program.'' | ||
| + | |||
| + | == Targets == | ||
| + | TBC... | ||
| + | |||
| + | == Template == | ||
| + | TBC... | ||
Latest revision as of 12:30, 13 January 2024
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 | MSX1 template program (can be use as base to create your new program) |
| ββπ template_msx2 | MSX2 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...