Difference between revisions of "Samples"
From MSX Game Library
(→Math) |
|||
Line 337: | Line 337: | ||
{{SAMPLE_BOX | {{SAMPLE_BOX | ||
|name=Math | |name=Math | ||
− | |desc=Program showing the use of mathematics pre- | + | |desc=Program showing the use of mathematics pre-computed tables, pseudo-random generator and quick-computation functions. |
− | |module1= | + | |module1=math |
|module2= | |module2= | ||
|module3= | |module3= |
Revision as of 18:24, 19 May 2023
The samples marked as "WIP" state are not functional.
Trying to test them for now is useless.
Contents
Samples
Core
Hello World
BIOS
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_bios.jpg)
Program showing the use of default BIOS functions.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Clock
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_clock.jpg)
Program showing the use of the Real Time Clock (Ricoh RP-5C01) to get current time and save/load from CMOS memory.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
PSG
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_psg.jpg)
Program showing the use of direct control over PSG sound chip.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
System
Render
Draw
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_draw.jpg)
Program showing the use of Draw module with the MSX2 bitmap screen modes.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Graph Mode 3
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_gm3.png)
Program showing the use of Screen 4 (aka Graph mode 3) with various configuration (including unofficial MSX configurations like "Screen 1.5").
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_print.jpg)
Program showing the use of graphical print features (bitmap, sprite, effects, etc.).
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Sprite Mode 1
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_sm1.jpg)
Program showing the use of sprite mode 1 and a Sprite Attribute Table flip method to reduce sprite disappearance.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Sprite Mode 2
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_sprite.jpg)
Program showing the use of sprite mode 2 and split screen to change VDP setting during screen rendering.
- Showcased modules:
- File: s_sprite.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Software Sprite
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_swsprt.png)
Program showing the use of software sprite for all bitmap modes using VDP commands.
- Showcased modules:
- File: s_swsprt.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Software Tile
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_swtile.png)
Program showing the use of software tile mode for MSX2 bitmap modes (only Screen 5 & 8 has been tested).
- Showcased modules:
- File: s_swtile.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Text
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_text.jpg)
Program showing the use of print module with text modes (all MSX1 and MSX2 text/tiled mode).
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx-logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
VDP Command
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_vdpcmd.jpg)
Program showing the use of VDP command to draw several effect in all bitmap modes.
- Showcased modules:
- File: s_vdpcmd.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Target format
Boot Disk
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/noimage.png)
Program showing the use boot disk target format. The program will be start from disk without going through MSX-DOS but allow to use BDOS function.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/2dd-logo.png)
MSX-DOS
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/noimage.png)
Program showing the use of MSX-DOS 1 routines to load and display image from file.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/MSX2+-Logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/2dd-logo.png)
MSX-DOS 2
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/noimage.png)
Program showing the use of various MSX-DOS 2 routines to load and display image, get disk information or handle mapped memory.
- Showcased modules:
- dos (code)
- dos_mapper (code)
- File: s_dos2.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/2dd-logo.png)
Mapped ROM
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/noimage.png)
Program showing usage of mapped ROM and segments switching.
- File: s_mapper.c
- State: ✔️ Functional
Utilities
Game
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_game.png)
Program showing the use of Game and Game pawn modules. The Game module offers state management while Game pawn allows to manage characters (display, animation, movement, collision, etc.)
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Math
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_math.jpg)
Program showing the use of mathematics pre-computed tables, pseudo-random generator and quick-computation functions.
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Scrolling
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_scroll.png)
Program showing the use of multi-directionnal tile-based scrolling and screen adjust register for smooth scrolling.
- File: s_scroll.c
- State: ✔️ Functional
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/msx2-logo.png)
![Plain-ROM cartridge](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/logo/rom-logo.png)
Compress
BASIC USR
Compressor
Devices
Joystick
Keyboard
Mouse
Ninja Tap
![](https://raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_ntap.png)
Program showing the use of NinjaTap device.
- File: s_ntap.c
- State: ✔️ Functional