├── .gitattributes ├── .gitignore ├── Horizontal_scroll_article.rar ├── README.md ├── TT_compile.exe ├── TT_compile.zip ├── TTplayer ├── TMU compiler │ └── code │ │ ├── TT_compile.bb │ │ ├── TT_compile_init.bb │ │ ├── TT_compile_io.bb │ │ └── TT_compile_process.bb ├── code │ ├── ttreplay.asm │ ├── ttreplay.asm.bak │ ├── ttreplayDAT.asm │ ├── ttreplayDAT_asMSX.asm │ ├── ttreplayPSG.asm │ ├── ttreplayPSGDAT.asm │ ├── ttreplayPSGRAM.asm │ ├── ttreplayRAM.asm │ ├── ttreplayRAM_asMSX.asm │ ├── ttreplay_asMSX.asm │ └── voltable_combined.bin ├── example │ ├── demosong.asm │ ├── demosong.lst │ ├── demosong.sym │ ├── demosong_asMSX.asm │ ├── main.asm │ ├── main_asMSX.asm │ ├── main_asMSX.rom │ ├── main{SCC}.lst │ ├── main{SCC}.rom │ ├── main{SCC}.sym │ ├── make.bat │ ├── make_asMSX.bat │ ├── usas.tmu │ └── voltable_combined.bin └── ttsfxplay │ ├── sfx │ ├── menu1.afx │ ├── menu2.afx │ ├── menu3.afx │ ├── menu4.afx │ ├── menu5.afx │ ├── menu6.afx │ ├── menu7.afx │ └── menu8.afx │ ├── ttsfxplay.asm │ └── ttsfxplay_RAM.asm ├── TriloTracker-Re-player-0.3.1.zip ├── URD2 ├── anim_opt.asm ├── bat.bat ├── brdrs_opt.asm ├── checkkbd.asm ├── compila.bat ├── datamap.bin ├── fonts.bin ├── fsmscroll.asm ├── header.asm ├── intro │ ├── SAT64TEST.ASM │ ├── SAT64TEST.lst │ ├── SAT64TEST.rom │ ├── SAT64TEST.sym │ ├── TOTALRAS.ASM │ ├── TOTALRAS.rom │ ├── compila_ras.bat │ ├── compila_sat.bat │ ├── math.asm │ ├── npctype19_3_BULLETS.asm │ ├── npctype20_5_BULLETS.asm │ ├── npctype2_LINEAR_BULLET.asm │ ├── npctype666_MULTIPLE_BULLET.asm │ ├── opening.bin │ ├── rast.txt │ ├── raster.m │ ├── totalras.lst │ └── totalras.sym ├── isr.asm ├── levels │ ├── _output.png │ ├── crap │ │ ├── 1821_gamemap1.png │ │ ├── Untitled.pyxel │ │ ├── Untitled8x8.pyxel │ │ ├── lev1.png │ │ ├── lev1_tiles.png │ │ ├── liv1_176.pyxel │ │ ├── runningman40x40.pyxel │ │ ├── runningman8x8.pyxel │ │ ├── runningman8x8_attemptedFileRescue1.pyxel │ │ ├── test.act │ │ ├── test.pyxel │ │ ├── test2.bmp │ │ ├── test2.pyxel │ │ ├── test_level.png │ │ ├── test_level3.png │ │ ├── test_level4.png │ │ ├── test_level5.png │ │ └── toni_level.png │ ├── datamap.txt │ ├── lev1.pyxel │ ├── lev1_rev.png │ ├── lev2.pyxel │ ├── lev_tst.png │ └── test.pyxel ├── main.asm ├── main.lst ├── main.sym ├── output.png ├── rominit64.asm ├── test.txt ├── tiles.bin ├── tilesets │ ├── 16x16_font.png │ ├── animated.bmp │ ├── destructibles.bmp │ ├── scorebar.m │ ├── test_16x16_font.png │ └── tileset.png ├── tilessetting256ram.m ├── urd2.rom ├── vdpcmds.asm └── vdpio.asm ├── shooter_scr8_asm ├── bas │ ├── autoexec.bas │ ├── autoexec1.bas │ └── autoexec2.bas ├── bat.bat ├── bmp │ ├── 1821_gamemap1.png │ ├── 1821_gamemap10.png │ ├── 1821_gamemap11.png │ ├── 1821_gamemap12.png │ ├── 1821_gamemap13.png │ ├── 1821_gamemap14.png │ ├── 1821_gamemap15.png │ ├── 1821_gamemap16.png │ ├── 1821_gamemap17.png │ ├── 1821_gamemap18.png │ ├── 1821_gamemap19.png │ ├── 1821_gamemap2.png │ ├── 1821_gamemap20.png │ ├── 1821_gamemap21.png │ ├── 1821_gamemap22.png │ ├── 1821_gamemap23.png │ ├── 1821_gamemap24.png │ ├── 1821_gamemap3.png │ ├── 1821_gamemap4.png │ ├── 1821_gamemap5.png │ ├── 1821_gamemap6.png │ ├── 1821_gamemap7.png │ ├── 1821_gamemap8.png │ ├── 1821_gamemap9.png │ ├── U2_CoreMechSuits.jpg │ ├── U2_Fleet1_TileSheet1.bmp │ ├── U2_Fleet1_TileSheet1.jpg │ ├── U2_Fleet2_DeckGun_and_Hatch.bmp │ ├── U2_Fleet2_DeckGun_and_Hatch.jpg │ ├── U2_Fleet2_TileSheet1.bmp │ ├── U2_Fleet2_TileSheet1.jpg │ ├── U2_Fleet2_TileSheet2.bmp │ ├── U2_Fleet2_TileSheet2.jpg │ ├── U2_Fleet4_TileSheet1.bmp │ ├── U2_Fleet4_TileSheet1.jpg │ ├── crap │ │ ├── Anikki_square_16x16.png │ │ ├── Fighter_WIP-FullFlip1.gif │ │ ├── GNG2048x176.png │ │ ├── HOL_gamemap_Uridium2_20150402_203037.zip │ │ ├── NUMBERS.bmp │ │ ├── Stage7.png │ │ ├── anim1.gif │ │ ├── tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif │ │ └── tumblr_static_bhlbei0winwcsos4wskococ8c.gif │ ├── uridium2_lvl6_map.png │ ├── uridium_2_fleet_3.png │ ├── uridium_2_fleet_3_tmp.png │ └── uridium_2_lvl_5-8_enemies.png ├── compila.bat ├── databin │ ├── animated.bin │ ├── datamap.bin │ ├── opening.bin │ ├── scorebar.bin │ └── tiles.bin ├── ene_code │ ├── _enemies_scr8_clr.bin │ ├── _enemies_scr8_frm.bin │ ├── collision_tst.asm │ ├── convert_line2.m │ ├── enemies.act │ ├── enemies.asm │ ├── enemies.bmp │ ├── enemies_clr.bin │ ├── enemies_frm.bin │ ├── enemies_scr8_clr.bin │ ├── enemies_scr8_frm.bin │ ├── grpx │ │ ├── enemies_comp.bmp │ │ ├── enemies_org.png │ │ ├── enemies_scr8.png │ │ ├── sprites.bmp │ │ ├── sprites.png │ │ ├── sprites_128.bmp │ │ ├── uridium_rev7.bmp │ │ ├── uridium_rev8.bmp │ │ └── uridium_revA.bmp │ ├── main.lst │ ├── main.sym │ ├── palette.txt │ ├── png2sprt.m │ ├── put_ms_sprt.asm │ ├── sprite_collision_window.asm │ ├── uridium_rev7.bin │ ├── uridium_rev9.bmp │ └── uridium_revA.bin ├── graphics │ ├── Color_test_black.png │ ├── Color_test_org.png │ ├── Uridium 2.png │ ├── animated.bmp │ ├── color_test.png │ ├── l1.png │ ├── lmap6 - Copia (2).png │ ├── lmap6 - Copia.png │ ├── lmap6.bmp │ ├── lmap6.png │ ├── output.png │ ├── scorebar.bmp │ ├── tileset.png │ ├── toni_level.png │ ├── uridium2.png │ └── uridium2_rev.png ├── main.asm ├── main.lst ├── main.sym ├── main.txt ├── manta │ ├── convert_line.m │ ├── convert_line2.m │ ├── grpx │ │ ├── lrg-858-uridium_ship_sprite.png │ │ ├── lrg-858-uridium_ship_sprite_org.png │ │ ├── mship03_comp.bmp │ │ ├── mship03_org.png │ │ ├── mship03_scr8.png │ │ ├── mship03_shapes.png │ │ ├── spritepalette.png │ │ └── spritepalette_or.png │ ├── ms_bllts.asm │ ├── ms_bllts_frm_coll_wind.asm │ ├── ms_crtl.asm │ ├── ms_sprt.m │ ├── mship02 - saturated.png │ ├── mship03_ani.asm │ ├── mship03_clr.bin │ ├── mship03_frm.bin │ ├── mship03_frm_coll_wind.asm │ ├── mship03_gold.png │ ├── mship03_original_palette.png │ ├── mship03_scr8_palette.png │ ├── mship03_silver.png │ ├── palette_org.act │ ├── palette_org_MANTA.act │ ├── palette_org_enemies.act │ ├── palette_org_new.act │ ├── scrn8.act │ ├── scrn8_bitmap.act │ ├── scrn8_or.act │ ├── scrn8_unsorted.act │ └── ursd2.act ├── music │ ├── ANALMAUL.TMU │ ├── ANDOROGY.TMU │ ├── DEARBLUE.TMU │ ├── GEPE2M15.TMU │ ├── INS_TEST.TMU │ ├── JUDAGEAR.TMU │ ├── MMAYN.TMU │ ├── N68GSET.TMU │ ├── NEM2INTR.TMU │ ├── PARACOVE.TMU │ ├── PEARLMON.TMU │ ├── PLEASURE.TMU │ ├── QSOUND04.TMU │ ├── QUARTHBA.TMU │ ├── SDSNATCH.TMU │ ├── SOLIDSNK.TMU │ ├── SURVIVE.TMU │ ├── USASST1.TMU │ ├── WILDARMS.TMU │ ├── ZELDA.TMU │ └── demosong.asm ├── palette256.act ├── scorebar.m ├── sources │ ├── checkkbd.asm │ ├── color_update.asm │ ├── header.asm │ ├── isr.asm │ ├── opening.asm │ ├── plot_distrucable.asm │ ├── plot_line.asm │ ├── plot_line2.asm │ ├── print.asm │ ├── probe_level.asm │ ├── rominit64.asm │ ├── sat_update.asm │ ├── sprts.asm │ ├── turbo.asm │ ├── vdpio.asm │ └── vuitpakker.asm ├── tilessetting256ram.m └── urd_scr8.rom └── shooter_scr8_asmTT ├── bas ├── autoexec.bas ├── autoexec1.bas └── autoexec2.bas ├── bat.bat ├── bmp ├── 1821_gamemap1.png ├── 1821_gamemap10.png ├── 1821_gamemap11.png ├── 1821_gamemap12.png ├── 1821_gamemap13.png ├── 1821_gamemap14.png ├── 1821_gamemap15.png ├── 1821_gamemap16.png ├── 1821_gamemap17.png ├── 1821_gamemap18.png ├── 1821_gamemap19.png ├── 1821_gamemap2.png ├── 1821_gamemap20.png ├── 1821_gamemap21.png ├── 1821_gamemap22.png ├── 1821_gamemap23.png ├── 1821_gamemap24.png ├── 1821_gamemap3.png ├── 1821_gamemap4.png ├── 1821_gamemap5.png ├── 1821_gamemap6.png ├── 1821_gamemap7.png ├── 1821_gamemap8.png ├── 1821_gamemap9.png ├── U2_CoreMechSuits.jpg ├── U2_Fleet1_TileSheet1.bmp ├── U2_Fleet1_TileSheet1.jpg ├── U2_Fleet2_DeckGun_and_Hatch.bmp ├── U2_Fleet2_DeckGun_and_Hatch.jpg ├── U2_Fleet2_TileSheet1.bmp ├── U2_Fleet2_TileSheet1.jpg ├── U2_Fleet2_TileSheet2.bmp ├── U2_Fleet2_TileSheet2.jpg ├── U2_Fleet4_TileSheet1.bmp ├── U2_Fleet4_TileSheet1.jpg ├── crap │ ├── Anikki_square_16x16.png │ ├── Fighter_WIP-FullFlip1.gif │ ├── GNG2048x176.png │ ├── HOL_gamemap_Uridium2_20150402_203037.zip │ ├── NUMBERS.bmp │ ├── Stage7.png │ ├── anim1.gif │ ├── tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif │ └── tumblr_static_bhlbei0winwcsos4wskococ8c.gif ├── uridium2_lvl6_map.png ├── uridium_2_fleet_3.png ├── uridium_2_fleet_3_tmp.png └── uridium_2_lvl_5-8_enemies.png ├── compila.bat ├── databin ├── animated.bin ├── datamap.bin ├── opening.bin ├── scorebar.bin └── tiles.bin ├── ene_code ├── _enemies_scr8_clr.bin ├── _enemies_scr8_frm.bin ├── collision_tst.asm ├── convert_line2.m ├── enemies.act ├── enemies.asm ├── enemies.bmp ├── enemies_clr.bin ├── enemies_frm.bin ├── enemies_scr8_clr.bin ├── enemies_scr8_frm.bin ├── grpx │ ├── enemies_comp.bmp │ ├── enemies_org.png │ ├── enemies_scr8.png │ ├── sprites.bmp │ ├── sprites.png │ ├── sprites_128.bmp │ ├── uridium_rev7.bmp │ ├── uridium_rev8.bmp │ └── uridium_revA.bmp ├── main.lst ├── main.sym ├── palette.txt ├── png2sprt.m ├── put_ms_sprt.asm ├── sprite_collision_window.asm ├── uridium_rev7.bin ├── uridium_rev9.bmp └── uridium_revA.bin ├── graphics ├── Color_test_black.png ├── Color_test_org.png ├── Uridium 2.png ├── animated.bmp ├── color_test.png ├── l1.png ├── lmap6 - Copia (2).png ├── lmap6 - Copia.png ├── lmap6.bmp ├── lmap6.png ├── output.png ├── scorebar.bmp ├── tileset.png ├── toni_level.png ├── uridium2.png └── uridium2_rev.png ├── main.asm ├── main.lst ├── main.sym ├── main.txt ├── manta ├── convert_line.m ├── convert_line2.m ├── grpx │ ├── lrg-858-uridium_ship_sprite.png │ ├── lrg-858-uridium_ship_sprite_org.png │ ├── mship03_comp.bmp │ ├── mship03_org.png │ ├── mship03_scr8.png │ ├── mship03_shapes.png │ ├── spritepalette.png │ └── spritepalette_or.png ├── ms_bllts.asm ├── ms_bllts_frm_coll_wind.asm ├── ms_crtl.asm ├── ms_sprt.m ├── mship02 - saturated.png ├── mship03_ani.asm ├── mship03_clr.bin ├── mship03_frm.bin ├── mship03_frm_coll_wind.asm ├── mship03_gold.png ├── mship03_original_palette.png ├── mship03_scr8_palette.png ├── mship03_silver.png ├── palette_org.act ├── palette_org_MANTA.act ├── palette_org_enemies.act ├── palette_org_new.act ├── scrn8.act ├── scrn8_bitmap.act ├── scrn8_or.act ├── scrn8_unsorted.act └── ursd2.act ├── music ├── ANALMAUL.TMU ├── ANDOROGY.TMU ├── DEARBLUE.TMU ├── GEPE2M15.TMU ├── INS_TEST.TMU ├── JUDAGEAR.TMU ├── MMAYN.TMU ├── N68GSET.TMU ├── NEM2INTR.TMU ├── PARACOVE.TMU ├── PEARLMON.TMU ├── PLEASURE.TMU ├── QSOUND04.TMU ├── QUARTHBA.TMU ├── SDSNATCH.TMU ├── SOLIDSNK.TMU ├── SURVIVE.TMU ├── USASST1.TMU ├── WILDARMS.TMU ├── ZELDA.TMU └── demosong.asm ├── palette256.act ├── scorebar.m ├── sources ├── checkkbd.asm ├── color_update.asm ├── header.asm ├── isr.asm ├── plot_distrucable.asm ├── plot_line.asm ├── plot_line2.asm ├── print.asm ├── probe_level.asm ├── rominit64.asm ├── sat_update.asm ├── sprts.asm ├── turbo.asm ├── vdpio.asm └── vuitpakker.asm ├── tilessetting256ram.m └── urd_scr8.rom /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /Horizontal_scroll_article.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/Horizontal_scroll_article.rar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Uridium-2-for-msx 2 | Uridium 2 demake for msx 2 3 | 4 | 5 | The project is aimed to prove that also a poor msx2 can have fine horizontal scrolling with 256 colours on screen. 6 | The game shows multi directional scrolling at different speeds. 7 | The level height is limited to 208 pixels on PAL, 160 pixels on NTSC. 8 | 9 | Planned features 10 | - two layer scrolling (star field backplane) 11 | - radar 1:16 zoom on the current (updated each 16 frames) 12 | - multicolour sprites (on fly colour update) 13 | - sprite multiplexing (reverse SAT allows up to 16 sprites per line, i.e. 8 enemies with 3 colours per line) 14 | - animated background (updating one 16x16 tile per frame) 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /TT_compile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TT_compile.exe -------------------------------------------------------------------------------- /TT_compile.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TT_compile.zip -------------------------------------------------------------------------------- /TTplayer/TMU compiler/code/TT_compile_init.bb: -------------------------------------------------------------------------------- 1 | Global mainWinX = 0 2 | Global mainWinY = 0 3 | Global mainWinW = 800 4 | Global mainWinH = 480 5 | 6 | ;///////////////////////////////////////////////////// 7 | ; Main GUI 8 | ;///////////////////////////////////////////////////// 9 | ; character set 10 | Global xsmallfont=LoadFont("Verdana",10,False,False,False) 11 | Global smallfont=LoadFont("Verdana",12,False,False,False) 12 | Global largefont=LoadFont("Verdana",22,False,False,False) 13 | Global ttfont = LoadFont ("Courier New",16,False,False,False) 14 | ;main window 15 | Global mainWin = CreateWindow("[X] TriloTracker TMU compiler "+VERSION$,0,0,mainWinW,mainWinH,Desktop()) 16 | Global mainPanel = CreatePanel(0,0,798,478,mainWin) 17 | Global logging = CreateTextArea(0,80,788,300,mainPanel) 18 | SetTextAreaFont logging,ttfont 19 | ;---- Buttons 20 | Global loadButton = CreateButton("Load TMU",690,2,96,24,mainPanel,0) 21 | Global saveButton = CreateButton("Save TT",690,30,96,24,mainPanel,0) 22 | Global includeWave = CreateButton("waveforms",600,20,90,16,mainPanel,2) 23 | SetButtonState includeWave,1 24 | Global includeIns = CreateButton("instruments",600,38,90,16,mainPanel,2) 25 | SetButtonState includeIns,1 26 | ;---- Select boxes. 27 | Global outputSelect = CreateComboBox (690,58,96,24,mainPanel) 28 | AddGadgetItem outputSelect,"sjasm" 29 | AddGadgetItem outputSelect,"asMSX" 30 | SelectGadgetItem outputSelect,0 31 | 32 | 33 | 34 | ;--- Labels 35 | CreateLabel "Output type:",600,62,60,16,mainPanel 36 | CreateLabel "Include:",600,2,60,16,mainPanel -------------------------------------------------------------------------------- /TTplayer/code/ttreplayDAT.asm: -------------------------------------------------------------------------------- 1 | 2 | ds 8*16, 0 3 | _VOLUME_TABLE 4 | incbin ".\voltable_combined.bin" 5 | 6 | ;Konami values found in Nemesis 2 replayer. 7 | C_PER equ $6a*32 8 | C1_PER equ $64*32 9 | D_PER equ $5e*32 10 | D1_PER equ $59*32 11 | E_PER equ $54*32 12 | F_PER equ $4f*32 13 | F1_PER equ $4a*32 14 | G_PER equ $46*32 15 | G1_PER equ $42*32 16 | A_PER equ $3f*32 17 | A1_PER equ $3b*32 18 | B_PER equ $38*32 19 | 20 | TRACK_ToneTable: 21 | dw C_PER/1 ,C1_PER/1 ,D_PER/1 ,D1_PER/1 ,E_PER/1 ,F_PER/1 ,F1_PER/1 ,G_PER/1 ,G1_PER/1 ,A_PER/1 ,A1_PER/1 ,B_PER/1 22 | dw C_PER/2 ,C1_PER/2 ,D_PER/2 ,D1_PER/2 ,E_PER/2 ,F_PER/2 ,F1_PER/2 ,G_PER/2 ,G1_PER/2 ,A_PER/2 ,A1_PER/2 ,B_PER/2 23 | dw C_PER/4 ,C1_PER/4 ,D_PER/4 ,D1_PER/4 ,E_PER/4 ,F_PER/4 ,F1_PER/4 ,G_PER/4 ,G1_PER/4 ,A_PER/4 ,A1_PER/4 ,B_PER/4 24 | dw C_PER/8 ,C1_PER/8 ,D_PER/8 ,D1_PER/8 ,E_PER/8 ,F_PER/8 ,F1_PER/8 ,G_PER/8 ,G1_PER/8 ,A_PER/8 ,A1_PER/8 ,B_PER/8 25 | dw C_PER/16 ,C1_PER/16 ,D_PER/16 ,D1_PER/16 ,E_PER/16 ,F_PER/16 ,F1_PER/16 ,G_PER/16 ,G1_PER/16 ,A_PER/16 ,A1_PER/16 ,B_PER/16 26 | dw C_PER/32 ,C1_PER/32 ,D_PER/32 ,D1_PER/32 ,E_PER/32 ,F_PER/32 ,F1_PER/32 ,G_PER/32 ,G1_PER/32 ,A_PER/32 ,A1_PER/32 ,B_PER/32 27 | dw C_PER/64 ,C1_PER/64 ,D_PER/64 ,D1_PER/64 ,E_PER/64 ,F_PER/64 ,F1_PER/64 ,G_PER/64 ,G1_PER/64 ,A_PER/64 ,A1_PER/64 ,B_PER/64 28 | dw C_PER/128,C1_PER/128,D_PER/128,D1_PER/128,E_PER/128,F_PER/128,F1_PER/128,G_PER/128,G1_PER/128,A_PER/128,A1_PER/128,B_PER/128 29 | 30 | 31 | TRACK_Vibrato_sine: 32 | db 0*2, 2*2, 4*2, 7*2,11*2,16*2,22*2,28*2,35*2,43*2,51*2,59*2,68*2,77*2,87*2,96*2 33 | db 96*2,86*2,77*2,68*2,59*2,51*2,43*2,35*2,28*2,22*2,16*2,11*2, 7*2, 4*2, 2*2, 0*2 34 | 35 | TRACK_Vibrato_triangle: 36 | db 0, 6,12,18,24,30,36,42,48,54,60,66,72,78,84,90 37 | db 96,90,84,78,72,66,60,54,48,42,36,30,24,18,12, 6 38 | 39 | TRACK_Vibrato_pulse: 40 | db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255 41 | db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 42 | -------------------------------------------------------------------------------- /TTplayer/code/ttreplayDAT_asMSX.asm: -------------------------------------------------------------------------------- 1 | 2 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 3 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 4 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 5 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 6 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 7 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 8 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 9 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 10 | _VOLUME_TABLE: 11 | .INCBIN ".\voltable_combined.bin" 12 | 13 | ;Konami values found in Nemesis 2 replayer. 14 | C_PER .equ $6a*32 15 | C1_PER .equ $64*32 16 | D_PER .equ $5e*32 17 | D1_PER .equ $59*32 18 | E_PER .equ $54*32 19 | F_PER .equ $4f*32 20 | F1_PER .equ $4a*32 21 | G_PER .equ $46*32 22 | G1_PER .equ $42*32 23 | A_PER .equ $3f*32 24 | A1_PER .equ $3b*32 25 | B_PER .equ $38*32 26 | 27 | TRACK_ToneTable: 28 | .dw C_PER/1 ,C1_PER/1 ,D_PER/1 ,D1_PER/1 ,E_PER/1 ,F_PER/1 ,F1_PER/1 ,G_PER/1 ,G1_PER/1 ,A_PER/1 ,A1_PER/1 ,B_PER/1 29 | .dw C_PER/2 ,C1_PER/2 ,D_PER/2 ,D1_PER/2 ,E_PER/2 ,F_PER/2 ,F1_PER/2 ,G_PER/2 ,G1_PER/2 ,A_PER/2 ,A1_PER/2 ,B_PER/2 30 | .dw C_PER/4 ,C1_PER/4 ,D_PER/4 ,D1_PER/4 ,E_PER/4 ,F_PER/4 ,F1_PER/4 ,G_PER/4 ,G1_PER/4 ,A_PER/4 ,A1_PER/4 ,B_PER/4 31 | .dw C_PER/8 ,C1_PER/8 ,D_PER/8 ,D1_PER/8 ,E_PER/8 ,F_PER/8 ,F1_PER/8 ,G_PER/8 ,G1_PER/8 ,A_PER/8 ,A1_PER/8 ,B_PER/8 32 | .dw C_PER/16 ,C1_PER/16 ,D_PER/16 ,D1_PER/16 ,E_PER/16 ,F_PER/16 ,F1_PER/16 ,G_PER/16 ,G1_PER/16 ,A_PER/16 ,A1_PER/16 ,B_PER/16 33 | .dw C_PER/32 ,C1_PER/32 ,D_PER/32 ,D1_PER/32 ,E_PER/32 ,F_PER/32 ,F1_PER/32 ,G_PER/32 ,G1_PER/32 ,A_PER/32 ,A1_PER/32 ,B_PER/32 34 | .dw C_PER/64 ,C1_PER/64 ,D_PER/64 ,D1_PER/64 ,E_PER/64 ,F_PER/64 ,F1_PER/64 ,G_PER/64 ,G1_PER/64 ,A_PER/64 ,A1_PER/64 ,B_PER/64 35 | .dw C_PER/128,C1_PER/128,D_PER/128,D1_PER/128,E_PER/128,F_PER/128,F1_PER/128,G_PER/128,G1_PER/128,A_PER/128,A1_PER/128,B_PER/128 36 | 37 | 38 | TRACK_Vibrato_sine: 39 | .db 0*2, 2*2, 4*2, 7*2,11*2,16*2,22*2,28*2,35*2,43*2,51*2,59*2,68*2,77*2,87*2,96*2 40 | .db 96*2,86*2,77*2,68*2,59*2,51*2,43*2,35*2,28*2,22*2,16*2,11*2, 7*2, 4*2, 2*2, 0*2 41 | 42 | TRACK_Vibrato_triangle: 43 | .db 0, 6,12,18,24,30,36,42,48,54,60,66,72,78,84,90 44 | .db 96,90,84,78,72,66,60,54,48,42,36,30,24,18,12, 6 45 | 46 | TRACK_Vibrato_pulse: 47 | .db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255 48 | .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 49 | -------------------------------------------------------------------------------- /TTplayer/code/ttreplayPSGDAT.asm: -------------------------------------------------------------------------------- 1 | _VOLUME_TABLE 2 | incbin ".\voltable.bin" 3 | 4 | ;Konami values found in Nemesis 2 replayer. 5 | C_PER equ $6a*32 6 | C1_PER equ $64*32 7 | D_PER equ $5e*32 8 | D1_PER equ $59*32 9 | E_PER equ $54*32 10 | F_PER equ $4f*32 11 | F1_PER equ $4a*32 12 | G_PER equ $46*32 13 | G1_PER equ $42*32 14 | A_PER equ $3f*32 15 | A1_PER equ $3b*32 16 | B_PER equ $38*32 17 | 18 | TRACK_ToneTable: 19 | dw C_PER/1 ,C1_PER/1 ,D_PER/1 ,D1_PER/1 ,E_PER/1 ,F_PER/1 ,F1_PER/1 ,G_PER/1 ,G1_PER/1 ,A_PER/1 ,A1_PER/1 ,B_PER/1 20 | dw C_PER/2 ,C1_PER/2 ,D_PER/2 ,D1_PER/2 ,E_PER/2 ,F_PER/2 ,F1_PER/2 ,G_PER/2 ,G1_PER/2 ,A_PER/2 ,A1_PER/2 ,B_PER/2 21 | dw C_PER/4 ,C1_PER/4 ,D_PER/4 ,D1_PER/4 ,E_PER/4 ,F_PER/4 ,F1_PER/4 ,G_PER/4 ,G1_PER/4 ,A_PER/4 ,A1_PER/4 ,B_PER/4 22 | dw C_PER/8 ,C1_PER/8 ,D_PER/8 ,D1_PER/8 ,E_PER/8 ,F_PER/8 ,F1_PER/8 ,G_PER/8 ,G1_PER/8 ,A_PER/8 ,A1_PER/8 ,B_PER/8 23 | dw C_PER/16 ,C1_PER/16 ,D_PER/16 ,D1_PER/16 ,E_PER/16 ,F_PER/16 ,F1_PER/16 ,G_PER/16 ,G1_PER/16 ,A_PER/16 ,A1_PER/16 ,B_PER/16 24 | dw C_PER/32 ,C1_PER/32 ,D_PER/32 ,D1_PER/32 ,E_PER/32 ,F_PER/32 ,F1_PER/32 ,G_PER/32 ,G1_PER/32 ,A_PER/32 ,A1_PER/32 ,B_PER/32 25 | dw C_PER/64 ,C1_PER/64 ,D_PER/64 ,D1_PER/64 ,E_PER/64 ,F_PER/64 ,F1_PER/64 ,G_PER/64 ,G1_PER/64 ,A_PER/64 ,A1_PER/64 ,B_PER/64 26 | dw C_PER/128,C1_PER/128,D_PER/128,D1_PER/128,E_PER/128,F_PER/128,F1_PER/128,G_PER/128,G1_PER/128,A_PER/128,A1_PER/128,B_PER/128 27 | 28 | 29 | TRACK_Vibrato_sine: 30 | db 0*2, 2*2, 4*2, 7*2,11*2,16*2,22*2,28*2,35*2,43*2,51*2,59*2,68*2,77*2,87*2,96*2 31 | db 96*2,86*2,77*2,68*2,59*2,51*2,43*2,35*2,28*2,22*2,16*2,11*2, 7*2, 4*2, 2*2, 0*2 32 | 33 | TRACK_Vibrato_triangle: 34 | db 0, 6,12,18,24,30,36,42,48,54,60,66,72,78,84,90 35 | db 96,90,84,78,72,66,60,54,48,42,36,30,24,18,12, 6 36 | 37 | TRACK_Vibrato_pulse: 38 | db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255 39 | db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 40 | -------------------------------------------------------------------------------- /TTplayer/code/voltable_combined.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/code/voltable_combined.bin -------------------------------------------------------------------------------- /TTplayer/example/demosong.sym: -------------------------------------------------------------------------------- 1 | _.restart: equ 0000C005h 2 | _.waveform_start: equ 0000C119h 3 | _.instrument_start: equ 0000C519h 4 | _.ins_1: equ 0000C547h 5 | _.rst_i1: equ 0000C55Bh 6 | _.ins_2: equ 0000C57Bh 7 | _.rst_i2: equ 0000C58Fh 8 | _.ins_3: equ 0000C595h 9 | _.ins_4: equ 0000C595h 10 | _.ins_5: equ 0000C595h 11 | _.rst_i5: equ 0000C5A9h 12 | _.ins_6: equ 0000C5C5h 13 | _.ins_7: equ 0000C5C5h 14 | _.rst_i7: equ 0000C5D9h 15 | _.ins_8: equ 0000C5F5h 16 | _.ins_9: equ 0000C5F5h 17 | _.rst_i9: equ 0000C609h 18 | _.ins_10: equ 0000C625h 19 | _.ins_11: equ 0000C625h 20 | _.rst_i11: equ 0000C639h 21 | _.ins_12: equ 0000C655h 22 | _.rst_i12: equ 0000C669h 23 | _.ins_13: equ 0000C673h 24 | _.ins_14: equ 0000C673h 25 | _.rst_i14: equ 0000C687h 26 | _.ins_15: equ 0000C6A7h 27 | _.ins_16: equ 0000C6A7h 28 | _.rst_i16: equ 0000C6BFh 29 | _.ins_17: equ 0000C6DFh 30 | _.ins_18: equ 0000C6DFh 31 | _.rst_i18: equ 0000C6F3h 32 | _.ins_19: equ 0000C6F4h 33 | _.rst_i19: equ 0000C702h 34 | _.ins_20: equ 0000C705h 35 | _.rst_i20: equ 0000C709h 36 | _.ins_21: equ 0000C70Bh 37 | _.ins_22: equ 0000C70Bh 38 | _.ins_23: equ 0000C70Bh 39 | _.rst_i23: equ 0000C71Bh 40 | _.track_0: equ 0000C71Dh 41 | _.track_1: equ 0000C766h 42 | _.track_2: equ 0000C7B6h 43 | _.track_3: equ 0000C820h 44 | _.track_4: equ 0000C871h 45 | _.track_5: equ 0000C8B6h 46 | _.track_6: equ 0000C908h 47 | _.track_7: equ 0000C954h 48 | _.track_8: equ 0000C99Ch 49 | _.track_9: equ 0000C9EEh 50 | _.track_10: equ 0000CA56h 51 | _.track_11: equ 0000CAB6h 52 | _.track_12: equ 0000CB18h 53 | _.track_13: equ 0000CB78h 54 | _.track_14: equ 0000CBC1h 55 | _.track_15: equ 0000CC11h 56 | _.track_16: equ 0000CC79h 57 | _.track_17: equ 0000CCC9h 58 | _.track_18: equ 0000CD0Eh 59 | _.track_19: equ 0000CD60h 60 | _.track_20: equ 0000CDA8h 61 | _.track_21: equ 0000CE0Eh 62 | _.track_22: equ 0000CE72h 63 | _.track_23: equ 0000CED8h 64 | _.track_24: equ 0000CF3Ch 65 | _.track_25: equ 0000CF7Dh 66 | _.track_26: equ 0000CFFBh 67 | _.track_27: equ 0000D048h 68 | _.track_28: equ 0000D08Eh 69 | _.track_29: equ 0000D101h 70 | _.track_30: equ 0000D147h 71 | _.track_31: equ 0000D188h 72 | _.track_32: equ 0000D1CFh 73 | _.track_33: equ 0000D250h 74 | _.track_34: equ 0000D298h 75 | _.track_35: equ 0000D2DFh 76 | _.track_36: equ 0000D35Ah 77 | _.track_37: equ 0000D3A8h 78 | _.track_38: equ 0000D3ECh 79 | _.track_39: equ 0000D43Dh 80 | _.track_40: equ 0000D4E1h 81 | _.track_41: equ 0000D503h 82 | _.track_42: equ 0000D524h 83 | _.track_43: equ 0000D5A5h 84 | _.track_44: equ 0000D5F0h 85 | _.track_45: equ 0000D636h 86 | _.track_46: equ 0000D687h 87 | _.track_47: equ 0000D716h 88 | _.track_48: equ 0000D737h 89 | _.track_49: equ 0000D758h 90 | _.track_50: equ 0000D7CBh 91 | _.track_51: equ 0000D81Dh 92 | _.track_52: equ 0000D874h 93 | _.track_53: equ 0000D8CCh 94 | _.track_54: equ 0000D91Dh 95 | _.track_55: equ 0000D964h 96 | _.track_56: equ 0000D9ADh 97 | _.track_57: equ 0000D9FBh 98 | _.track_58: equ 0000DA0Ch 99 | _.track_59: equ 0000DA1Bh 100 | _.track_60: equ 0000DA5Eh 101 | _.track_61: equ 0000DA6Eh 102 | _.track_62: equ 0000DA7Fh 103 | _.track_63: equ 0000DAC8h 104 | _.track_64: equ 0000DAD8h 105 | _.track_65: equ 0000DB21h 106 | _.track_66: equ 0000DB6Fh 107 | _.track_67: equ 0000DBB2h 108 | _.track_68: equ 0000DBC1h 109 | _.track_69: equ 0000DBD1h 110 | _.track_70: equ 0000DC1Ah 111 | _.track_71: equ 0000DC5Ch 112 | _.track_72: equ 0000DCD4h 113 | _.track_73: equ 0000DD1Ah 114 | _.track_74: equ 0000DD5Fh 115 | _.track_75: equ 0000DDBBh 116 | _.track_76: equ 0000DDFFh 117 | _.track_77: equ 0000DE3Bh 118 | -------------------------------------------------------------------------------- /TTplayer/example/main.asm: -------------------------------------------------------------------------------- 1 | defpage 0,0x4000, 0x8000 ; page 0 contains main code + far call routines 2 | 3 | ; ----------------------------- 4 | ; TT-replayer example 5 | ; 6 | ; This example plays compiled PSG+SCC songs 7 | ; ------------------------------ 8 | 9 | ; include ".\code\variables.asm" 10 | 11 | page 0 12 | code page 0 13 | 14 | org 04000h 15 | db 041h,042h 16 | dw initmain 17 | dz 'TTDEMO' 18 | ds 5 19 | 20 | initmain: 21 | 22 | ei 23 | halt 24 | di 25 | 26 | ;; set pages and subslot 27 | ;; 28 | call 0x138 29 | rrca 30 | rrca 31 | and 0x03 32 | ld c,a 33 | ld b,0 34 | ld hl,0xfcc1 35 | add hl,bc 36 | or (hl) 37 | ld b,a 38 | inc hl 39 | inc hl 40 | inc hl 41 | inc hl 42 | ld a,(hl) 43 | and 0x0c 44 | or b 45 | 46 | ld h,0x80 47 | call 0x24 48 | 49 | ;clear RAM (first kb only) 50 | ld bc,1024 51 | ld hl,0xc000 52 | ld de,0xc001 53 | 54 | ld (hl),0 55 | ldir 56 | 57 | ;--- place replayer on hook 58 | ld a,0xc3 59 | ld hl,isr 60 | ld (0xFD9A),a 61 | ld (0xFD9B),hl 62 | 63 | ;--- initialise replayer 64 | call replay_init 65 | call ttsfx_init 66 | 67 | ;--- initialise demo song 68 | ld hl,demo_song 69 | call replay_loadsong 70 | 71 | ;--- initialise sfx pointers 72 | 73 | 74 | 75 | ei 76 | 77 | xor a 78 | ld (pattern),a 79 | 80 | 81 | 82 | infinite: 83 | halt 84 | ;--- display debug info 85 | 86 | 87 | 88 | 89 | 90 | ;---- Test for space 91 | xor a 92 | call $00D8 93 | and a 94 | jp z,infinite 95 | 96 | ;call replay_pause 97 | ld bc,$0301 98 | call ttsfx_scc_start 99 | ; ld a,0 100 | ; call replay_set_SCC_balance 101 | ; ld de,-2 102 | ; call replay_transpose 103 | ; ld a,32 104 | ; call replay_fade_out 105 | ; call replay_pause 106 | ; wait_key_release 107 | 99: 108 | xor a 109 | call $00D8 110 | and a 111 | jp nz,99b 112 | 113 | jp infinite 114 | 115 | 116 | 117 | isr: 118 | in a,(0x99) 119 | call replay_route ; first outout data 120 | call replay_play ; calculate next output 121 | call ttsfx_play 122 | ret 123 | 124 | 125 | 126 | include "..\code\ttreplay.asm" 127 | include "..\code\ttreplayDAT.asm" 128 | include "..\ttsfxplay\ttsfxplay.asm" 129 | ttsfx_waveforms: 130 | 131 | 132 | demo_song: 133 | include ".\demosong.asm" 134 | 135 | sfx_PSG_STREAMS: 136 | sfx_SCC_STREAMS: 137 | dw sfx1 138 | dw sfx2 139 | dw sfx3 140 | dw sfx4 141 | dw sfx5 142 | 143 | 144 | 145 | sfx1: 146 | db 4*8 147 | incbin "..\ttsfxplay\sfx\menu1.afx" 148 | sfx2: 149 | db 2*8 150 | incbin "..\ttsfxplay\sfx\menu2.afx" 151 | sfx3: 152 | db 3*8 153 | incbin "..\ttsfxplay\sfx\menu3.afx" 154 | sfx4: 155 | db 5*8 156 | incbin "..\ttsfxplay\sfx\menu4.afx" 157 | sfx5: 158 | db 6*8 159 | incbin "..\ttsfxplay\sfx\menu5.afx" 160 | 161 | 162 | 163 | map 0xc000 164 | include "..\code\ttreplayRAM.asm" 165 | include "..\ttsfxplay\ttsfxplay_RAM.asm" 166 | pattern #1 167 | -------------------------------------------------------------------------------- /TTplayer/example/main_asMSX.asm: -------------------------------------------------------------------------------- 1 | ; ----------------------------- 2 | ; TT-replayer example 3 | ; 4 | ; This example plays compiled PSG+SCC songs 5 | ; ------------------------------ 6 | .bios 7 | .page 1 8 | .rom 9 | .start initmain 10 | .dw 0,0,0,0,0,0 11 | 12 | initmain: 13 | 14 | ei 15 | halt 16 | di 17 | 18 | ;; set pages and subslot 19 | ;; 20 | call 0x138 21 | rrca 22 | rrca 23 | and 0x03 24 | ld c,a 25 | ld b,0 26 | ld hl,0xfcc1 27 | add hl,bc 28 | or [hl] 29 | ld b,a 30 | inc hl 31 | inc hl 32 | inc hl 33 | inc hl 34 | ld a,[hl] 35 | and 0x0c 36 | or b 37 | 38 | ld h,0x80 39 | call 0x24 40 | 41 | ;clear RAM [first kb only] 42 | ld bc,1024 43 | ld hl,0xc000 44 | ld de,0xc001 45 | 46 | ld [hl],0 47 | ldir 48 | 49 | ;--- place replayer on hook 50 | ld a,0xc3 51 | ld hl,isr 52 | ld [0xFD9A],a 53 | ld [0xFD9B],hl 54 | 55 | ;--- initialise replayer 56 | call replay_init 57 | 58 | ;--- initialise demo song 59 | ld hl,demo_song 60 | call replay_loadsong 61 | 62 | ei 63 | 64 | xor a 65 | ld [pattern],a 66 | 67 | 68 | infinite: 69 | halt 70 | ;---- Test for space 71 | xor a 72 | call $00D8 73 | and a 74 | jp z,infinite 75 | 76 | ; ld a,0 77 | ; call replay_set_SCC_balance 78 | ; ld de,-2 79 | ; call replay_transpose 80 | ld a,32 81 | call replay_fade_out 82 | ; call replay_pause 83 | ; wait_key_release 84 | @@loop: 85 | xor a 86 | call $00D8 87 | and a 88 | jp nz,@@loop 89 | 90 | jp infinite 91 | 92 | 93 | 94 | isr: 95 | in a,[0x99] 96 | call replay_route ; first outout data 97 | call replay_play ; calculate next output 98 | ret 99 | 100 | 101 | 102 | .INCLUDE "..\code\ttreplay_asMSX.asm" 103 | .INCLUDE "..\code\ttreplayDAT_asMSX.asm" 104 | demo_song: 105 | .INCLUDE ".\demosong_asMSX.asm" 106 | 107 | ; map 0xc000 108 | .PAGE 3 109 | 110 | .INCLUDE "..\code\ttreplayRAM_asMSX.asm" 111 | pattern: .ds 1 112 | -------------------------------------------------------------------------------- /TTplayer/example/main_asMSX.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/example/main_asMSX.rom -------------------------------------------------------------------------------- /TTplayer/example/main{SCC}.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/example/main{SCC}.rom -------------------------------------------------------------------------------- /TTplayer/example/make.bat: -------------------------------------------------------------------------------- 1 | REM asmsx main.asm 2 | sjasm -s main.asm main{SCC}.rom 3 | 4 | pause -------------------------------------------------------------------------------- /TTplayer/example/make_asMSX.bat: -------------------------------------------------------------------------------- 1 | asmsx main_asMSX.asm 2 | 3 | 4 | pause -------------------------------------------------------------------------------- /TTplayer/example/usas.tmu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/example/usas.tmu -------------------------------------------------------------------------------- /TTplayer/example/voltable_combined.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/example/voltable_combined.bin -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu1.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu1.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu2.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu2.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu3.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu3.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu4.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu4.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu5.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu5.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu6.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu6.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu7.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu7.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/sfx/menu8.afx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TTplayer/ttsfxplay/sfx/menu8.afx -------------------------------------------------------------------------------- /TTplayer/ttsfxplay/ttsfxplay_RAM.asm: -------------------------------------------------------------------------------- 1 | ; --- TT sfx player v0.1 --- 2 | 3 | ; --- THIS FILE MUST BE COMPILED IN RAM --- 4 | 5 | sfx_PSG_PRIORITY: #1 ; Current sfx_PSG stream priority 6 | sfx_PSG_POINTER: #2 ; Pointer to the current sfx_PSG stream 7 | sfx_PSG_TONE: #2 ; Current tone of the sfx_PSG stream 8 | sfx_PSG_NOISE: #1 ; Current noise of the sfx_PSG stream 9 | sfx_PSG_VOLUME: #1 ; Current volume of the sfx_PSG stream 10 | sfx_PSG_BALANCE: #2 ; Pointer to the volume table 11 | 12 | sfx_SCC_PRIORITY: #1 ; Current sfx_SCC stream priority 13 | sfx_SCC_POINTER: #2 ; Pointer to the current sfx_SCC stream 14 | sfx_SCC_TONE: #2 ; Current tone of the sfx_SCC stream 15 | sfx_SCC_WAVE: #1 ; Current waveform of the sfx_SCC stream 16 | sfx_SCC_VOLUME: #1 ; Current volume of the sfx_SCC stream 17 | sfx_SCC_BALANCE: #2 ; Pointer to the volume table 18 | 19 | 20 | -------------------------------------------------------------------------------- /TriloTracker-Re-player-0.3.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/TriloTracker-Re-player-0.3.1.zip -------------------------------------------------------------------------------- /URD2/anim_opt.asm: -------------------------------------------------------------------------------- 1 | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; test code to move a marker 4 | ; 5 | ; returns 6 | ; d = dx 7 | ; e = dy 8 | 9 | movemarker: 10 | ld a,(joystick) 11 | ld l,a 12 | 13 | bit 7,l 14 | jr nz,notright 15 | ld a,(_xtest) 16 | add a,16 17 | cp 240 18 | jr z,1f 19 | ld (_xtest),a 20 | jr 1f 21 | notright: 22 | bit 4,l 23 | jr nz,1f 24 | ld a,(_xtest) 25 | sub a,16 26 | jr z,1f 27 | ld (_xtest),a 28 | 1: 29 | ld a,(_xtest) 30 | ld d,a 31 | 32 | bit 5,l 33 | jr nz,notup 34 | ld a,(_ytest) 35 | sub a,16 36 | jp c,1f 37 | ld (_ytest),a 38 | jr 1f 39 | notup: 40 | bit 6,l 41 | jr nz,1f 42 | ld a,(_ytest) 43 | add a,16 44 | cp 10*16 45 | jr z,1f 46 | ld (_ytest),a 47 | 1: 48 | ld a,(_ytest) 49 | ld e,a 50 | ret 51 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 52 | 53 | animtest: 54 | ld a,(anim_buffer.flag) 55 | and a 56 | jr nz,.manage_buffer 57 | 58 | ld a,(_xoffset) 59 | [4] add a,a 60 | ld h,a 61 | 62 | 63 | ld a,(_xspeed+1) 64 | rlc a 65 | jp c,.scroll_left 66 | 67 | .scroll_right: 68 | ld a,(_xoffset) 69 | cp 15 70 | jr nz,.noexceptionr 71 | call test_change_page ; if xoffset=15 test for page swap 72 | jp nz,.intercept_right ; if page swap intercetp 73 | .noexceptionr 74 | call movemarker 75 | ld a,e 76 | ld (anim_buffer.dy),a 77 | 78 | ld a,h 79 | cp d 80 | jp c,single_move 81 | 82 | ld a,d 83 | sub a,16 84 | ld (anim_buffer.dx),a 85 | jr 1f 86 | 87 | .scroll_left: 88 | ld a,(_xoffset) 89 | and a 90 | jr nz,.noexceptionl 91 | call test_change_page ; if xoffset=0 test for page swap 92 | jp nz,.intercept_left ; if page swap intercetp 93 | .noexceptionl 94 | call movemarker 95 | ld a,e 96 | ld (anim_buffer.dy),a 97 | 98 | ld a,d 99 | cp h 100 | jp c,single_move 101 | 102 | ld a,d 103 | add a,16 104 | ld (anim_buffer.dx),a 105 | 1: 106 | ld a,(_displaypage) ; destination page 107 | ld b,a 108 | xor 1 109 | ld (anim_buffer.page),a 110 | 111 | ld a,15 112 | ld (anim_buffer.flag),a 113 | 114 | ld a,(_xoffset) 115 | and 15 116 | ld (anim_buffer.tile),a 117 | 118 | jp move_tile 119 | .intercept_right: 120 | call movemarker 121 | 122 | ld a,(_displaypage) ; destination page 123 | xor 1 124 | ld b,a 125 | ld a,(_xoffset) 126 | and 15 127 | jp move_tile 128 | 129 | .intercept_left: 130 | 131 | 132 | ret 133 | 134 | .manage_buffer: 135 | xor a 136 | ld (anim_buffer.flag),a 137 | 138 | ld a,(anim_buffer.dy) 139 | ld e,a 140 | 141 | ld a,(anim_buffer.dx) 142 | ld d,a 143 | 144 | ld a,(anim_buffer.page) 145 | ld b,a 146 | 147 | ld a,(anim_buffer.tile) 148 | jp move_tile 149 | 150 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 151 | 152 | 153 | test_change_page: 154 | ld hl,(_xmappos) ; corner top left of the screen window in the map in pixels 155 | ld a,(_displaypage) 156 | ld h,a 157 | ld a,16 158 | and l 159 | jr z,1f 160 | ld a,1 161 | 1: xor h 162 | ret ; Z if there is no page change 163 | ; NZ if page changed 164 | 165 | 166 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 167 | single_move: 168 | ld a,(_displaypage) ; destination page 169 | ld b,a 170 | ld a,(_xoffset) 171 | and 15 172 | jp move_tile 173 | 174 | -------------------------------------------------------------------------------- /URD2/bat.bat: -------------------------------------------------------------------------------- 1 | cmd /K compila.bat -------------------------------------------------------------------------------- /URD2/checkkbd.asm: -------------------------------------------------------------------------------- 1 | 2 | ; // Line Bit_7 Bit_6 Bit_5 Bit_4 Bit_3 Bit_2 Bit_1 Bit_0 3 | ; // 0 "7" "6" "5" "4" "3" "2" "1" "0" 4 | ; // 1 ";" "]" "[" "\" "=" "-" "9" "8" 5 | ; // 2 "B" "A" ??? "/" "." "," "'" "`" 6 | ; // 3 "J" "I" "H" "G" "F" "E" "D" "C" 7 | ; // 4 "R" "Q" "P" "O" "N" "M" "L" "K" 8 | ; // 5 "Z" "Y" "X" "W" "V" "U" "T" "S" 9 | ; // 6 F3 F2 F1 CODE CAP GRAPH CTRL SHIFT 10 | ; // 7 RET SEL BS STOP TAB ESC F5 F4 11 | ; // 8 RIGHT DOWN UP LEFT DEL INS HOME SPACE 12 | 13 | checkkbd: 14 | ; di 15 | in a,(0aah) 16 | and 011110000B ; upper 4 bits contain info to preserve 17 | or e 18 | out (0aah),a 19 | in a,(0a9h) 20 | ld l,a 21 | ; ei 22 | ret 23 | -------------------------------------------------------------------------------- /URD2/compila.bat: -------------------------------------------------------------------------------- 1 | sjasm.exe -s main.asm 2 | 3 | 4 | 5 | 6 | "C:\Program Files (x86)\openMSX\openmsx.exe" urd2.rom -------------------------------------------------------------------------------- /URD2/datamap.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/datamap.bin -------------------------------------------------------------------------------- /URD2/fonts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/fonts.bin -------------------------------------------------------------------------------- /URD2/fsmscroll.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | xscroll: 4 | ld a,(_xoffset) ; set R#18 5 | 6 | add a,-8 7 | and 0Fh 8 | out (099h),a 9 | ld a,18+128 10 | out (099h),a 11 | 12 | ret 13 | 14 | pageswap: 15 | 16 | ld a,(_displaypage) 17 | and a 18 | ld a,00011111B ; page 0 19 | jr z,1f 20 | ld a,00111111B ; page 1 21 | 1: out (0x99),a 22 | ld a,2+128 23 | out (0x99),a 24 | ret 25 | 26 | 27 | set_displaypage: 28 | ld hl,(_xmappos) ; corner top left of the screen window in the map in pixels 29 | ld a,15 30 | and l 31 | ld (_xoffset),a ; screen offset 32 | 33 | ld a,(_displaypage) 34 | ld h,a 35 | 36 | ld a,16 37 | and l 38 | 39 | jr z,1f 40 | 41 | ld a,1 42 | 43 | 1: ld (_displaypage),a 44 | xor h 45 | ret z 46 | ld (_sliceflag_reset),a ; page has changed ! 47 | ret 48 | 49 | reset_sliceflag: 50 | ld a,(_sliceflag_reset) 51 | and a 52 | ret z ; _sliceflag_reset testing 53 | 54 | exx ; clear _sliceflag and _sliceflag_reset 55 | ld bc,16 56 | ld hl,_sliceflag 57 | ld de,_sliceflag+1 58 | ld (hl),b 59 | ldir 60 | exx 61 | ret 62 | 63 | 64 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 65 | ; test code to move a marker 66 | ; 67 | ; returns 68 | ; _xspeed change pressing right and left 69 | 70 | changespeed: 71 | ld a,(keys0_7) 72 | ld l,a 73 | 74 | bit 2,l ; press 2 for right 75 | jr nz,.notright 76 | 77 | ld hl,(_xspeed) 78 | ld a,h 79 | dec h 80 | ret p ; if hl>1.0 exit 81 | inc hl 82 | inc h 83 | ld (_xspeed),hl 84 | xor h 85 | and 128 ;dir change neg to pos 86 | ld (_dxchng),a ; direction has changed ! 87 | ret z 88 | ld (_sliceflag_reset),a ; reset slice flags 89 | ret 90 | 91 | .notright: 92 | bit 1,l ; press 1 for left 93 | ret nz 94 | 95 | ld hl,(_xspeed) 96 | ld a,h 97 | dec hl 98 | inc h 99 | ret m ; if hl<-1.0 exit 100 | dec h 101 | ld (_xspeed),hl 102 | xor h 103 | and 128 ;dir change neg to pos 104 | ld (_dxchng),a ; direction has changed ! 105 | ret z 106 | ld (_sliceflag_reset),a ; reset slice flags 107 | ret 108 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 109 | 110 | changexpos: 111 | ld de,(_xspeed) 112 | ld a,(_xmappos+2) 113 | add a,e 114 | ld (_xmappos+2),a 115 | ld e,d 116 | bit 7,d 117 | ld d,0 118 | jr z,1f 119 | ld d,-1 120 | 1: ld hl,(_xmappos) 121 | adc hl,de 122 | ld a,h 123 | and 15 124 | ld h,a 125 | ld (_xmappos),hl ; scroll one pixel right 126 | ret 127 | 128 | -------------------------------------------------------------------------------- /URD2/header.asm: -------------------------------------------------------------------------------- 1 | 2 | // MSX 1 3 | RG0SAV equ 0xF3DF 4 | RG1SAV equ 0xF3E0 5 | RG2SAV equ 0xF3E1 6 | RG3SAV equ 0xF3E2 7 | RG4SAV equ 0xF3E3 8 | RG5SAV equ 0xF3E4 9 | RG6SAV equ 0xF3E5 10 | RG7SAV equ 0xF3E6 11 | // MSX 2 12 | RG8SAV equ 0xFFE7 13 | RG9SAV equ 0xFFE8 14 | RG10SAV equ 0xFFE9 15 | RG11SAV equ 0xFFEA 16 | RG12SAV equ 0xFFEB 17 | RG13SAV equ 0xFFEC 18 | RG14SAV equ 0xFFED 19 | RG15SAV equ 0xFFEE 20 | RG16SAV equ 0xFFEF 21 | RG17SAV equ 0xFFF0 22 | RG18SAV equ 0xFFF1 23 | RG19SAV equ 0xFFF2 24 | RG20SAV equ 0xFFF3 25 | RG21SAV equ 0xFFF4 26 | RG22SAV equ 0xFFF5 27 | RG23SAV equ 0xFFF7 28 | 29 | _jiffy: equ 0xFC9E 30 | 31 | 32 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 33 | 34 | max_enem: equ 12 ; max 12 35 | max_enem_bullets: equ 3 36 | max_bullets: equ 2 ; max number of enemies*2 + ms_bullets + enem_bullets + 3 for ms <= 32 sprites 37 | 38 | maxspeed: equ 4 ; the actual speed is divided by 4 39 | assault_wave_timer_preset: equ 3*60 ; a wave each 3 seconds 40 | enemy_bullet_speed: equ 2 41 | xship_rel: equ (128-8) 42 | 43 | mapWidth equ 256 44 | mapHeight equ 10 45 | YSIZE equ 10*16 46 | 47 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 48 | debug equ 0 49 | 50 | macro setpage_a 51 | ld (_kBank3),a 52 | inc a 53 | ld (_kBank4),a 54 | endmacro 55 | 56 | macro bdrclr n 57 | if debug 58 | ifdif n,0 59 | ld a,n 60 | else 61 | xor a 62 | endif 63 | out (0x99),a 64 | ld a,7+128 65 | out (0x99),a 66 | endif 67 | endmacro 68 | 69 | macro set_tile reg 70 | ld a,reg 71 | [3] rlca 72 | and 00000111B 73 | add a,:_tiles0 74 | ld (_kBank4),a ; select tile bank 75 | 76 | ld a,reg 77 | and 00011111B 78 | add a,high _tiles0 79 | endmacro 80 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 81 | -------------------------------------------------------------------------------- /URD2/intro/SAT64TEST.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/intro/SAT64TEST.rom -------------------------------------------------------------------------------- /URD2/intro/SAT64TEST.sym: -------------------------------------------------------------------------------- 1 | _kBank1: equ 00005000h 2 | _kBank2: equ 00007000h 3 | _kBank3: equ 00009000h 4 | _kBank4: equ 0000B000h 5 | CGTABL: equ 00000004h 6 | MAX_SPRITES: equ 00000040h 7 | SPRTBL: equ 00003800h 8 | SPRATR: equ 00001B00h 9 | SATor64: equ 00005B00h 10 | SPR_Y_NODRAW: equ 000000D1h 11 | SPRITE_Y: equ 00000000h 12 | SPRITE_X: equ 00000001h 13 | SPRITE_INDEX: equ 00000002h 14 | SPRITE_COLOR: equ 00000003h 15 | START: equ 00004010h 16 | screeninit: equ 0000402Bh 17 | addsprite: equ 0000404Dh 18 | DRAW_SPRITES: equ 00004089h 19 | sat_reset: equ 0000409Ch 20 | INSERT_SPRITE: equ 000040A7h 21 | WRITESAT: equ 000040D2h 22 | ws1b: equ 000040F1h 23 | ws2f: equ 000040FBh 24 | revWRITESAT: equ 00004100h 25 | rw1b: equ 00004126h 26 | rw2f: equ 00004131h 27 | checkkbd: equ 00004136h 28 | amod: equ 00004141h 29 | lmod: equ 00004146h 30 | ldiv: equ 0000414Bh 31 | adiv: equ 00004150h 32 | dv1: equ 0000415Bh 33 | dv8: equ 00004163h 34 | dv6: equ 00004172h 35 | dv2: equ 00004177h 36 | dv4: equ 0000417Eh 37 | dv5: equ 00004189h 38 | dv3: equ 0000418Bh 39 | negif: equ 000041A3h 40 | negat: equ 000041A6h 41 | sqr: equ 000041AFh 42 | tab: equ 000041C1h 43 | sqrt: equ 000043C1h 44 | Div16: equ 00004439h 45 | Mul24: equ 00004456h 46 | UsignedMul: equ 0000446Dh 47 | temp01: equ 0000F67Ah 48 | temp02: equ 0000F67Ch 49 | ENEMY_Y: equ 00000000h 50 | ENEMY_Y_SUB: equ 00000001h 51 | ENEMY_X: equ 00000002h 52 | ENEMY_X_SUB: equ 00000003h 53 | ENEMY_SPRITE: equ 00000004h 54 | ENEMY_COLOR: equ 00000005h 55 | m_iP1Y: equ 000044A3h 56 | m_iP1X: equ 000044A5h 57 | _NPC_y: equ 00000000h 58 | _NPC_x: equ 00000002h 59 | _NPC_dy: equ 00000003h 60 | _NPC_ddy: equ 00000004h 61 | _NPC_dx: equ 00000005h 62 | _NPC_ddx: equ 00000006h 63 | myX: equ 000044A3h 64 | myY: equ 000044A5h 65 | cos_a: equ 000000F7h 66 | sin_a: equ 00000042h 67 | m_iSprAtr: equ 0000C000h 68 | ram_count: equ 0000C100h 69 | m_iSprDrawFrame: equ 0000C101h 70 | m_iNumSpr: equ 0000C102h 71 | m_iSprAtrPointer: equ 0000C103h 72 | ramdata: equ 0000C105h 73 | -------------------------------------------------------------------------------- /URD2/intro/TOTALRAS.ASM: -------------------------------------------------------------------------------- 1 | output "TOTALRAS.rom" 2 | 3 | defpage 0,0x4000, 0x2000 ; page 0 main code 4 | defpage 1,0x6000, 0x2000 ; page 1 5 | defpage 2..7 ; swapped data 6 | 7 | ; konami scc 8 | 9 | _kBank1: equ 05000h ;- 57FFh (5000h used) 10 | _kBank2: equ 07000h ;- 77FFh (7000h used) 11 | _kBank3: equ 09000h ;- 97FFh (9000h used) 12 | _kBank4: equ 0B000h ;- B7FFh (B000h used) 13 | 14 | page 0 15 | 16 | org 4000h 17 | dw 4241h,START,0,0,0,0,0,0 18 | 19 | screeninit: 20 | ld a,8 21 | call 005fh 22 | ld hl,0h 23 | call 0053h 24 | 25 | ld de,256*:_opening+7 26 | 27 | outvram: 28 | 2: ld a,d 29 | ld (_kBank2),a 30 | ld hl,0x6000 31 | 32 | ld bc,0x98 33 | ld a,32 34 | 1: otir 35 | dec a 36 | jp nz,1b 37 | inc d 38 | dec e 39 | jr nz,2b 40 | 41 | ld e,256-212 42 | ld b,0 43 | xor a 44 | 1: out (0x98),a 45 | djnz 1b 46 | dec e 47 | jr nz,1b 48 | ret 49 | 50 | 51 | 52 | 53 | START: 54 | call screeninit 55 | 56 | di 57 | ld a,#97 58 | out (#99),a 59 | ld a,#91 60 | out (#99),a 61 | ei 62 | 63 | halt ; allow ISR 64 | 65 | ld de,sintab 66 | 1: call raster_wave 67 | call #009c 68 | jr z,1b 69 | inc de 70 | ld hl,-(endsintab-212) 71 | adc hl,de 72 | jr nz,1b 73 | ret 74 | ;S#2 75 | ;b6 VR: Vertical scanning line timing flag 76 | ; During vertical scanning, this flag is set to 1. 77 | 78 | ;b5 HR: Horizontal scanning line timing flag 79 | ; During horizontal scanning, this flag is set to 1. 80 | 81 | raster_wave: 82 | di 83 | ld a,#02 84 | out (#99),a 85 | ld a,#8f 86 | out (#99),a 87 | 88 | 89 | ld c,0x9B 90 | 91 | 1: in a,(#99) ; wait for VR (start of the frame) 92 | bit 6,a 93 | jp nz,1b 94 | 95 | ld h,d 96 | ld l,e 97 | 98 | outi 99 | .loop: 100 | 101 | 1: in a,(#99) ; wait for HR (end of the line) 102 | bit 5,a 103 | jr z,1b 104 | 105 | outi 106 | 107 | bit 6,a ; wait for VR (end of the frame) 108 | jr z,.loop 109 | 110 | 111 | xor a 112 | out (#99),a 113 | ld a,#8f 114 | out (#99),a 115 | ei 116 | ret 117 | 118 | 119 | 120 | sintab: 121 | include rast.txt 122 | endsintab: 123 | page 1 124 | _opening: 125 | incbin "opening.bin",0x0000,0x2000 126 | page 2 127 | incbin "opening.bin",0x2000,0x2000 128 | page 3 129 | incbin "opening.bin",0x4000,0x2000 130 | page 4 131 | incbin "opening.bin",0x6000,0x2000 132 | page 5 133 | incbin "opening.bin",0x8000,0x2000 134 | page 6 135 | incbin "opening.bin",0xA000,0x2000 136 | page 7 137 | incbin "opening.bin",0xC000;,0x2000 138 | ; page 8 139 | ; incbin "opening.bin",0xE000;,,0x2000 140 | 141 | -------------------------------------------------------------------------------- /URD2/intro/TOTALRAS.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/intro/TOTALRAS.rom -------------------------------------------------------------------------------- /URD2/intro/compila_ras.bat: -------------------------------------------------------------------------------- 1 | sjasm.exe -s totalras.asm 2 | 3 | 4 | 5 | 6 | "C:\Program Files (x86)\openMSX\openmsx.exe" TOTALRAS.rom -------------------------------------------------------------------------------- /URD2/intro/compila_sat.bat: -------------------------------------------------------------------------------- 1 | sjasm.exe -s SAT64TEST.asm 2 | 3 | 4 | 5 | 6 | "C:\Program Files (x86)\openMSX\openmsx.exe" SAT64TEST.rom -------------------------------------------------------------------------------- /URD2/intro/npctype2_LINEAR_BULLET.asm: -------------------------------------------------------------------------------- 1 | ; ============================= 2 | ; NPC 2 3 | ; linear bullet 4 | ; Moving to MC 5 | ; ============================= 6 | 7 | 8 | ld a, (ix+_NPC_status) 9 | and a 10 | jp nz, 0f 11 | ;;;;;;;;;;;;;;;;;;;;;;; 12 | ; state 0 13 | ;;;;;;;;;;;;;;;;;;;;;;; 14 | 15 | 16 | ; dx 17 | ld a,(myX) 18 | sub a,(ix+_NPC_x) 19 | ld (ix+_NPC_dx),a 20 | sbc a,a 21 | ld (ix+_NPC_ddx),a ;DDX = HI byte, DX = LO byte 22 | 23 | ; dy 24 | ld a,(myY) 25 | sub a,(ix+_NPC_y) 26 | ld (ix+_NPC_dy),a 27 | sbc a,a 28 | ld (ix+_NPC_ddy),a ;DDY = HI byte, DY = LO byte 29 | 30 | ld a,(ix+_NPC_dx) 31 | bit 7,(ix+_NPC_ddx) 32 | call sqr ;HL=|A|^2 33 | ex de,hl 34 | 35 | ld a,(ix+_NPC_dy) 36 | bit 7,(ix+_NPC_ddy) 37 | call sqr ;HL=|A|^2 38 | add hl,de ;HL = |DX|^2 + |DY|^2 39 | 40 | call sqrt ; D = sqrt(|DX|^2 + |DY|^2) 41 | 42 | push de 43 | ld h,(ix+_NPC_dy) 44 | ld l,0 45 | bit 7,(ix+_NPC_ddy) 46 | call Div16 ; HL = HL /D 47 | add hl,hl ; here to increase bullet speed 48 | ld (ix+_NPC_dy),l 49 | ld (ix+_NPC_ddy),h 50 | 51 | pop de 52 | ld h,(ix+_NPC_dx) 53 | ld l,0 54 | bit 7,(ix+_NPC_ddx) 55 | call Div16 ; HL = HL /D 56 | add hl,hl ; here to increase bullet speed 57 | ld (ix+_NPC_dx),l 58 | ld (ix+_NPC_ddx),h 59 | 60 | ; now we have |dx|^2+|dy|^2=1 61 | 62 | 63 | ld (ix+_NPC_pattern), 0x24 64 | ld (ix+_NPC_color), 15 65 | ld (ix+_NPC_status),1 66 | ld (ix+_NPC_xoffset),6 ;????????? PLACE RIGHT VALUES HERE 67 | ld (ix+_NPC_yoffset),5 68 | ld (ix+_NPC_xsize),4 69 | ld (ix+_NPC_ysize),4 70 | 71 | jp npc_to_sat 72 | 73 | ;;;;;;;;;;;;;;;;;;;;;;; 74 | ; state !=0 75 | ;;;;;;;;;;;;;;;;;;;;;;; 76 | 0: 77 | ; y movement 78 | ld a,(ix+_NPC_y) 79 | add a,32 80 | cp 192+32 ; out of screen? 81 | jp nc,freeNPC 82 | cp 32 83 | jp c,freeNPC 84 | 85 | ld a,(ix+_NPC_fy) 86 | add a,(ix+_NPC_dy) 87 | ld (ix+_NPC_fy),a 88 | 89 | ld a,(ix+_NPC_y) 90 | adc a,(ix+_NPC_ddy) 91 | ld (ix+_NPC_y),a 92 | 93 | 94 | ; x movement 95 | ld a,(ix+_NPC_x) 96 | add a,32 97 | cp 8*24-16+32 ; out of screen? 98 | jp nc,freeNPC 99 | cp 32 100 | jp c,freeNPC 101 | 102 | ld a,(ix+_NPC_fx) 103 | add a,(ix+_NPC_dx) 104 | ld (ix+_NPC_fx),a 105 | 106 | ld a,(ix+_NPC_x) 107 | adc a,(ix+_NPC_ddx) 108 | ld (ix+_NPC_x),a 109 | 110 | ; alternate colors of bullets to catch attention 111 | ld a,(ix+_NPC_color) 112 | xor 8 113 | ld (ix+_NPC_color),a 114 | 115 | 116 | 117 | ;;;;;;;;;;;;;;;;;;;;;;; 118 | ; collision test 119 | ; NPC against SUBWEAP 120 | ;;;;;;;;;;;;;;;;;;;;;;; 121 | call bullet_collision 122 | jp c,swhit 123 | 124 | ;;;;;;;;;;;;;;;;;;;;;;; 125 | ; collision test 126 | ; NPC against MC 127 | ;;;;;;;;;;;;;;;;;;;;;;; 128 | ld iy,myState 129 | call collision ; check for collision 130 | jp nc, npc_to_sat ; no collision.... continue 131 | 132 | mchit: 133 | ld a,1 134 | ld (myState),a 135 | swhit: 136 | jp freeNPC 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /URD2/intro/opening.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/intro/opening.bin -------------------------------------------------------------------------------- /URD2/intro/rast.txt: -------------------------------------------------------------------------------- 1 | db 212,210,208,206,204,202,200,198,196,194,192,190,188,186,184,182,180,178,176,174,172,170,168,166,164,162,160,158,156,154,152,150,148,146,144,142,140,138,136,134,132,130,128,126,124,122,120,118,116,114,112,110,108,106,104,102,100,98,96,94,92,90,88,86,84,82,80,78,76,74,72,70,68,66,64,62,60,58,56,54,52,50,48,46,44,42,40,38,36,34,32,30,28,26,24,22,20,18,16,14,12,10,8,6,4,2,0,254,252,250,248,246,244,242,240,238,236,234,232,230,228,226,224,222,220,218,216,214,212,210,208,206,204,202,200,198,196,194,192,190,188,186,184,182,180,178,176,174,172,170,168,166,164,162,160,158,156,154,152,150,148,146,144,142,140,138,136,134,132,130,128,126,124,122,120,118,116,114,112,110,108,106,104,102,100,98,96,94,92,90,88,86,84,82,80,78,76,74,72,70,68,66,64,62,60,58,56,54,52,50,48,46,44,42,40,38,36,34,32,30,28,26,24,22,20,18,16,14,12,10,8,6,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2 | -------------------------------------------------------------------------------- /URD2/intro/raster.m: -------------------------------------------------------------------------------- 1 | close all 2 | % x = [0:1023]*2*pi/768; 3 | % y = (abs(sin(x*2)./x)).^0.5; 4 | % y(1)=2; 5 | % y = 191*y/max(y); 6 | % y = [ bitand([191:1:(191+192)],255) y]; 7 | % 8 | L = 512; 9 | x = [0:(L-1)]; 10 | 11 | y = (212-2*x); 12 | 13 | y = round(y); 14 | 15 | y(234:end)=0; 16 | 17 | plot(x,y); 18 | hold on; 19 | 20 | i = find(y<0); 21 | 22 | while ~isempty(i) 23 | y(i) = y(i)+256; 24 | i = find(y<0); 25 | end 26 | 27 | y = bitand(y(1:L),255); 28 | 29 | plot(x,y); 30 | grid on; 31 | 32 | fid = fopen('rast.txt','w'); 33 | fprintf(fid,' db '); 34 | fprintf(fid,'%i,',round(y(1:end-1))); 35 | fprintf(fid,'%i ',round(y(end) )); 36 | fprintf(fid,' \n '); 37 | fclose(fid); 38 | -------------------------------------------------------------------------------- /URD2/intro/totalras.sym: -------------------------------------------------------------------------------- 1 | _kBank1: equ 00005000h 2 | _kBank2: equ 00007000h 3 | _kBank3: equ 00009000h 4 | _kBank4: equ 0000B000h 5 | screeninit: equ 00004010h 6 | outvram: equ 0000401Eh 7 | START: equ 00004041h 8 | raster_wave: equ 00004063h 9 | raster_wave.loop: equ 00004079h 10 | sintab: equ 0000408Eh 11 | endsintab: equ 0000428Eh 12 | _opening: equ 00006000h 13 | -------------------------------------------------------------------------------- /URD2/levels/_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/_output.png -------------------------------------------------------------------------------- /URD2/levels/crap/1821_gamemap1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/1821_gamemap1.png -------------------------------------------------------------------------------- /URD2/levels/crap/Untitled.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/Untitled.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/Untitled8x8.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/Untitled8x8.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/lev1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/lev1.png -------------------------------------------------------------------------------- /URD2/levels/crap/lev1_tiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/lev1_tiles.png -------------------------------------------------------------------------------- /URD2/levels/crap/liv1_176.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/liv1_176.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/runningman40x40.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/runningman40x40.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/runningman8x8.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/runningman8x8.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/runningman8x8_attemptedFileRescue1.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/runningman8x8_attemptedFileRescue1.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/test.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test.act -------------------------------------------------------------------------------- /URD2/levels/crap/test.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/test2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test2.bmp -------------------------------------------------------------------------------- /URD2/levels/crap/test2.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test2.pyxel -------------------------------------------------------------------------------- /URD2/levels/crap/test_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test_level.png -------------------------------------------------------------------------------- /URD2/levels/crap/test_level3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test_level3.png -------------------------------------------------------------------------------- /URD2/levels/crap/test_level4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test_level4.png -------------------------------------------------------------------------------- /URD2/levels/crap/test_level5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/test_level5.png -------------------------------------------------------------------------------- /URD2/levels/crap/toni_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/crap/toni_level.png -------------------------------------------------------------------------------- /URD2/levels/lev1.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/lev1.pyxel -------------------------------------------------------------------------------- /URD2/levels/lev1_rev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/lev1_rev.png -------------------------------------------------------------------------------- /URD2/levels/lev2.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/lev2.pyxel -------------------------------------------------------------------------------- /URD2/levels/lev_tst.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/lev_tst.png -------------------------------------------------------------------------------- /URD2/levels/test.pyxel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/levels/test.pyxel -------------------------------------------------------------------------------- /URD2/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/output.png -------------------------------------------------------------------------------- /URD2/test.txt: -------------------------------------------------------------------------------- 1 | ld de,(_xspeed) 2 | ld a,(_xmappos+2) 3 | add a,e 4 | ld (_xmappos+2),a 5 | ld e,d 6 | bit 7,d 7 | ld d,0 8 | jr z,1f 9 | ld d,-1 10 | 1: ld hl,(_xmappos) 11 | adc hl,de 12 | ld a,h 13 | and 15 14 | ld (_xmappos),hl ; scroll one pixel right 15 | -------------------------------------------------------------------------------- /URD2/tiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tiles.bin -------------------------------------------------------------------------------- /URD2/tilesets/16x16_font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tilesets/16x16_font.png -------------------------------------------------------------------------------- /URD2/tilesets/animated.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tilesets/animated.bmp -------------------------------------------------------------------------------- /URD2/tilesets/destructibles.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tilesets/destructibles.bmp -------------------------------------------------------------------------------- /URD2/tilesets/scorebar.m: -------------------------------------------------------------------------------- 1 | clear 2 | close all 3 | 4 | 5 | red = [0, 36, 73, 109, 146, 182, 219, 255]; 6 | green = [0, 36, 73, 109, 146, 182, 219, 255]; 7 | blue = [0, 73, 146, 255]; 8 | 9 | i=1; 10 | for g=0:7 11 | for r=0:7 12 | for b=0:3 13 | pal(i,:) = ([red(r+1) green(g+1) blue(b+1)]/255); 14 | i=i+1; 15 | end 16 | end 17 | end 18 | 19 | [A1,MAP] = imread('test_16x16_font.png'); 20 | 21 | figure 22 | image(A1); 23 | axis equal; 24 | colormap(MAP); 25 | 26 | %[A1,MAP] = imresize(A1,MAP,[192 256], 'lanczos3'); 27 | [A1,MAP] = imapprox(A1,MAP,pal, 'dither'); 28 | 29 | figure 30 | image(A1); 31 | axis equal; 32 | colormap(pal); 33 | 34 | fid = fopen('fonts.bin','wb'); 35 | for y=1:size(A1,1); 36 | t = uint8(A1(y,:)); 37 | fwrite(fid,t,'uchar'); 38 | end 39 | fclose(fid); 40 | % 41 | % [A2,MAP] = imread('graphics\animated.bmp'); 42 | % A2 = imapprox(A2,MAP,pal, 'nodither'); 43 | % MAP = pal; 44 | % 45 | % H = 64; 46 | % W = 256; 47 | % 48 | % B = A2(1:H,1:W); 49 | % 50 | % H = size(B,1); 51 | % W = size(B,2); 52 | % figure 53 | % image(B); 54 | % axis equal; 55 | % colormap(MAP); 56 | % 57 | % fid = fopen('animated.bin','wb'); 58 | % for y=1:H 59 | % t = uint8(B(y,:)); 60 | % fwrite(fid,t,'uchar'); 61 | % end 62 | % fclose(fid); 63 | % 64 | % [A2,MAP] = imread('graphics\scorebar.bmp'); 65 | % A2 = imapprox(A2,MAP,pal, 'nodither'); 66 | % 67 | % MAP = pal; 68 | % 69 | % H = 24; 70 | % W = 256; 71 | % 72 | % B = A2(1:H,1:W); 73 | % 74 | % H = size(B,1); 75 | % W = size(B,2); 76 | % figure 77 | % image(B); 78 | % axis equal; 79 | % colormap(MAP); 80 | % 81 | % fid = fopen('scorebar.bin','wb'); 82 | % for y=1:H 83 | % t = uint8(B(y,:)); 84 | % fwrite(fid,t,'uchar'); 85 | % end 86 | % fclose(fid); 87 | -------------------------------------------------------------------------------- /URD2/tilesets/test_16x16_font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tilesets/test_16x16_font.png -------------------------------------------------------------------------------- /URD2/tilesets/tileset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/tilesets/tileset.png -------------------------------------------------------------------------------- /URD2/urd2.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/URD2/urd2.rom -------------------------------------------------------------------------------- /shooter_scr8_asm/bas/autoexec.bas: -------------------------------------------------------------------------------- 1 | 10 color 15,0,0:screen 8,3 2 | 20 sprite$(0)=string$(32,255):s=0 3 | 30 for y=0 to 212 step 128 4 | 40 for x = 0 to 255 step 32 5 | 50 put sprite s,(x,y),s,0 6 | 60 put sprite s+16,(x,y+32),s,0 7 | 70 s=s+1 8 | 80 next:next 9 | 100 goto 100 10 |  -------------------------------------------------------------------------------- /shooter_scr8_asm/bas/autoexec1.bas: -------------------------------------------------------------------------------- 1 | 10 SCREEN 8,3 2 | 20 COLOR 15,0,0:CLS 3 | 30 SPRITE$(0)=STRING$(32,255) 4 | 40 T=0 5 | 50 FOR J = 0 TO 3 6 | 60 FOR I = 0 TO 3 7 | 70 PUT SPRITE T ,(I*48,J*40),8,0 8 | 80 PUT SPRITE T+1,(I*48+8,J*40),64+2,0 9 | 90 T=T+2 10 | 100 NEXT 11 | 110 NEXT 12 | 120 T=0 13 | 130 FOR I=0 TO 15 14 | 140 COLOR SPRITE$(T) =STRING$(8,T)+STRING$(8,64+T) 15 | 150 COLOR SPRITE$(T+1)=STRING$(8,T+1+64)+STRING$(8,T+1) 16 | 160 T=T+2 17 | 170 NEXT 18 | 180 REM GOTO 180 19 |  -------------------------------------------------------------------------------- /shooter_scr8_asm/bas/autoexec2.bas: -------------------------------------------------------------------------------- 1 | 10 SCREEN 8,3 2 | 20 COLOR 15,0,0:CLS 3 | 30 SPRITE$(0)=STRING$(32,255) 4 | 40 T=0 5 | 50 J = 0 6 | 60 OPEN "GRP:" FOR OUTPUT AS #1 7 | 100 FOR J=0 TO 15 8 | 110 FOR I=0 TO 15 9 | 120 CLS 10 | 121 PUT SPRITE T ,(0,0),8,0 11 | 122 PUT SPRITE T+1,(16,0),64+2,0 12 | 130 COLOR SPRITE$(1)=STRING$(16,J+64) 13 | 140 COLOR SPRITE$(0)=STRING$(16,I) 14 | 150 PSET(0,64):PRINT #1,I,J 15 | 160 A$ = INPUT$(1) 16 | 170 NEXT:NEXT 17 | 180 REM GOTO 180 18 |  -------------------------------------------------------------------------------- /shooter_scr8_asm/bat.bat: -------------------------------------------------------------------------------- 1 | cmd /K compila.bat -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap1.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap10.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap11.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap12.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap13.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap14.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap15.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap16.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap17.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap18.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap19.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap2.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap20.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap21.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap22.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap23.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap24.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap3.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap4.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap5.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap6.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap7.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap8.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/1821_gamemap9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/1821_gamemap9.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_CoreMechSuits.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_CoreMechSuits.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet1_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet1_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet1_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet1_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_DeckGun_and_Hatch.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_DeckGun_and_Hatch.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_DeckGun_and_Hatch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_DeckGun_and_Hatch.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_TileSheet2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_TileSheet2.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet2_TileSheet2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet2_TileSheet2.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet4_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet4_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/U2_Fleet4_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/U2_Fleet4_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/Anikki_square_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/Anikki_square_16x16.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/Fighter_WIP-FullFlip1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/Fighter_WIP-FullFlip1.gif -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/GNG2048x176.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/GNG2048x176.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/HOL_gamemap_Uridium2_20150402_203037.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/HOL_gamemap_Uridium2_20150402_203037.zip -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/NUMBERS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/NUMBERS.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/Stage7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/Stage7.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/anim1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/anim1.gif -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/crap/tumblr_static_bhlbei0winwcsos4wskococ8c.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/crap/tumblr_static_bhlbei0winwcsos4wskococ8c.gif -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/uridium2_lvl6_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/uridium2_lvl6_map.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/uridium_2_fleet_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/uridium_2_fleet_3.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/uridium_2_fleet_3_tmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/uridium_2_fleet_3_tmp.png -------------------------------------------------------------------------------- /shooter_scr8_asm/bmp/uridium_2_lvl_5-8_enemies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/bmp/uridium_2_lvl_5-8_enemies.png -------------------------------------------------------------------------------- /shooter_scr8_asm/compila.bat: -------------------------------------------------------------------------------- 1 | sjasm.exe -s main.asm 2 | 3 | -------------------------------------------------------------------------------- /shooter_scr8_asm/databin/animated.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/databin/animated.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/databin/datamap.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/databin/datamap.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/databin/opening.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/databin/opening.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/databin/scorebar.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/databin/scorebar.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/databin/tiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/databin/tiles.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/_enemies_scr8_clr.bin: -------------------------------------------------------------------------------- 1 | NNHJHFNNJNNNHJHFNNJNNLNFMHFNJFNHNNHNNFFJJNFNHNNHNNFFJJNFHNHHHNHHHHMBHHNHHHNHHHHMBHHHNHHNHHHNHHHNHHNHHHHHHHNHNNHLJ 2 | HJHHHNHNNHLJ 3 | HJHHHHHHHFFDKHHHHHHFFDKEFHNEEFHHEEHNHNNNHNNNNNNNHNNNHNNNFFHHNNNNNNNFHHNNNNNNNFNNNHNNNFFNNNNNNNHHNHNNNH -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/_enemies_scr8_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/_enemies_scr8_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/convert_line2.m: -------------------------------------------------------------------------------- 1 | 2 | function [s1,s2,c1,c2] = convert_line2(line,MAP,sprtpalrgb) 3 | 4 | %line = 1+ double([17 17 17 13 13 13 13 13 13 13 10 17 17 17 17 17]); 5 | 6 | % green red blue 7 | % sprtpalgrb = [ 0 0 0 8 | % 0 0 2 9 | % 0 3 0 10 | % 0 3 2 11 | % 3 0 0 12 | % 3 0 2 13 | % 3 3 0 14 | % 3 3 2 15 | % 4 7 2 16 | % 0 0 7 17 | % 0 7 0 18 | % 0 7 7 19 | % 7 0 0 20 | % 7 0 7 21 | % 7 7 0 22 | % 7 7 7]; 23 | % 24 | % sprtpalrgb = sprtpalgrb(:,[2 1 3])/7; 25 | % MAP = sprtpalrgb; 26 | % MAP(18,:) = [6 0 6]/7; 27 | 28 | e = inf; 29 | for c1=0:15 30 | for c2=(c1+1):15 31 | pal = [MAP(18,:); sprtpalrgb(1+[c1, c2, bitor(c1,c2)],:)]; 32 | m = imapprox(line,MAP,pal, 'nodither'); 33 | ne = sum(sum((MAP(line,:) - pal(1+m,:)).^2)); 34 | 35 | if (ne0; 38 | s2 = ((m==2)+(m==3))>0; 39 | mc1 = c1; 40 | if any(any(m==3)) 41 | mc2 = c2+64; 42 | else 43 | mc2 = c2; 44 | end 45 | end 46 | end 47 | end 48 | c1 = mc1; 49 | c2 = mc2; 50 | % s1 51 | % s2 52 | % c1 53 | % c2 54 | 55 | return -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/enemies.act -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/enemies.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies_clr.bin: -------------------------------------------------------------------------------- 1 | NHJHHJHNFBEEFFNNHJHHJHNFBEEFFNJHNIJHHLF 2 | JHHJHNIJHHLF 3 | JHHHNHNNHNNFFFHNFHNHNNHNNFFFHNFNHJJJJHHFBEEENNHJJJJHHFBEEENHHHHJHHHHHHJHHEFFEFFHHHHHHHNFFHHHHFHHHHHHHNFFHHHHFHJJNNHJJNNNNNNNNNNNNNNNNNNNHHNNNFFHNNNNNNNNFHNNNNNNNNFNNHHNNNFFNNNNNNNNNNNNNNN -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/enemies_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies_scr8_clr.bin: -------------------------------------------------------------------------------- 1 | HHFEFNEHHHFEFNEHFHFFNFFEHFNNJFNHNNHNNFFFNFNHNNHNNFFFNFHFNJ 2 | FNFHDJEHHFNJ 3 | FNFHDJEHHHJNHHNHHFNHHHNHHNHHFHJHJNJFLJ 4 | HJHJHJJHHEJHHJHHHHHHHNFFHFHHHHHHNFFHFEFHNMEEFFHHFJENNNNNNNJNNNNNNNNNNNJJNNJFFHFNNNJNNNJFHFNNNJNNNJFNNJJNNJFFJNNNNNNNNNNNNNNNN -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/enemies_scr8_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/enemies_scr8_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/enemies_comp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/enemies_comp.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/enemies_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/enemies_org.png -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/enemies_scr8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/enemies_scr8.png -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/sprites.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/sprites.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/sprites.png -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/sprites_128.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/sprites_128.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/uridium_rev7.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/uridium_rev7.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/uridium_rev8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/uridium_rev8.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/grpx/uridium_revA.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/grpx/uridium_revA.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/main.lst: -------------------------------------------------------------------------------- 1 | Sjasm Z80 Assembler v0.42c - www.xl2s.tk [2015.05.25 - 23:40:57] 2 | 3 | main.asm 4 | Errors: 1 5 | 6 | Error opening file: main.asm 7 | 8 | LABELS 9 | ------------------------------------------------- 10 | 11 | 12 | Output: main.out 13 | ------------------------------------------------- 14 | 15 | Page: 00 16 | Org: 00000000 Size: * Used: 00000000 17 | 18 | No output 19 | -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/main.sym: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/main.sym -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/palette.txt: -------------------------------------------------------------------------------- 1 | ;Green 2 | 0 0 0 0 3 | 0 0 0 0 4 | 0 0 0 0 5 | 0 0 0 0 6 | 0 1 1 3 7 | 0 1 1 3 8 | 0 1 1 3 9 | 0 1 1 3 10 | 1 0 0 4 11 | 0 0 0 0 12 | 0 0 0 0 13 | 0 0 0 0 14 | 1 1 1 7 15 | 1 1 1 7 16 | 1 1 1 7 17 | 1 1 1 7 18 | ;Red 19 | 0 0 0 0 20 | 0 0 0 0 21 | 0 1 1 3 22 | 0 1 1 3 23 | 0 0 0 0 24 | 0 0 0 0 25 | 0 1 1 3 26 | 0 1 1 3 27 | 1 1 1 7 28 | 0 0 0 0 29 | 1 1 1 7 30 | 1 1 1 7 31 | 0 0 0 0 32 | 0 0 0 0 33 | 1 1 1 7 34 | 1 1 1 7 35 | ;Blue 36 | 0 0 0 0 37 | 0 1 0 2 38 | 0 0 0 0 39 | 0 1 0 2 40 | 0 0 0 0 41 | 0 1 0 2 42 | 0 0 0 0 43 | 0 1 0 2 44 | 0 1 0 2 45 | 1 1 1 7 46 | 0 0 0 0 47 | 1 1 1 7 48 | 0 0 0 0 49 | 1 1 1 7 50 | 0 0 0 0 51 | 1 1 1 7 52 | 53 | 0 0 0 54 | 0 0 2 55 | 0 3 0 56 | 0 3 2 57 | 3 0 0 58 | 3 0 2 59 | 3 3 0 60 | 3 3 2 61 | 4 7 2 62 | 0 0 7 63 | 0 7 0 64 | 0 7 7 65 | 7 0 0 66 | 7 0 7 67 | 7 7 0 68 | 7 7 7 -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/put_ms_sprt.asm: -------------------------------------------------------------------------------- 1 | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; 4 | ; manage SAT entries of the main ship 5 | ; 6 | 7 | put_ms_sprt: 8 | ld a,(ms_state) 9 | cp ms_explode 10 | jr z,.expl 11 | ; manage SAT entries of the main ship 12 | ld hl,ram_sat 13 | ld a,(yship) 14 | dec a 15 | ld (hl),a 16 | inc hl 17 | ld a,(_xoffset) ; compensate R#18 18 | add a,xship_rel 19 | ld (hl),a 20 | inc hl 21 | ld (hl),0 ; shape 0 hard wired 22 | ; ld (hl),64 ; shape 0 hard wired 23 | inc hl 24 | ld (hl),15 25 | inc hl 26 | 27 | ld a,(yship) 28 | dec a 29 | ld (hl),a 30 | inc hl 31 | ld a,(_xoffset) ; compensate R#18 32 | add a,xship_rel 33 | ld (hl),a 34 | inc hl 35 | ld (hl),4 ; shape 4 hard wired 36 | ; ld (hl),64+4 ; shape 4 hard wired 37 | ld c,a 38 | inc hl 39 | ld (hl),7 40 | inc hl 41 | 42 | ld a,(yship) 43 | add a,16-1 44 | ld (hl),a 45 | inc hl 46 | ld a,(_xoffset) ; compensate R#18 47 | add a,xship_rel+16 48 | ld (hl),a 49 | inc hl 50 | ld (hl),8 ; shape 8 hard wired 51 | ; ld (hl),64+4 ; shape 8 hard wired 52 | inc hl 53 | ld (hl),1 54 | ret 55 | .expl: 56 | ; manage SAT entries of the main ship 57 | ld hl,ram_sat 58 | ld a,(yship) 59 | ld (hl),a 60 | inc hl 61 | ld a,(_xoffset) ; compensate R#18 62 | add a,xship_rel 63 | ld (hl),a 64 | inc hl 65 | ld (hl),0 ; shape 0 hard wired 66 | inc hl 67 | ; ld (hl),10 68 | inc hl 69 | 70 | ld a,(yship) 71 | ld (hl),a 72 | inc hl 73 | ld a,(_xoffset) ; compensate R#18 74 | add a,xship_rel 75 | ld (hl),a 76 | inc hl 77 | ld (hl),4 ; shape 4 hard wired 78 | ld c,a 79 | inc hl 80 | ; ld (hl),11 81 | inc hl 82 | 83 | ld a,(yship) 84 | ld (hl),a 85 | inc hl 86 | ld a,(_xoffset) ; compensate R#18 87 | add a,xship_rel 88 | ld (hl),a 89 | inc hl 90 | ld (hl),8 ; shape 8 hard wired 91 | ; inc hl 92 | ; ld (hl),6 93 | ret 94 | 95 | .landing: 96 | ld hl,ram_sat+4*2 97 | ld a,(yship) 98 | dec a 99 | ld (hl),a 100 | inc hl 101 | ld a,(xmap) 102 | ld d,a 103 | ld a,(xship) 104 | sub a,d 105 | ld (hl),a ; xship_rel 106 | inc hl 107 | ld (hl),0 ; shape 0 hard wired 108 | inc hl 109 | ld (hl),15 110 | 111 | ld de,-7 112 | add hl,de 113 | 114 | ld a,(yship) 115 | dec a 116 | ld (hl),a 117 | inc hl 118 | ld a,(xmap) 119 | ld d,a 120 | ld a,(xship) 121 | sub a,d 122 | ld (hl),a ; xship_rel 123 | inc hl 124 | ld (hl),4 ; shape 4 hard wired 125 | ld c,a 126 | inc hl 127 | ld (hl),7 128 | 129 | ld de,-7 130 | add hl,de 131 | 132 | ld a,(yship) 133 | add a,b 134 | ld (hl),a 135 | inc hl 136 | 137 | ld a,(xmap) 138 | ld d,a 139 | ld a,(xship) 140 | sub a,d 141 | add a,b 142 | ld (hl),a 143 | inc hl 144 | ld (hl),8 ; shape 8 hard wired 145 | inc hl 146 | ld (hl),1 147 | ret 148 | -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/sprite_collision_window.asm: -------------------------------------------------------------------------------- 1 | 2 | ; xoff db 0 3 | ; yoff db 0 4 | ; xsize db 0 5 | ; ysize db 0 6 | 7 | sprite_0: 8 | defb 0, 0,16,16 9 | sprite_1: 10 | defb 0, 0,16,16 11 | sprite_2: 12 | defb 0, 0,16,16 13 | sprite_3: 14 | defb 0, 0,16,16 15 | sprite_4: 16 | defb 0, 0,16,16 17 | sprite_5: 18 | defb 0, 0,16,16 19 | sprite_6: 20 | defb 0, 0,16,16 21 | sprite_7: 22 | defb 0, 0,16,16 23 | sprite_8: 24 | defb 0, 3,16,11 25 | sprite_9: 26 | defb 0, 3,16,11 27 | sprite_10: 28 | defb 0, 0,16,16 29 | sprite_11: 30 | defb 0, 0,16,16 31 | sprite_12: 32 | defb 0, 0,16,16 33 | sprite_13: 34 | defb 0, 0,16,16 35 | sprite_14: 36 | defb 0, 0,16,16 37 | sprite_15: 38 | defb 0, 0,16,16 39 | sprite_16: 40 | defb 0, 1,16,14 41 | sprite_17: 42 | defb 0, 0,16,16 43 | sprite_18: 44 | defb 0, 2,16,12 45 | sprite_19: 46 | defb 0, 1,16,14 47 | sprite_20: 48 | defb 0, 1,16,14 49 | sprite_21: 50 | defb 0, 2,16,12 51 | sprite_22: 52 | defb 0, 0,16,16 53 | sprite_23: 54 | defb 0, 1,16,14 55 | -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/uridium_rev7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/uridium_rev7.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/uridium_rev9.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/uridium_rev9.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/ene_code/uridium_revA.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/ene_code/uridium_revA.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/Color_test_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/Color_test_black.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/Color_test_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/Color_test_org.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/Uridium 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/Uridium 2.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/animated.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/animated.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/color_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/color_test.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/l1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/l1.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/lmap6 - Copia (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/lmap6 - Copia (2).png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/lmap6 - Copia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/lmap6 - Copia.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/lmap6.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/lmap6.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/lmap6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/lmap6.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/output.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/scorebar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/scorebar.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/tileset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/tileset.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/toni_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/toni_level.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/uridium2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/uridium2.png -------------------------------------------------------------------------------- /shooter_scr8_asm/graphics/uridium2_rev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/graphics/uridium2_rev.png -------------------------------------------------------------------------------- /shooter_scr8_asm/main.txt: -------------------------------------------------------------------------------- 1 | ; (\__/) 2 | ; (='.'=) 3 | ; (")_(") 4 | -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/convert_line.m: -------------------------------------------------------------------------------- 1 | 2 | function [s,c] = convert_line(line,MAP,sprtpalrgb); 3 | 4 | s = line~=18; 5 | c = 1; 6 | 7 | return -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/convert_line2.m: -------------------------------------------------------------------------------- 1 | 2 | function [s1,s2,c1,c2] = convert_line2(line,MAP,sprtpalrgb) 3 | 4 | e = inf; 5 | for c1=0:15 6 | for c2=(c1+1):15 7 | pal = [MAP(18,:); sprtpalrgb(1+[c1, c2, bitor(c1,c2)],:)]; 8 | m = imapprox(line,MAP,pal, 'nodither'); 9 | ne = sum(sum((MAP(line,:) - pal(1+m,:)).^2)); 10 | 11 | if (ne0; 14 | s2 = ((m==2)+(m==3))>0; 15 | mc1 = c1; 16 | if any(any(m==3)) 17 | mc2 = c2+64; 18 | else 19 | mc2 = c2; 20 | end 21 | end 22 | end 23 | end 24 | c1 = mc1; 25 | c2 = mc2; 26 | 27 | return -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/lrg-858-uridium_ship_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/lrg-858-uridium_ship_sprite.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/lrg-858-uridium_ship_sprite_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/lrg-858-uridium_ship_sprite_org.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/mship03_comp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/mship03_comp.bmp -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/mship03_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/mship03_org.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/mship03_scr8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/mship03_scr8.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/mship03_shapes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/mship03_shapes.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/spritepalette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/spritepalette.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/grpx/spritepalette_or.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/grpx/spritepalette_or.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/ms_bllts_frm_coll_wind.asm: -------------------------------------------------------------------------------- 1 | ms_bllts_coll_wind: 2 | defb 5,11,2,14 ; xmin,xmax,ymin,ymax 3 | defb 5,11,4,13 4 | defb 5,11,6,11 5 | defb 5,11,7,10 6 | defb 5,11,8,8 7 | defb 5,11,7,10 8 | defb 5,11,6,11 9 | defb 5,11,4,13 10 | 11 | -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship02 - saturated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship02 - saturated.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_ani.asm: -------------------------------------------------------------------------------- 1 | mship03_ani: 2 | defb 9 3 | defb 28 4 | defb 30 5 | defb 31 6 | defb 31 7 | defb 33 8 | defb 27 9 | defb 21 10 | defb 21 11 | defb 11 12 | defb 16 13 | defb 12 14 | defb 17 15 | defb 6 16 | defb 0 17 | defb 23 18 | defb 19 19 | defb 26 20 | defb 32 21 | defb 35 22 | defb 35 23 | defb 34 24 | defb 29 25 | defb 2 26 | defb 2 27 | defb 13 28 | defb 1 29 | defb 10 30 | defb 8 31 | defb 3 32 | defb 5 33 | defb 4 34 | defb 9 35 | defb 4 36 | defb 5 37 | defb 3 38 | defb 8 39 | defb 3 40 | defb 5 41 | defb 4 42 | defb 9 43 | defb 18 44 | defb 15 45 | defb 14 46 | defb 7 47 | defb 14 48 | defb 15 49 | defb 18 50 | defb 19 51 | defb 24 52 | defb 20 53 | defb 22 54 | defb 25 55 | defb 22 56 | defb 20 57 | defb 24 58 | defb 19 59 | defb 23 60 | defb 0 61 | defb 6 62 | defb 17 63 | defb 6 64 | defb 0 65 | defb 23 66 | defb 37 67 | defb 36 68 | defb 38 69 | defb 40 70 | defb 41 71 | defb 39 72 | defb 46 73 | defb 47 74 | defb 42 75 | defb 48 76 | defb 50 77 | defb 51 78 | defb 44 79 | defb 49 80 | defb 45 81 | defb 43 82 | -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_clr.bin: -------------------------------------------------------------------------------- 1 | FEBFFFFBBFFFEMEEHHHFFEEEEHHHNJHHHJJHHHFFFEEEFHMJHHFELHHFBHFHHNFHEMLHHHHFFBEENHFFFFFFHFEEEEEFFHNEEEEEFHFFFFHFBFEBFFFFFBBFFHFHEEFEHHBFEMLHHHHFFBEEHMJHHFELHEMEEHHHFFEEEEHHHNJHHHEEFEHHBFHJJHHHFFFEEEFHHNFHFMMHJHHHFBEEFFMEFJHJEFFEEJEFFMMHJHHHFBEEFFMEFJHJEFFEEJEFMJEJHHHFFBFHFHHHMJFFFHMJEJHHHFFBFHFHNLEFNHJLFBFFFHNLEFNHJLFBFFFHHHMJFFFHNNNNNNNNNNNNNNNNNNNNNNNNNHHHHHHHNNNNNNNHHHHHHHHHHHHH 2 |  3 |  4 |  5 |  6 |  7 |  -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship03_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_frm_coll_wind.asm: -------------------------------------------------------------------------------- 1 | mship03_coll_wind: 2 | defb 1,15,3,13 3 | defb 1,15,4,13 4 | defb 1,15,1,15 5 | defb 1,15,6,12 6 | defb 1,15,3,15 7 | defb 1,15,4,14 8 | defb 1,15,5,11 9 | defb 1,15,6,11 10 | defb 1,15,6,11 11 | defb 1,15,1,15 12 | defb 1,15,6,11 13 | defb 1,15,2,13 14 | defb 1,15,5,10 15 | defb 1,15,2,14 16 | defb 1,15,5,11 17 | defb 1,15,3,13 18 | defb 1,15,3,12 19 | defb 1,15,6,11 20 | defb 1,15,2,14 21 | defb 1,15,1,15 22 | defb 1,15,4,14 23 | defb 1,15,1,15 24 | defb 1,15,6,12 25 | defb 1,15,2,14 26 | defb 1,15,3,15 27 | defb 1,15,6,11 28 | defb 2,14,1,15 29 | defb 2,13,1,15 30 | defb 2,14,1,15 31 | defb 3,14,1,15 32 | defb 3,11,1,15 33 | defb 4,10,1,15 34 | defb 5,13,1,15 35 | defb 5,11,1,15 36 | defb 5,11,1,15 37 | defb 6,12,1,15 38 | defb 5,11,4,10 39 | defb 5,9,5,9 40 | defb 3,11,3,11 41 | defb 3,14,1,12 42 | defb 3,12,3,12 43 | defb 3,13,2,12 44 | defb 2,15,2,15 45 | defb 2,13,4,13 46 | defb 2,15,1,13 47 | defb 2,13,2,13 48 | defb 2,13,1,12 49 | defb 1,14,2,15 50 | defb 1,14,2,15 51 | defb 1,14,1,14 52 | defb 1,14,2,15 53 | defb 1,14,1,14 54 | 55 | -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_gold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship03_gold.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_original_palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship03_original_palette.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_scr8_palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship03_scr8_palette.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/mship03_silver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/mship03_silver.png -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/palette_org.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/palette_org.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/palette_org_MANTA.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/palette_org_MANTA.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/palette_org_enemies.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/palette_org_enemies.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/palette_org_new.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/palette_org_new.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/scrn8.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/scrn8.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/scrn8_bitmap.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/scrn8_bitmap.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/scrn8_or.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/scrn8_or.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/scrn8_unsorted.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/scrn8_unsorted.act -------------------------------------------------------------------------------- /shooter_scr8_asm/manta/ursd2.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/manta/ursd2.act -------------------------------------------------------------------------------- /shooter_scr8_asm/music/ANALMAUL.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/ANALMAUL.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/ANDOROGY.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/ANDOROGY.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/DEARBLUE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/DEARBLUE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/GEPE2M15.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/GEPE2M15.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/INS_TEST.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/INS_TEST.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/JUDAGEAR.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/JUDAGEAR.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/MMAYN.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/MMAYN.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/N68GSET.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/N68GSET.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/NEM2INTR.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/NEM2INTR.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/PARACOVE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/PARACOVE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/PEARLMON.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/PEARLMON.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/PLEASURE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/PLEASURE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/QSOUND04.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/QSOUND04.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/QUARTHBA.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/QUARTHBA.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/SDSNATCH.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/SDSNATCH.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/SOLIDSNK.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/SOLIDSNK.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/SURVIVE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/SURVIVE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/USASST1.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/USASST1.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/WILDARMS.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/WILDARMS.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/music/ZELDA.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/music/ZELDA.TMU -------------------------------------------------------------------------------- /shooter_scr8_asm/palette256.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/palette256.act -------------------------------------------------------------------------------- /shooter_scr8_asm/scorebar.m: -------------------------------------------------------------------------------- 1 | clear 2 | close all 3 | 4 | 5 | red = [0, 36, 73, 109, 146, 182, 219, 255]; 6 | green = [0, 36, 73, 109, 146, 182, 219, 255]; 7 | blue = [0, 73, 146, 255]; 8 | 9 | i=1; 10 | for g=0:7 11 | for r=0:7 12 | for b=0:3 13 | pal(i,:) = ([red(r+1) green(g+1) blue(b+1)]/255); 14 | i=i+1; 15 | end 16 | end 17 | end 18 | 19 | [A1,MAP] = imread('graphics\uridium2.png'); 20 | 21 | figure 22 | image(A1); 23 | axis equal; 24 | colormap(MAP); 25 | 26 | [A1,MAP] = imresize(A1,MAP,[192 256], 'lanczos3'); 27 | [A1,MAP] = imapprox(A1,MAP,pal, 'dither'); 28 | 29 | figure 30 | image(A1); 31 | axis equal; 32 | colormap(pal); 33 | 34 | fid = fopen('opening.bin','wb'); 35 | for y=1:size(A1,1); 36 | t = uint8(A1(y,:)); 37 | fwrite(fid,t,'uchar'); 38 | end 39 | fclose(fid); 40 | 41 | [A2,MAP] = imread('graphics\animated.bmp'); 42 | A2 = imapprox(A2,MAP,pal, 'nodither'); 43 | MAP = pal; 44 | 45 | H = 64; 46 | W = 256; 47 | 48 | B = A2(1:H,1:W); 49 | 50 | H = size(B,1); 51 | W = size(B,2); 52 | figure 53 | image(B); 54 | axis equal; 55 | colormap(MAP); 56 | 57 | fid = fopen('animated.bin','wb'); 58 | for y=1:H 59 | t = uint8(B(y,:)); 60 | fwrite(fid,t,'uchar'); 61 | end 62 | fclose(fid); 63 | 64 | [A2,MAP] = imread('graphics\scorebar.bmp'); 65 | A2 = imapprox(A2,MAP,pal, 'nodither'); 66 | 67 | MAP = pal; 68 | 69 | H = 24; 70 | W = 256; 71 | 72 | B = A2(1:H,1:W); 73 | 74 | H = size(B,1); 75 | W = size(B,2); 76 | figure 77 | image(B); 78 | axis equal; 79 | colormap(MAP); 80 | 81 | fid = fopen('scorebar.bin','wb'); 82 | for y=1:H 83 | t = uint8(B(y,:)); 84 | fwrite(fid,t,'uchar'); 85 | end 86 | fclose(fid); 87 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/checkkbd.asm: -------------------------------------------------------------------------------- 1 | 2 | ; // Line Bit_7 Bit_6 Bit_5 Bit_4 Bit_3 Bit_2 Bit_1 Bit_0 3 | ; // 0 "7" "6" "5" "4" "3" "2" "1" "0" 4 | ; // 1 ";" "]" "[" "\" "=" "-" "9" "8" 5 | ; // 2 "B" "A" ??? "/" "." "," "'" "`" 6 | ; // 3 "J" "I" "H" "G" "F" "E" "D" "C" 7 | ; // 4 "R" "Q" "P" "O" "N" "M" "L" "K" 8 | ; // 5 "Z" "Y" "X" "W" "V" "U" "T" "S" 9 | ; // 6 F3 F2 F1 CODE CAP GRAPH CTRL SHIFT 10 | ; // 7 RET SEL BS STOP TAB ESC F5 F4 11 | ; // 8 RIGHT DOWN UP LEFT DEL INS HOME SPACE 12 | 13 | checkkbd: 14 | di 15 | in a,(0aah) 16 | and 011110000B ; upper 4 bits contain info to preserve 17 | or e 18 | out (0aah),a 19 | in a,(0a9h) 20 | ld l,a 21 | ei 22 | ret 23 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/header.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | 5 | max_enem: equ 12 ; max 12 6 | max_enem_bullets: equ 3 7 | max_bullets: equ 2 ; max number of enemies*2 + ms_bullets + enem_bullets + 3 for ms <= 32 sprites 8 | 9 | maxspeed: equ 4 ; the actual speed is divided by 4 10 | assault_wave_timer_preset: equ 3*60 ; a wave each 3 seconds 11 | enemy_bullet_speed: equ 2 12 | xship_rel: equ (128-8) 13 | 14 | mapWidth equ 256 15 | mapHeight equ 11 16 | YSIZE equ 10*16+8 17 | 18 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 19 | 20 | 21 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/opening.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | opening: 4 | ld c,0 5 | ld d,c 6 | ld e,c 7 | call _vdpsetvramwr 8 | 9 | ld de,256*:_opening+7 10 | call outvram 11 | 12 | 1: call ms_ctrl.rd_joy 13 | call ms_ctrl.z_or_space 14 | jr nz,1b 15 | 16 | call _cls 17 | 18 | di 19 | ld a,(RG9SAV) 20 | and 01111111B ; Set 192 lines 21 | ld (RG9SAV),a 22 | out (0x99),a 23 | ld a,128+9 24 | out (0x99),a 25 | ei 26 | 27 | ret 28 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/plot_distrucable.asm: -------------------------------------------------------------------------------- 1 | 2 | _plot_distrucable: 3 | 4 | di 5 | ld a, 32 6 | out (0x99),a 7 | ld a, 17+128 8 | out (0x99),a 9 | ei 10 | 11 | ld c, 0x9B 12 | 13 | call _waitvdp 14 | 15 | ld a,l 16 | [4] add a,a 17 | out (0x9B), a ; sx 18 | xor a 19 | out (0x9B), a ; sx (high) 20 | 21 | ld a,mapHeight*16+32 22 | out (0x9B), a ; sy 23 | ld a,1 ; source page for animated tiles 24 | out (0x9B), a ; sy (high-> page 3) 25 | 26 | ld a,e 27 | out (0x9B), a ; dx 28 | xor a 29 | out (0x9B), a ; dx (high) 30 | 31 | ld a,d 32 | out (0x9B), a ; dy 33 | ld a,h ; destination page 34 | out (0x9B), a ; dy (high-> page 0 or 1) 35 | 36 | ld hl,16*257 ; block size 37 | 38 | out (c), l 39 | xor a 40 | out (0x9B), a 41 | out (c), h 42 | out (0x9B), a 43 | out (0x9B), a 44 | out (0x9B), a 45 | 46 | ld a,11010000B 47 | out (0x9B), a ; command HMMM 48 | ret 49 | 50 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/plot_line2.asm: -------------------------------------------------------------------------------- 1 | plot_line1: 2 | ld a,(_xoffset) 3 | add a,e 4 | ld e,a ; de = y*256+x 5 | 6 | ld a,(_displaypage) 7 | [2] add a,a 8 | di 9 | out (0x99),a ; set bits 14-16 10 | ld a,14+128 11 | out (0x99),a 12 | ei 13 | ld d,0x40 ; write access 14 | jp _1stblock ; trace 16 pixels 15 | 16 | plot_line2: 17 | inc h 18 | ld a,(_xoffset) 19 | add a,e 20 | ld e,a ; de = y*256+x 21 | 22 | ld a,(_displaypage) 23 | [2] add a,a 24 | di 25 | out (0x99),a ; set bits 14-16 26 | ld a,14+128 27 | out (0x99),a 28 | ei 29 | ld d,0x50 ; write access 30 | call _2nd ; trace 48 pixels 31 | 32 | ld a,(_displaypage) 33 | [2] add a,a 34 | or 1 35 | di 36 | out (0x99),a ; set bits 14-16 37 | ld a,14+128 38 | out (0x99),a 39 | ei 40 | ld d,0x40 ; write access 41 | call _1st ; trace 64 pixels 42 | 43 | ld a,(_displaypage) 44 | [2] add a,a 45 | or 2 46 | di 47 | out (0x99),a ; set bits 14-16 48 | ld a,14+128 49 | out (0x99),a 50 | ei 51 | ld d,0x40 ; write access 52 | call _2nd ; trace 48 pixels 53 | 54 | ret 55 | 56 | 57 | ; plot_line: 58 | ; ld a,(_xoffset) 59 | ; add a,e 60 | ; ld e,a ; de = y*256+x 61 | 62 | ; ld a,(_displaypage) 63 | ; [2] add a,a 64 | ; di 65 | ; out (0x99),a ; set bits 14-16 66 | ; ld a,14+128 67 | ; out (0x99),a 68 | ; ei 69 | ; ld d,0x40 ; write access 70 | ; call _1st 71 | 72 | ; ld a,(_displaypage) 73 | ; [2] add a,a 74 | ; or 1 75 | ; di 76 | ; out (0x99),a ; set bits 14-16 77 | ; ld a,14+128 78 | ; out (0x99),a 79 | ; ei 80 | ; ld d,0x40 ; write access 81 | ; call _1st 82 | 83 | ; ld a,(_displaypage) 84 | ; [2] add a,a 85 | ; or 2 86 | ; di 87 | ; out (0x99),a ; set bits 14-16 88 | ; ld a,14+128 89 | ; out (0x99),a 90 | ; ei 91 | ; ld d,0x40 ; write access 92 | ; call _2nd 93 | 94 | ; ret 95 | 96 | _1stblock: 97 | ; hl -> Map in RAM 98 | ld a,(hl) 99 | [3] rlca 100 | and 00000111B 101 | add a,:_tiles0 102 | ld (_kBank4),a 103 | ld a,(hl) 104 | and 00011111B 105 | add a,high _tiles0 106 | ld h,a 107 | ld a,(_xoffset) 108 | [4] add a,a 109 | ld l,a 110 | 111 | ; hl -> tile column 112 | 113 | ld bc,16*256+0x98 114 | di 115 | 1: ld a,e ;set bits 0-7 116 | out (0x99),a 117 | ld a,d ;set bits 8-13 118 | out (0x99),a 119 | inc d 120 | outi 121 | jp nz,1b 122 | ei 123 | ret 124 | 125 | _1st: 126 | ; hl -> Map in RAM 127 | push hl 128 | 129 | ld a,(hl) 130 | [3] rlca 131 | and 00000111B 132 | add a,:_tiles0 133 | ld (_kBank4),a 134 | ld a,(hl) 135 | and 00011111B 136 | add a,high _tiles0 137 | ld h,a 138 | ld a,(_xoffset) 139 | [4] add a,a 140 | ld l,a 141 | 142 | ; hl -> tile column 143 | 144 | ld bc,16*256+0x98 145 | di 146 | 1: ld a,e ;set bits 0-7 147 | out (0x99),a 148 | ld a,d ;set bits 8-13 149 | out (0x99),a 150 | inc d 151 | outi 152 | jp nz,1b 153 | ei 154 | 155 | pop hl 156 | inc h 157 | _2nd: 158 | repeat 3 159 | push hl 160 | 161 | ld a,(hl) 162 | [3] rlca 163 | and 00000111B 164 | add a,:_tiles0 165 | ld (_kBank4),a 166 | ld a,(hl) 167 | and 00011111B 168 | add a,high _tiles0 169 | ld h,a 170 | ld a,(_xoffset) 171 | [4] add a,a 172 | ld l,a 173 | 174 | ; hl -> tile column 175 | 176 | ld bc,16*256+0x98 177 | di 178 | 1: ld a,e ;set bits 0-7 179 | out (0x99),a 180 | ld a,d ;set bits 8-13 181 | out (0x99),a 182 | inc d 183 | outi 184 | jp nz,1b 185 | ei 186 | 187 | pop hl 188 | inc h 189 | endrepeat 190 | ret 191 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/print.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | 5 | _print_probe 6 | ld a,(_mcprobeb) 7 | ld e,a 8 | ld d,0 9 | ld hl,32*(64-2) 10 | add hl,de 11 | ex de,hl 12 | ld hl,2*(23*32+0) 13 | ; call plot_foreground 14 | 15 | ld de,(_ticxframe) 16 | ld d,0 17 | ld bc,_buffer 18 | call int2ascii 19 | 20 | ld a,(_buffer+2) 21 | ld e,a 22 | ld d,0 23 | ld hl,32*(64-2)-'0' 24 | add hl,de 25 | ex de,hl 26 | ld hl,2*(22*32) 27 | ; call plot_foreground 28 | 29 | ld a,(_buffer+3) 30 | ld e,a 31 | ld d,0 32 | ld hl,32*(64-2)-'0' 33 | add hl,de 34 | ex de,hl 35 | ld hl,2*(22*32+1) 36 | ; call plot_foreground 37 | 38 | ld a,(_buffer+4) 39 | ld e,a 40 | ld d,0 41 | ld hl,32*(64-2)-'0' 42 | add hl,de 43 | ex de,hl 44 | ld hl,2*(22*32+2) 45 | ; call plot_foreground 46 | ret 47 | 48 | 49 | _print_fps: 50 | ld a,(_buffer+3) 51 | ld e,a 52 | ld d,0 53 | ld hl,32*(64-2)-'0' 54 | add hl,de 55 | ex de,hl 56 | 57 | ld hl,2*(23*32+30) 58 | ; call plot_foreground 59 | 60 | ld a,(_buffer+4) 61 | ld e,a 62 | ld d,0 63 | ld hl,32*(64-2)-'0' 64 | add hl,de 65 | ex de,hl 66 | 67 | ld hl,2*(23*32+31) 68 | ; call plot_foreground 69 | ret 70 | 71 | ;------------------------------------- 72 | _compute_fps: 73 | ld de,(_fps) 74 | ld bc,_buffer 75 | 76 | int2ascii: 77 | 78 | ; in de input 79 | ; in bc output 80 | 81 | ex de,hl 82 | ld e,c 83 | ld d,b 84 | 85 | Num2asc: 86 | ld bc,-10000 87 | call Num1 88 | ld bc,-1000 89 | call Num1 90 | ld bc,-100 91 | call Num1 92 | ld c,-10 93 | call Num1 94 | ld c,-1 95 | 96 | Num1: 97 | ld a,'0'-1 ; '0' in the tileset 98 | 99 | Num2: 100 | inc a 101 | add hl,bc 102 | jr c,Num2 103 | sbc hl,bc 104 | 105 | ld (de),a 106 | inc de 107 | ret 108 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/probe_level.asm: -------------------------------------------------------------------------------- 1 | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; peek a tile 4 | ; in a: y (screen coordinate) 5 | ; hl: x (level coordinate) 6 | ; out a: tile at x,y 7 | ; hl: pointer in level_buffer to tile 8 | 9 | probe_level: 10 | 11 | ld bc,_levelmap 12 | [4] rrca 13 | and 15 14 | [4] add hl,hl 15 | ld l,h 16 | ld h,a 17 | add hl,bc 18 | ld a,(hl) 19 | ret 20 | 21 | struct star_data 22 | x db 0 23 | y db 0 24 | add dw 0 25 | ends 26 | 27 | starlist: 28 | star_data 32,64+10, 32/16+(10/16)*256 29 | star_data 208,64+50,208/16+(50/16)*256 30 | star_data 128,64+52,128/16+(52/16)*256 31 | starlist2: 32 | star_data 16,64+5, 16/16+((64+ 5)/16)*256 33 | star_data 48,64+17, 48/16+((64+17)/16)*256 34 | star_data 112,64+26,112/16+((64+26)/16)*256 35 | starlist3: 36 | star_data 48,64+17, 48/16+((128+17)/16)*256 37 | star_data 112,64+26,112/16+((128+26)/16)*256 38 | star_data 224,64+42,224/16+((128+42)/16)*256 39 | 40 | test_star: 41 | di 42 | ld a,(_xoffset) 43 | [4] add a,a 44 | ld c,a 45 | 46 | ld a,(_displaypage) 47 | [2] add a,a 48 | ld b,a 49 | 50 | ld ix,starlist 51 | call .star_loop 52 | 53 | inc b 54 | ld a,b 55 | 56 | call .star_loop 57 | 58 | inc b 59 | ld a,b 60 | 61 | call .star_loop 62 | 63 | ld a,(_xoffset) 64 | ld (__xoffset),a 65 | ei 66 | ret 67 | 68 | .star_loop 69 | out (0x99),a ;set bits 14-16 70 | ld a,14+128 71 | out (0x99),a 72 | 73 | 74 | repeat 3 75 | 1: ld e,(ix+star_data.add) 76 | ld d,(ix+star_data.add+1) 77 | ld hl,(_levelmap_pos) 78 | add hl,de 79 | ld a,(hl) 80 | and a 81 | jp nz,2f 82 | ld a,(__xoffset) ; compensate R#18 83 | add a,(ix+star_data.x) 84 | out (0x99),a 85 | ld a,(ix+star_data.y) ; set bits 8-13 86 | out (0x99),a 87 | xor a 88 | out (0x98),a 89 | call .set_star 90 | 2: ld de,star_data 91 | add ix,de 92 | endrepeat 93 | ret 94 | 95 | .set_star: 96 | ld a,c 97 | cp (ix+star_data.x) 98 | ret z 99 | ld a,(_xoffset) ; compensate R#18 100 | add a,(ix+star_data.x) 101 | out (0x99),a 102 | ld a,(ix+star_data.y) ; set bits 8-13 103 | out (0x99),a 104 | ld a,255 105 | out (0x98),a 106 | ret 107 | 108 | ; unused_other: 109 | ; ld hl,(xship) 110 | ; ld a,(yship) 111 | ; call probe_level 112 | ; exx 113 | ; ld hl,_levelmap+256 114 | ; ld bc,13 115 | ; cpir 116 | ; ret nz 117 | ; dec h 118 | ; dec l 119 | ; ld a,(hl) 120 | ; exx 121 | ; ld (hl),a 122 | ; exx 123 | ; ld a,l 124 | ; sub a,low _levelmap 125 | ; ld l,a 126 | ; push hl ; L block# 127 | 128 | ; ld a,(_displaypage) 129 | ; ld h,a 130 | ; ld a,(_xoffset) ; compensate R#18 131 | ; add a,xship_rel 132 | ; and 0xF0 133 | ; ld e,a ; destX 134 | ; ld a,(yship) 135 | ; and 0xF0 136 | ; ld d,a ; destY 137 | 138 | ; push de 139 | ; call _plot_distrucable 140 | ; pop de 141 | 142 | ; pop hl 143 | ; ld a,h 144 | ; xor 1 145 | ; ld h,a 146 | 147 | ; ret 148 | ; ld a,(dxmap) 149 | ; rlc a 150 | ; jp nc,1f ; >0 == dx 151 | ; ; <0 == sx 152 | ; ld a,-16 153 | ; add a,e 154 | ; ld e,a 155 | ; jp _plot_distrucable 156 | 157 | ; 1: ld a,+16 158 | ; add a,e 159 | ; ld e,a 160 | ; jp _plot_distrucable 161 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/sprts.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | _hw_sprite_init: 5 | 6 | teller:=0 7 | repeat 4 ; 4 SPTs, at 0xD800, 0xE000, 0xE800, 0xF000 8 | ld c,0 9 | ld de,0F000h-64*32*3+64*32*teller 10 | call _vdpsetvramwr 11 | ld d, :sprtdata 12 | ld e, 1 13 | call outvram 14 | teller:=teller+1 15 | endrepeat 16 | 17 | ld c,0 18 | ld de,0FA00h 19 | call _vdpsetvramwr 20 | 21 | ld a,0xD8 22 | out (0x98),a 23 | 24 | ret 25 | 26 | 27 | ; load static colors 28 | load_colors: 29 | ld c,0 30 | ld de,0F830h ; 0FA00h-512+3*16 31 | call _vdpsetvramwr 32 | call bull_color 33 | 34 | ld c,0 35 | ld de,0FD80h ; 0FE00h-512+max_enem*16 36 | call _vdpsetvramwr 37 | call bull_color 38 | ret 39 | 40 | 41 | bull_color: 42 | ld b,16*(max_bullets+max_enem_bullets) 43 | ld a,15 44 | 1: 45 | out (0x98),a 46 | djnz 1b 47 | ret 48 | 49 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/turbo.asm: -------------------------------------------------------------------------------- 1 | 2 | rdslt equ 0x000c 3 | CALSLT equ 0x001c 4 | chgcpu equ 0x0180 ; change cpu mode 5 | exttbl equ 0xfcc1 ; main rom slot 6 | 7 | ; Switch to r800 rom mode 8 | 9 | _set_r800: 10 | in a,(0aah) 11 | and 011110000B ; upper 4 bits contain info to preserve 12 | or 6 13 | out (0aah),a 14 | in a,(0a9h) 15 | ld l,a 16 | 17 | ld a,(0x002d) 18 | cp 3 ; this is a TR 19 | ld a,l 20 | jr z,set_turbo_tr 21 | ; this is anything else 22 | and 0x02 ; CTR 23 | ret nz ; if NZ, CTR is not pressed set the turbo 24 | 25 | ld A,(chgcpu) 26 | cp 0C3h 27 | ld a,81h ; R800 ROM mode or any other turbo 28 | call z,chgcpu 29 | ret 30 | 31 | set_turbo_tr 32 | and 0x02 ; CTR 33 | ret z ; if Z, CTR is pressed -> do not set the turbo 34 | ld a,81h ; R800 ROM mode 35 | jp chgcpu 36 | 37 | -------------------------------------------------------------------------------- /shooter_scr8_asm/sources/vdpio.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;------------------------------------- 4 | _cls: 5 | ld c,0 6 | ld d,c 7 | ld e,c 8 | di 9 | call _vdpsetvramwr 10 | ld b,c 11 | ld e,1 12 | 1: xor a 13 | out (0x98),a 14 | cpi 15 | jp pe,1b 16 | dec e 17 | jp nz,1b 18 | ret 19 | _cls0: 20 | ld c,0 21 | ld d,c 22 | ld e,c 23 | di 24 | call _vdpsetvramwr 25 | ei 26 | ld bc,mapHeight*16*256 27 | xor a 28 | 1: out (0x98),a 29 | cpi 30 | jp pe,1b 31 | ret 32 | 33 | ;------------------------------------- 34 | 35 | vdpport1 equ 0x99 36 | vdpport2 equ 0x9A 37 | 38 | ; levelcolors: 39 | ; incbin "palette.bin" 40 | 41 | ; _SetPalet: 42 | ; di 43 | ; xor a ;Set pointer to zero. 44 | ; out (vdpport1),a 45 | ; ld a,16 | 010000000B 46 | ; out (vdpport1),a 47 | 48 | ; ld hl,levelcolors 49 | ; ld bc,vdpport2+32*256 50 | ; otir 51 | ; ei 52 | ; ret 53 | 54 | ;Set VDP for writing at address CDE (17-bit) 55 | 56 | _vdpsetvramwr: 57 | ld a,c 58 | _vdpsetvramwr2: 59 | ;Set VDP for writing at address ADE (17-bit) ; 60 | rlc d 61 | rla 62 | rlc d 63 | rla 64 | srl d ; primo shift, il secondo dopo la out 65 | 66 | out (0x99),a ;set bits 14-16 67 | ld a,14+128 68 | out (0x99),a 69 | 70 | srl d ; secondo shift. 71 | _vdpsetvramwr14 72 | ld a,e ;set bits 0-7 73 | out (0x99),a 74 | ld a,d ;set bits 8-13 75 | or 0x40 ; + write access 76 | out (0x99),a 77 | ret 78 | 79 | ;Set VDP port #98 to start reading at address CDE (17-bit) ; 80 | 81 | _vdpsetvramrd: 82 | ld a,c 83 | ;Set VDP port #98 to start reading at address ADE (17-bit) ; 84 | rlc d 85 | rla 86 | rlc d 87 | rla 88 | srl d ; primo shift, il secondo dopo la out 89 | 90 | out (0x99),a ; set bits 14-16 91 | ld a,14+128 92 | out (0x99),a 93 | 94 | srl d ; secondo shift. 95 | ld a,e ; set bits 0-7 96 | out (0x99),a 97 | ld a,d ; set bits 8-13 98 | and 0x3F 99 | out (0x99),a 100 | ret 101 | 102 | ;Display page E in screen 5 103 | _setpage: 104 | ld a,e 105 | [5] add a,a ;x32 106 | or 00011111B 107 | di 108 | out (0x99),a 109 | ld a,2+128 110 | out (0x99),a 111 | ei 112 | ret 113 | 114 | chgmod equ 0x005f ;change graphic mode 115 | RDSLT equ 0x000c ;read address HL in slot A 116 | KILBUF equ 0x0156 ;clear keyboard buffer 117 | 118 | set_scr: 119 | 120 | // sprites 16x16 121 | ld a,(RG1SAV) 122 | or 00000010B 123 | ld (RG1SAV),a 124 | 125 | // enable sprites + TP 126 | ld a,(RG8SAV) 127 | or 00100010B 128 | ld (RG8SAV),a 129 | 130 | // Set @50Hz (only PAL is supported) 131 | ld a,(SEL_NTSC) 132 | and a 133 | jr nz,1f 134 | 135 | ld a,(RG9SAV) 136 | or 00000010B ; PAL 137 | jr 2f 138 | 1: 139 | ld a,(RG9SAV) 140 | and 11111101B ; NTSC 141 | 2: ld (RG9SAV),a 142 | 143 | ld a,8 144 | call chgmod 145 | 146 | // border color 147 | xor a 148 | ld (RG7SAV),a 149 | out (0x99),a 150 | ld a,7+128 151 | out (0x99),a 152 | ret 153 | 154 | 155 | 156 | _waitvdp: 157 | ld a,2 158 | out (0x99),a 159 | ld a, 128+15 160 | out (0x99),a 161 | 1: in a,(0x99) 162 | rrca 163 | jp c,1b 164 | 165 | ret 166 | 167 | ; .inf: 168 | ; ld a,r ; random colour 169 | ; out (0x99),a 170 | ; ld a,7+128 171 | ; out (0x99),a 172 | ; jp 1b 173 | -------------------------------------------------------------------------------- /shooter_scr8_asm/tilessetting256ram.m: -------------------------------------------------------------------------------- 1 | clear 2 | close all 3 | 4 | 5 | red = [0, 36, 73, 109, 146, 182, 219, 255]; 6 | green = [0, 36, 73, 109, 146, 182, 219, 255]; 7 | blue = [0, 73, 146, 255]; 8 | 9 | i=1; 10 | for g=0:7 11 | for r=0:7 12 | for b=0:3 13 | pal(i,:) = ([red(r+1) green(g+1) blue(b+1)]/255); 14 | i=i+1; 15 | end 16 | end 17 | end 18 | 19 | %[A2,MAP] = imread('NUMBERS.bmp'); 20 | 21 | %[A2,MAP] = imread('GNG2048x176.PNG'); 22 | %[A2,MAP] = imread('graphics\lmap6.bmp'); 23 | 24 | [A2,MAP] = imread('graphics\toni_level.png'); 25 | 26 | 27 | [ A2 MAP] = imapprox(A2,MAP,pal, 'nodither'); 28 | pal = MAP; 29 | %MAP = pal; 30 | 31 | S = fix(size(A2)/16).*16; 32 | H = S(1); 33 | W = S(2); 34 | 35 | B = A2(1:H,1:W); 36 | 37 | H = size(B,1); 38 | W = size(B,2); 39 | 40 | image(B); 41 | axis equal; 42 | colormap(MAP); 43 | 44 | InpTiles = im2col(B,'indexed',[16 16],'distinct'); 45 | 46 | 47 | % if (0) 48 | % RGB = ind2rgb(InpTiles',MAP); 49 | % t = [RGB(:,:,1) RGB(:,:,2) RGB(:,:,3)]; 50 | % [IDX, C] = KMEANS(t, 128,'EmptyAction','singleton','Replicates',10); 51 | % UniqueTiles = zeros(128,256,3); 52 | % UniqueTiles (:,:,1) = C(:,1:256); 53 | % UniqueTiles (:,:,2) = C(:,257:512); 54 | % UniqueTiles (:,:,3) = C(:,513:768); 55 | % UniqueTiles = rgb2ind(UniqueTiles,MAP); 56 | % InpMap=IDX; 57 | % else 58 | UniqueTiles = unique(InpTiles','rows'); 59 | 60 | fun = @(block_struct) norm(double(block_struct.data)); 61 | C = blockproc(double(UniqueTiles),[1 256],fun); 62 | 63 | [~,i] = sort(C,1); 64 | UniqueTiles = UniqueTiles(i,:); 65 | 66 | [~,InpMap] = ismember(InpTiles',UniqueTiles,'rows'); 67 | % end 68 | 69 | Ntiles = (H/16*W/16); 70 | 71 | ReducedImage = UniqueTiles(InpMap,:); 72 | 73 | A = col2im(ReducedImage',[16 16],[H W],'distinct'); 74 | 75 | figure 76 | image(A); 77 | axis equal; 78 | colormap(MAP) 79 | 80 | UniqueTiles = UniqueTiles'; 81 | 82 | K = size(UniqueTiles,2) 83 | T = UniqueTiles; 84 | 85 | %if (K<=256) 86 | % T = [UniqueTiles zeros(256,256-K)]; 87 | % T = UniqueTiles; 88 | %else 89 | % T = UniqueTiles(:,1:256) ; 90 | %end 91 | 92 | %TT = [T(1:16:256,:); T(2:16:256,:); T(3:16:256,:); T(4:16:256,:)] 93 | 94 | 95 | % fun2 = inline('rgb2ind(ind2rgb(x,M),p,s)','x','M','p','s'); 96 | % TT = blkproc(T,[256 1],fun2,MAP,pal,'nodither'); 97 | 98 | TT = T; 99 | 100 | B = col2im(TT,[16 16],[16 16*K],'distinct'); 101 | 102 | fun1 = inline('transpose(x)'); 103 | C = blkproc(B,[16 16],fun1)'; 104 | 105 | CC = uint8(zeros((fix(size(C,1)/256)+1)*256,16)); 106 | CC(1:size(C,1),:) = C; 107 | 108 | n = size(CC,1)/256; 109 | D = []; 110 | x = 1; 111 | for i=1:n 112 | D = [D CC(x:(x+255),:)]; 113 | x = x+256; 114 | end 115 | 116 | 117 | figure 118 | image(D) 119 | axis equal; 120 | colormap(pal) 121 | imwrite(D,pal,'graphics\tileset.png','png'); 122 | 123 | NewMap = InpMap; 124 | 125 | X = reshape(NewMap,H/16,W/16); 126 | 127 | figure; 128 | image(X) 129 | axis equal; 130 | colormap(gray) 131 | 132 | fid = fopen('datamap.bin','wb'); 133 | for i=1:(H/16) 134 | fwrite(fid,X(i,:)-1,'uchar'); 135 | end 136 | fclose(fid); 137 | 138 | ReducedImage = T(:,NewMap); 139 | 140 | A = col2im(ReducedImage,[16 16],[H W],'distinct'); 141 | 142 | figure 143 | image(A) 144 | colormap(MAP) 145 | imwrite(A,MAP,'graphics\output.png','png'); 146 | 147 | fid = fopen('tiles.bin','wb'); 148 | for y=1:K 149 | t = uint8(TT(:,y)); 150 | fwrite(fid,t,'uchar'); 151 | end 152 | fclose(fid); 153 | 154 | %figure; 155 | %image(kron(1:256,ones(256))) 156 | %colormap(MAP); 157 | 158 | size(unique(C,'rows')) -------------------------------------------------------------------------------- /shooter_scr8_asm/urd_scr8.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asm/urd_scr8.rom -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bas/autoexec.bas: -------------------------------------------------------------------------------- 1 | 10 color 15,0,0:screen 8,3 2 | 20 sprite$(0)=string$(32,255):s=0 3 | 30 for y=0 to 212 step 128 4 | 40 for x = 0 to 255 step 32 5 | 50 put sprite s,(x,y),s,0 6 | 60 put sprite s+16,(x,y+32),s,0 7 | 70 s=s+1 8 | 80 next:next 9 | 100 goto 100 10 |  -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bas/autoexec1.bas: -------------------------------------------------------------------------------- 1 | 10 SCREEN 8,3 2 | 20 COLOR 15,0,0:CLS 3 | 30 SPRITE$(0)=STRING$(32,255) 4 | 40 T=0 5 | 50 FOR J = 0 TO 3 6 | 60 FOR I = 0 TO 3 7 | 70 PUT SPRITE T ,(I*48,J*40),8,0 8 | 80 PUT SPRITE T+1,(I*48+8,J*40),64+2,0 9 | 90 T=T+2 10 | 100 NEXT 11 | 110 NEXT 12 | 120 T=0 13 | 130 FOR I=0 TO 15 14 | 140 COLOR SPRITE$(T) =STRING$(8,T)+STRING$(8,64+T) 15 | 150 COLOR SPRITE$(T+1)=STRING$(8,T+1+64)+STRING$(8,T+1) 16 | 160 T=T+2 17 | 170 NEXT 18 | 180 REM GOTO 180 19 |  -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bas/autoexec2.bas: -------------------------------------------------------------------------------- 1 | 10 SCREEN 8,3 2 | 20 COLOR 15,0,0:CLS 3 | 30 SPRITE$(0)=STRING$(32,255) 4 | 40 T=0 5 | 50 J = 0 6 | 60 OPEN "GRP:" FOR OUTPUT AS #1 7 | 100 FOR J=0 TO 15 8 | 110 FOR I=0 TO 15 9 | 120 CLS 10 | 121 PUT SPRITE T ,(0,0),8,0 11 | 122 PUT SPRITE T+1,(16,0),64+2,0 12 | 130 COLOR SPRITE$(1)=STRING$(16,J+64) 13 | 140 COLOR SPRITE$(0)=STRING$(16,I) 14 | 150 PSET(0,64):PRINT #1,I,J 15 | 160 A$ = INPUT$(1) 16 | 170 NEXT:NEXT 17 | 180 REM GOTO 180 18 |  -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bat.bat: -------------------------------------------------------------------------------- 1 | cmd /K compila.bat -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap1.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap10.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap11.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap12.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap13.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap14.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap15.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap16.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap17.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap18.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap19.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap2.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap20.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap21.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap22.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap23.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap24.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap3.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap4.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap5.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap6.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap7.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap8.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/1821_gamemap9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/1821_gamemap9.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_CoreMechSuits.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_CoreMechSuits.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet1_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet1_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet1_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet1_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_DeckGun_and_Hatch.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_DeckGun_and_Hatch.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_DeckGun_and_Hatch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_DeckGun_and_Hatch.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet2.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet2_TileSheet2.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet4_TileSheet1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet4_TileSheet1.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/U2_Fleet4_TileSheet1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/U2_Fleet4_TileSheet1.jpg -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/Anikki_square_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/Anikki_square_16x16.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/Fighter_WIP-FullFlip1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/Fighter_WIP-FullFlip1.gif -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/GNG2048x176.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/GNG2048x176.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/HOL_gamemap_Uridium2_20150402_203037.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/HOL_gamemap_Uridium2_20150402_203037.zip -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/NUMBERS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/NUMBERS.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/Stage7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/Stage7.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/anim1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/anim1.gif -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/tumblr_n7krvrl4Ge1s335jfo1_r3_400.gif -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/crap/tumblr_static_bhlbei0winwcsos4wskococ8c.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/crap/tumblr_static_bhlbei0winwcsos4wskococ8c.gif -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/uridium2_lvl6_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/uridium2_lvl6_map.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/uridium_2_fleet_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/uridium_2_fleet_3.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/uridium_2_fleet_3_tmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/uridium_2_fleet_3_tmp.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/bmp/uridium_2_lvl_5-8_enemies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/bmp/uridium_2_lvl_5-8_enemies.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/compila.bat: -------------------------------------------------------------------------------- 1 | sjasm.exe -s main.asm 2 | 3 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/databin/animated.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/databin/animated.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/databin/datamap.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/databin/datamap.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/databin/opening.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/databin/opening.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/databin/scorebar.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/databin/scorebar.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/databin/tiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/databin/tiles.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/_enemies_scr8_clr.bin: -------------------------------------------------------------------------------- 1 | NNHJHFNNJNNNHJHFNNJNNLNFMHFNJFNHNNHNNFFJJNFNHNNHNNFFJJNFHNHHHNHHHHMBHHNHHHNHHHHMBHHHNHHNHHHNHHHNHHNHHHHHHHNHNNHLJ 2 | HJHHHNHNNHLJ 3 | HJHHHHHHHFFDKHHHHHHFFDKEFHNEEFHHEEHNHNNNHNNNNNNNHNNNHNNNFFHHNNNNNNNFHHNNNNNNNFNNNHNNNFFNNNNNNNHHNHNNNH -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/_enemies_scr8_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/_enemies_scr8_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/convert_line2.m: -------------------------------------------------------------------------------- 1 | 2 | function [s1,s2,c1,c2] = convert_line2(line,MAP,sprtpalrgb) 3 | 4 | %line = 1+ double([17 17 17 13 13 13 13 13 13 13 10 17 17 17 17 17]); 5 | 6 | % green red blue 7 | % sprtpalgrb = [ 0 0 0 8 | % 0 0 2 9 | % 0 3 0 10 | % 0 3 2 11 | % 3 0 0 12 | % 3 0 2 13 | % 3 3 0 14 | % 3 3 2 15 | % 4 7 2 16 | % 0 0 7 17 | % 0 7 0 18 | % 0 7 7 19 | % 7 0 0 20 | % 7 0 7 21 | % 7 7 0 22 | % 7 7 7]; 23 | % 24 | % sprtpalrgb = sprtpalgrb(:,[2 1 3])/7; 25 | % MAP = sprtpalrgb; 26 | % MAP(18,:) = [6 0 6]/7; 27 | 28 | e = inf; 29 | for c1=0:15 30 | for c2=(c1+1):15 31 | pal = [MAP(18,:); sprtpalrgb(1+[c1, c2, bitor(c1,c2)],:)]; 32 | m = imapprox(line,MAP,pal, 'nodither'); 33 | ne = sum(sum((MAP(line,:) - pal(1+m,:)).^2)); 34 | 35 | if (ne0; 38 | s2 = ((m==2)+(m==3))>0; 39 | mc1 = c1; 40 | if any(any(m==3)) 41 | mc2 = c2+64; 42 | else 43 | mc2 = c2; 44 | end 45 | end 46 | end 47 | end 48 | c1 = mc1; 49 | c2 = mc2; 50 | % s1 51 | % s2 52 | % c1 53 | % c2 54 | 55 | return -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/enemies.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/enemies.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies_clr.bin: -------------------------------------------------------------------------------- 1 | NHJHHJHNFBEEFFNNHJHHJHNFBEEFFNJHNIJHHLF 2 | JHHJHNIJHHLF 3 | JHHHNHNNHNNFFFHNFHNHNNHNNFFFHNFNHJJJJHHFBEEENNHJJJJHHFBEEENHHHHJHHHHHHJHHEFFEFFHHHHHHHNFFHHHHFHHHHHHHNFFHHHHFHJJNNHJJNNNNNNNNNNNNNNNNNNNHHNNNFFHNNNNNNNNFHNNNNNNNNFNNHHNNNFFNNNNNNNNNNNNNNN -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/enemies_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies_scr8_clr.bin: -------------------------------------------------------------------------------- 1 | HHFEFNEHHHFEFNEHFHFFNFFEHFNNJFNHNNHNNFFFNFNHNNHNNFFFNFHFNJ 2 | FNFHDJEHHFNJ 3 | FNFHDJEHHHJNHHNHHFNHHHNHHNHHFHJHJNJFLJ 4 | HJHJHJJHHEJHHJHHHHHHHNFFHFHHHHHHNFFHFEFHNMEEFFHHFJENNNNNNNJNNNNNNNNNNNJJNNJFFHFNNNJNNNJFHFNNNJNNNJFNNJJNNJFFJNNNNNNNNNNNNNNNN -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/enemies_scr8_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/enemies_scr8_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/enemies_comp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/enemies_comp.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/enemies_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/enemies_org.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/enemies_scr8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/enemies_scr8.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/sprites.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/sprites.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/sprites.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/sprites_128.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/sprites_128.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/uridium_rev7.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/uridium_rev7.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/uridium_rev8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/uridium_rev8.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/grpx/uridium_revA.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/grpx/uridium_revA.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/main.lst: -------------------------------------------------------------------------------- 1 | Sjasm Z80 Assembler v0.42c - www.xl2s.tk [2015.05.25 - 23:40:57] 2 | 3 | main.asm 4 | Errors: 1 5 | 6 | Error opening file: main.asm 7 | 8 | LABELS 9 | ------------------------------------------------- 10 | 11 | 12 | Output: main.out 13 | ------------------------------------------------- 14 | 15 | Page: 00 16 | Org: 00000000 Size: * Used: 00000000 17 | 18 | No output 19 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/main.sym: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/main.sym -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/palette.txt: -------------------------------------------------------------------------------- 1 | ;Green 2 | 0 0 0 0 3 | 0 0 0 0 4 | 0 0 0 0 5 | 0 0 0 0 6 | 0 1 1 3 7 | 0 1 1 3 8 | 0 1 1 3 9 | 0 1 1 3 10 | 1 0 0 4 11 | 0 0 0 0 12 | 0 0 0 0 13 | 0 0 0 0 14 | 1 1 1 7 15 | 1 1 1 7 16 | 1 1 1 7 17 | 1 1 1 7 18 | ;Red 19 | 0 0 0 0 20 | 0 0 0 0 21 | 0 1 1 3 22 | 0 1 1 3 23 | 0 0 0 0 24 | 0 0 0 0 25 | 0 1 1 3 26 | 0 1 1 3 27 | 1 1 1 7 28 | 0 0 0 0 29 | 1 1 1 7 30 | 1 1 1 7 31 | 0 0 0 0 32 | 0 0 0 0 33 | 1 1 1 7 34 | 1 1 1 7 35 | ;Blue 36 | 0 0 0 0 37 | 0 1 0 2 38 | 0 0 0 0 39 | 0 1 0 2 40 | 0 0 0 0 41 | 0 1 0 2 42 | 0 0 0 0 43 | 0 1 0 2 44 | 0 1 0 2 45 | 1 1 1 7 46 | 0 0 0 0 47 | 1 1 1 7 48 | 0 0 0 0 49 | 1 1 1 7 50 | 0 0 0 0 51 | 1 1 1 7 52 | 53 | 0 0 0 54 | 0 0 2 55 | 0 3 0 56 | 0 3 2 57 | 3 0 0 58 | 3 0 2 59 | 3 3 0 60 | 3 3 2 61 | 4 7 2 62 | 0 0 7 63 | 0 7 0 64 | 0 7 7 65 | 7 0 0 66 | 7 0 7 67 | 7 7 0 68 | 7 7 7 -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/put_ms_sprt.asm: -------------------------------------------------------------------------------- 1 | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; 4 | ; manage SAT entries of the main ship 5 | ; 6 | 7 | put_ms_sprt: 8 | ld a,(ms_state) 9 | cp ms_explode 10 | jr z,.expl 11 | ; manage SAT entries of the main ship 12 | ld hl,ram_sat 13 | ld a,(yship) 14 | dec a 15 | ld (hl),a 16 | inc hl 17 | ld a,(_xoffset) ; compensate R#18 18 | add a,xship_rel 19 | ld (hl),a 20 | inc hl 21 | ld (hl),0 ; shape 0 hard wired 22 | ; ld (hl),64 ; shape 0 hard wired 23 | inc hl 24 | ld (hl),15 25 | inc hl 26 | 27 | ld a,(yship) 28 | dec a 29 | ld (hl),a 30 | inc hl 31 | ld a,(_xoffset) ; compensate R#18 32 | add a,xship_rel 33 | ld (hl),a 34 | inc hl 35 | ld (hl),4 ; shape 4 hard wired 36 | ; ld (hl),64+4 ; shape 4 hard wired 37 | ld c,a 38 | inc hl 39 | ld (hl),7 40 | inc hl 41 | 42 | ld a,(yship) 43 | add a,16-1 44 | ld (hl),a 45 | inc hl 46 | ld a,(_xoffset) ; compensate R#18 47 | add a,xship_rel+16 48 | ld (hl),a 49 | inc hl 50 | ld (hl),8 ; shape 8 hard wired 51 | ; ld (hl),64+4 ; shape 8 hard wired 52 | inc hl 53 | ld (hl),1 54 | ret 55 | .expl: 56 | ; manage SAT entries of the main ship 57 | ld hl,ram_sat 58 | ld a,(yship) 59 | ld (hl),a 60 | inc hl 61 | ld a,(_xoffset) ; compensate R#18 62 | add a,xship_rel 63 | ld (hl),a 64 | inc hl 65 | ld (hl),0 ; shape 0 hard wired 66 | inc hl 67 | ; ld (hl),10 68 | inc hl 69 | 70 | ld a,(yship) 71 | ld (hl),a 72 | inc hl 73 | ld a,(_xoffset) ; compensate R#18 74 | add a,xship_rel 75 | ld (hl),a 76 | inc hl 77 | ld (hl),4 ; shape 4 hard wired 78 | ld c,a 79 | inc hl 80 | ; ld (hl),11 81 | inc hl 82 | 83 | ld a,(yship) 84 | ld (hl),a 85 | inc hl 86 | ld a,(_xoffset) ; compensate R#18 87 | add a,xship_rel 88 | ld (hl),a 89 | inc hl 90 | ld (hl),8 ; shape 8 hard wired 91 | ; inc hl 92 | ; ld (hl),6 93 | ret 94 | 95 | .landing: 96 | ld hl,ram_sat+4*2 97 | ld a,(yship) 98 | dec a 99 | ld (hl),a 100 | inc hl 101 | ld a,(xmap) 102 | ld d,a 103 | ld a,(xship) 104 | sub a,d 105 | ld (hl),a ; xship_rel 106 | inc hl 107 | ld (hl),0 ; shape 0 hard wired 108 | inc hl 109 | ld (hl),15 110 | 111 | ld de,-7 112 | add hl,de 113 | 114 | ld a,(yship) 115 | dec a 116 | ld (hl),a 117 | inc hl 118 | ld a,(xmap) 119 | ld d,a 120 | ld a,(xship) 121 | sub a,d 122 | ld (hl),a ; xship_rel 123 | inc hl 124 | ld (hl),4 ; shape 4 hard wired 125 | ld c,a 126 | inc hl 127 | ld (hl),7 128 | 129 | ld de,-7 130 | add hl,de 131 | 132 | ld a,(yship) 133 | add a,b 134 | ld (hl),a 135 | inc hl 136 | 137 | ld a,(xmap) 138 | ld d,a 139 | ld a,(xship) 140 | sub a,d 141 | add a,b 142 | ld (hl),a 143 | inc hl 144 | ld (hl),8 ; shape 8 hard wired 145 | inc hl 146 | ld (hl),1 147 | ret 148 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/sprite_collision_window.asm: -------------------------------------------------------------------------------- 1 | 2 | ; xoff db 0 3 | ; yoff db 0 4 | ; xsize db 0 5 | ; ysize db 0 6 | 7 | sprite_0: 8 | defb 0, 0,16,16 9 | sprite_1: 10 | defb 0, 0,16,16 11 | sprite_2: 12 | defb 0, 0,16,16 13 | sprite_3: 14 | defb 0, 0,16,16 15 | sprite_4: 16 | defb 0, 0,16,16 17 | sprite_5: 18 | defb 0, 0,16,16 19 | sprite_6: 20 | defb 0, 0,16,16 21 | sprite_7: 22 | defb 0, 0,16,16 23 | sprite_8: 24 | defb 0, 3,16,11 25 | sprite_9: 26 | defb 0, 3,16,11 27 | sprite_10: 28 | defb 0, 0,16,16 29 | sprite_11: 30 | defb 0, 0,16,16 31 | sprite_12: 32 | defb 0, 0,16,16 33 | sprite_13: 34 | defb 0, 0,16,16 35 | sprite_14: 36 | defb 0, 0,16,16 37 | sprite_15: 38 | defb 0, 0,16,16 39 | sprite_16: 40 | defb 0, 1,16,14 41 | sprite_17: 42 | defb 0, 0,16,16 43 | sprite_18: 44 | defb 0, 2,16,12 45 | sprite_19: 46 | defb 0, 1,16,14 47 | sprite_20: 48 | defb 0, 1,16,14 49 | sprite_21: 50 | defb 0, 2,16,12 51 | sprite_22: 52 | defb 0, 0,16,16 53 | sprite_23: 54 | defb 0, 1,16,14 55 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/uridium_rev7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/uridium_rev7.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/uridium_rev9.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/uridium_rev9.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/ene_code/uridium_revA.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/ene_code/uridium_revA.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/Color_test_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/Color_test_black.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/Color_test_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/Color_test_org.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/Uridium 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/Uridium 2.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/animated.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/animated.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/color_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/color_test.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/l1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/l1.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/lmap6 - Copia (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/lmap6 - Copia (2).png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/lmap6 - Copia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/lmap6 - Copia.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/lmap6.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/lmap6.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/lmap6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/lmap6.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/output.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/scorebar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/scorebar.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/tileset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/tileset.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/toni_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/toni_level.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/uridium2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/uridium2.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/graphics/uridium2_rev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/graphics/uridium2_rev.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/main.txt: -------------------------------------------------------------------------------- 1 | ; (\__/) 2 | ; (='.'=) 3 | ; (")_(") 4 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/convert_line.m: -------------------------------------------------------------------------------- 1 | 2 | function [s,c] = convert_line(line,MAP,sprtpalrgb); 3 | 4 | s = line~=18; 5 | c = 1; 6 | 7 | return -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/convert_line2.m: -------------------------------------------------------------------------------- 1 | 2 | function [s1,s2,c1,c2] = convert_line2(line,MAP,sprtpalrgb) 3 | 4 | e = inf; 5 | for c1=0:15 6 | for c2=(c1+1):15 7 | pal = [MAP(18,:); sprtpalrgb(1+[c1, c2, bitor(c1,c2)],:)]; 8 | m = imapprox(line,MAP,pal, 'nodither'); 9 | ne = sum(sum((MAP(line,:) - pal(1+m,:)).^2)); 10 | 11 | if (ne0; 14 | s2 = ((m==2)+(m==3))>0; 15 | mc1 = c1; 16 | if any(any(m==3)) 17 | mc2 = c2+64; 18 | else 19 | mc2 = c2; 20 | end 21 | end 22 | end 23 | end 24 | c1 = mc1; 25 | c2 = mc2; 26 | 27 | return -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/lrg-858-uridium_ship_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/lrg-858-uridium_ship_sprite.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/lrg-858-uridium_ship_sprite_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/lrg-858-uridium_ship_sprite_org.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/mship03_comp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/mship03_comp.bmp -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/mship03_org.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/mship03_org.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/mship03_scr8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/mship03_scr8.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/mship03_shapes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/mship03_shapes.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/spritepalette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/spritepalette.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/grpx/spritepalette_or.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/grpx/spritepalette_or.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/ms_bllts_frm_coll_wind.asm: -------------------------------------------------------------------------------- 1 | ms_bllts_coll_wind: 2 | defb 5,11,2,14 ; xmin,xmax,ymin,ymax 3 | defb 5,11,4,13 4 | defb 5,11,6,11 5 | defb 5,11,7,10 6 | defb 5,11,8,8 7 | defb 5,11,7,10 8 | defb 5,11,6,11 9 | defb 5,11,4,13 10 | 11 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship02 - saturated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship02 - saturated.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_ani.asm: -------------------------------------------------------------------------------- 1 | mship03_ani: 2 | defb 9 3 | defb 28 4 | defb 30 5 | defb 31 6 | defb 31 7 | defb 33 8 | defb 27 9 | defb 21 10 | defb 21 11 | defb 11 12 | defb 16 13 | defb 12 14 | defb 17 15 | defb 6 16 | defb 0 17 | defb 23 18 | defb 19 19 | defb 26 20 | defb 32 21 | defb 35 22 | defb 35 23 | defb 34 24 | defb 29 25 | defb 2 26 | defb 2 27 | defb 13 28 | defb 1 29 | defb 10 30 | defb 8 31 | defb 3 32 | defb 5 33 | defb 4 34 | defb 9 35 | defb 4 36 | defb 5 37 | defb 3 38 | defb 8 39 | defb 3 40 | defb 5 41 | defb 4 42 | defb 9 43 | defb 18 44 | defb 15 45 | defb 14 46 | defb 7 47 | defb 14 48 | defb 15 49 | defb 18 50 | defb 19 51 | defb 24 52 | defb 20 53 | defb 22 54 | defb 25 55 | defb 22 56 | defb 20 57 | defb 24 58 | defb 19 59 | defb 23 60 | defb 0 61 | defb 6 62 | defb 17 63 | defb 6 64 | defb 0 65 | defb 23 66 | defb 37 67 | defb 36 68 | defb 38 69 | defb 40 70 | defb 41 71 | defb 39 72 | defb 46 73 | defb 47 74 | defb 42 75 | defb 48 76 | defb 50 77 | defb 51 78 | defb 44 79 | defb 49 80 | defb 45 81 | defb 43 82 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_clr.bin: -------------------------------------------------------------------------------- 1 | FEBFFFFBBFFFEMEEHHHFFEEEEHHHNJHHHJJHHHFFFEEEFHMJHHFELHHFBHFHHNFHEMLHHHHFFBEENHFFFFFFHFEEEEEFFHNEEEEEFHFFFFHFBFEBFFFFFBBFFHFHEEFEHHBFEMLHHHHFFBEEHMJHHFELHEMEEHHHFFEEEEHHHNJHHHEEFEHHBFHJJHHHFFFEEEFHHNFHFMMHJHHHFBEEFFMEFJHJEFFEEJEFFMMHJHHHFBEEFFMEFJHJEFFEEJEFMJEJHHHFFBFHFHHHMJFFFHMJEJHHHFFBFHFHNLEFNHJLFBFFFHNLEFNHJLFBFFFHHHMJFFFHNNNNNNNNNNNNNNNNNNNNNNNNNHHHHHHHNNNNNNNHHHHHHHHHHHHH 2 |  3 |  4 |  5 |  6 |  7 |  -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_frm.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship03_frm.bin -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_frm_coll_wind.asm: -------------------------------------------------------------------------------- 1 | mship03_coll_wind: 2 | defb 1,15,3,13 3 | defb 1,15,4,13 4 | defb 1,15,1,15 5 | defb 1,15,6,12 6 | defb 1,15,3,15 7 | defb 1,15,4,14 8 | defb 1,15,5,11 9 | defb 1,15,6,11 10 | defb 1,15,6,11 11 | defb 1,15,1,15 12 | defb 1,15,6,11 13 | defb 1,15,2,13 14 | defb 1,15,5,10 15 | defb 1,15,2,14 16 | defb 1,15,5,11 17 | defb 1,15,3,13 18 | defb 1,15,3,12 19 | defb 1,15,6,11 20 | defb 1,15,2,14 21 | defb 1,15,1,15 22 | defb 1,15,4,14 23 | defb 1,15,1,15 24 | defb 1,15,6,12 25 | defb 1,15,2,14 26 | defb 1,15,3,15 27 | defb 1,15,6,11 28 | defb 2,14,1,15 29 | defb 2,13,1,15 30 | defb 2,14,1,15 31 | defb 3,14,1,15 32 | defb 3,11,1,15 33 | defb 4,10,1,15 34 | defb 5,13,1,15 35 | defb 5,11,1,15 36 | defb 5,11,1,15 37 | defb 6,12,1,15 38 | defb 5,11,4,10 39 | defb 5,9,5,9 40 | defb 3,11,3,11 41 | defb 3,14,1,12 42 | defb 3,12,3,12 43 | defb 3,13,2,12 44 | defb 2,15,2,15 45 | defb 2,13,4,13 46 | defb 2,15,1,13 47 | defb 2,13,2,13 48 | defb 2,13,1,12 49 | defb 1,14,2,15 50 | defb 1,14,2,15 51 | defb 1,14,1,14 52 | defb 1,14,2,15 53 | defb 1,14,1,14 54 | 55 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_gold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship03_gold.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_original_palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship03_original_palette.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_scr8_palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship03_scr8_palette.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/mship03_silver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/mship03_silver.png -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/palette_org.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/palette_org.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/palette_org_MANTA.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/palette_org_MANTA.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/palette_org_enemies.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/palette_org_enemies.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/palette_org_new.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/palette_org_new.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/scrn8.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/scrn8.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/scrn8_bitmap.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/scrn8_bitmap.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/scrn8_or.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/scrn8_or.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/scrn8_unsorted.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/scrn8_unsorted.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/manta/ursd2.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/manta/ursd2.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/ANALMAUL.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/ANALMAUL.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/ANDOROGY.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/ANDOROGY.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/DEARBLUE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/DEARBLUE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/GEPE2M15.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/GEPE2M15.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/INS_TEST.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/INS_TEST.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/JUDAGEAR.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/JUDAGEAR.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/MMAYN.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/MMAYN.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/N68GSET.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/N68GSET.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/NEM2INTR.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/NEM2INTR.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/PARACOVE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/PARACOVE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/PEARLMON.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/PEARLMON.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/PLEASURE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/PLEASURE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/QSOUND04.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/QSOUND04.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/QUARTHBA.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/QUARTHBA.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/SDSNATCH.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/SDSNATCH.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/SOLIDSNK.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/SOLIDSNK.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/SURVIVE.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/SURVIVE.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/USASST1.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/USASST1.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/WILDARMS.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/WILDARMS.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/music/ZELDA.TMU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/music/ZELDA.TMU -------------------------------------------------------------------------------- /shooter_scr8_asmTT/palette256.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/palette256.act -------------------------------------------------------------------------------- /shooter_scr8_asmTT/scorebar.m: -------------------------------------------------------------------------------- 1 | clear 2 | close all 3 | 4 | 5 | red = [0, 36, 73, 109, 146, 182, 219, 255]; 6 | green = [0, 36, 73, 109, 146, 182, 219, 255]; 7 | blue = [0, 73, 146, 255]; 8 | 9 | i=1; 10 | for g=0:7 11 | for r=0:7 12 | for b=0:3 13 | pal(i,:) = ([red(r+1) green(g+1) blue(b+1)]/255); 14 | i=i+1; 15 | end 16 | end 17 | end 18 | 19 | [A1,MAP] = imread('graphics\uridium2.png'); 20 | 21 | figure 22 | image(A1); 23 | axis equal; 24 | colormap(MAP); 25 | 26 | [A1,MAP] = imresize(A1,MAP,[192 256], 'lanczos3'); 27 | [A1,MAP] = imapprox(A1,MAP,pal, 'dither'); 28 | 29 | figure 30 | image(A1); 31 | axis equal; 32 | colormap(pal); 33 | 34 | fid = fopen('opening.bin','wb'); 35 | for y=1:size(A1,1); 36 | t = uint8(A1(y,:)); 37 | fwrite(fid,t,'uchar'); 38 | end 39 | fclose(fid); 40 | 41 | [A2,MAP] = imread('graphics\animated.bmp'); 42 | A2 = imapprox(A2,MAP,pal, 'nodither'); 43 | MAP = pal; 44 | 45 | H = 64; 46 | W = 256; 47 | 48 | B = A2(1:H,1:W); 49 | 50 | H = size(B,1); 51 | W = size(B,2); 52 | figure 53 | image(B); 54 | axis equal; 55 | colormap(MAP); 56 | 57 | fid = fopen('animated.bin','wb'); 58 | for y=1:H 59 | t = uint8(B(y,:)); 60 | fwrite(fid,t,'uchar'); 61 | end 62 | fclose(fid); 63 | 64 | [A2,MAP] = imread('graphics\scorebar.bmp'); 65 | A2 = imapprox(A2,MAP,pal, 'nodither'); 66 | 67 | MAP = pal; 68 | 69 | H = 24; 70 | W = 256; 71 | 72 | B = A2(1:H,1:W); 73 | 74 | H = size(B,1); 75 | W = size(B,2); 76 | figure 77 | image(B); 78 | axis equal; 79 | colormap(MAP); 80 | 81 | fid = fopen('scorebar.bin','wb'); 82 | for y=1:H 83 | t = uint8(B(y,:)); 84 | fwrite(fid,t,'uchar'); 85 | end 86 | fclose(fid); 87 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/checkkbd.asm: -------------------------------------------------------------------------------- 1 | 2 | ; // Line Bit_7 Bit_6 Bit_5 Bit_4 Bit_3 Bit_2 Bit_1 Bit_0 3 | ; // 0 "7" "6" "5" "4" "3" "2" "1" "0" 4 | ; // 1 ";" "]" "[" "\" "=" "-" "9" "8" 5 | ; // 2 "B" "A" ??? "/" "." "," "'" "`" 6 | ; // 3 "J" "I" "H" "G" "F" "E" "D" "C" 7 | ; // 4 "R" "Q" "P" "O" "N" "M" "L" "K" 8 | ; // 5 "Z" "Y" "X" "W" "V" "U" "T" "S" 9 | ; // 6 F3 F2 F1 CODE CAP GRAPH CTRL SHIFT 10 | ; // 7 RET SEL BS STOP TAB ESC F5 F4 11 | ; // 8 RIGHT DOWN UP LEFT DEL INS HOME SPACE 12 | 13 | checkkbd: 14 | di 15 | in a,(0aah) 16 | and 011110000B ; upper 4 bits contain info to preserve 17 | or e 18 | out (0aah),a 19 | in a,(0a9h) 20 | ld l,a 21 | ei 22 | ret 23 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/header.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | 5 | max_enem: equ 12 ; max 12 6 | max_enem_bullets: equ 3 7 | max_bullets: equ 2 ; max number of enemies*2 + ms_bullets + enem_bullets + 3 for ms <= 32 sprites 8 | 9 | maxspeed: equ 4 ; the actual speed is divided by 4 10 | assault_wave_timer_preset: equ 3*60 ; a wave each 3 seconds 11 | enemy_bullet_speed: equ 2 12 | xship_rel: equ (128-8) 13 | 14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 15 | 16 | 17 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/plot_distrucable.asm: -------------------------------------------------------------------------------- 1 | 2 | _plot_distrucable: 3 | 4 | di 5 | ld a, 32 6 | out (0x99),a 7 | ld a, 17+128 8 | out (0x99),a 9 | ei 10 | 11 | ld c, 0x9B 12 | 13 | call _waitvdp 14 | 15 | ld a,l 16 | [4] add a,a 17 | out (0x9B), a ; sx 18 | xor a 19 | out (0x9B), a ; sx (high) 20 | 21 | ld a,mapHeight*16+32 22 | out (0x9B), a ; sy 23 | ld a,1 ; source page for animated tiles 24 | out (0x9B), a ; sy (high-> page 3) 25 | 26 | ld a,e 27 | out (0x9B), a ; dx 28 | xor a 29 | out (0x9B), a ; dx (high) 30 | 31 | ld a,d 32 | out (0x9B), a ; dy 33 | ld a,h ; destination page 34 | out (0x9B), a ; dy (high-> page 0 or 1) 35 | 36 | ld hl,16*257 ; block size 37 | 38 | out (c), l 39 | xor a 40 | out (0x9B), a 41 | out (c), h 42 | out (0x9B), a 43 | out (0x9B), a 44 | out (0x9B), a 45 | 46 | ld a,11010000B 47 | out (0x9B), a ; command HMMM 48 | ret 49 | 50 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/plot_line2.asm: -------------------------------------------------------------------------------- 1 | plot_line1: 2 | ld a,(_xoffset) 3 | add a,e 4 | ld e,a ; de = y*256+x 5 | 6 | ld a,(_displaypage) 7 | [2] add a,a 8 | di 9 | out (0x99),a ; set bits 14-16 10 | ld a,14+128 11 | out (0x99),a 12 | ei 13 | ld d,0x40 ; write access 14 | jp _1stblock ; trace 16 pixels 15 | 16 | plot_line2: 17 | inc h 18 | ld a,(_xoffset) 19 | add a,e 20 | ld e,a ; de = y*256+x 21 | 22 | ld a,(_displaypage) 23 | [2] add a,a 24 | di 25 | out (0x99),a ; set bits 14-16 26 | ld a,14+128 27 | out (0x99),a 28 | ei 29 | ld d,0x50 ; write access 30 | call _2nd ; trace 48 pixels 31 | 32 | ld a,(_displaypage) 33 | [2] add a,a 34 | or 1 35 | di 36 | out (0x99),a ; set bits 14-16 37 | ld a,14+128 38 | out (0x99),a 39 | ei 40 | ld d,0x40 ; write access 41 | call _1st ; trace 64 pixels 42 | 43 | ld a,(_displaypage) 44 | [2] add a,a 45 | or 2 46 | di 47 | out (0x99),a ; set bits 14-16 48 | ld a,14+128 49 | out (0x99),a 50 | ei 51 | ld d,0x40 ; write access 52 | call _2nd ; trace 48 pixels 53 | 54 | ret 55 | 56 | 57 | ; plot_line: 58 | ; ld a,(_xoffset) 59 | ; add a,e 60 | ; ld e,a ; de = y*256+x 61 | 62 | ; ld a,(_displaypage) 63 | ; [2] add a,a 64 | ; di 65 | ; out (0x99),a ; set bits 14-16 66 | ; ld a,14+128 67 | ; out (0x99),a 68 | ; ei 69 | ; ld d,0x40 ; write access 70 | ; call _1st 71 | 72 | ; ld a,(_displaypage) 73 | ; [2] add a,a 74 | ; or 1 75 | ; di 76 | ; out (0x99),a ; set bits 14-16 77 | ; ld a,14+128 78 | ; out (0x99),a 79 | ; ei 80 | ; ld d,0x40 ; write access 81 | ; call _1st 82 | 83 | ; ld a,(_displaypage) 84 | ; [2] add a,a 85 | ; or 2 86 | ; di 87 | ; out (0x99),a ; set bits 14-16 88 | ; ld a,14+128 89 | ; out (0x99),a 90 | ; ei 91 | ; ld d,0x40 ; write access 92 | ; call _2nd 93 | 94 | ; ret 95 | 96 | _1stblock: 97 | ; hl -> Map in RAM 98 | ld a,(hl) 99 | [3] rlca 100 | and 00000111B 101 | add a,:_tiles0 102 | ld (_kBank4),a 103 | ld a,(hl) 104 | and 00011111B 105 | add a,high _tiles0 106 | ld h,a 107 | ld a,(_xoffset) 108 | [4] add a,a 109 | ld l,a 110 | 111 | ; hl -> tile column 112 | 113 | ld bc,16*256+0x98 114 | di 115 | 1: ld a,e ;set bits 0-7 116 | out (0x99),a 117 | ld a,d ;set bits 8-13 118 | out (0x99),a 119 | inc d 120 | outi 121 | jp nz,1b 122 | ei 123 | ret 124 | 125 | _1st: 126 | ; hl -> Map in RAM 127 | push hl 128 | 129 | ld a,(hl) 130 | [3] rlca 131 | and 00000111B 132 | add a,:_tiles0 133 | ld (_kBank4),a 134 | ld a,(hl) 135 | and 00011111B 136 | add a,high _tiles0 137 | ld h,a 138 | ld a,(_xoffset) 139 | [4] add a,a 140 | ld l,a 141 | 142 | ; hl -> tile column 143 | 144 | ld bc,16*256+0x98 145 | di 146 | 1: ld a,e ;set bits 0-7 147 | out (0x99),a 148 | ld a,d ;set bits 8-13 149 | out (0x99),a 150 | inc d 151 | outi 152 | jp nz,1b 153 | ei 154 | 155 | pop hl 156 | inc h 157 | _2nd: 158 | repeat 3 159 | push hl 160 | 161 | ld a,(hl) 162 | [3] rlca 163 | and 00000111B 164 | add a,:_tiles0 165 | ld (_kBank4),a 166 | ld a,(hl) 167 | and 00011111B 168 | add a,high _tiles0 169 | ld h,a 170 | ld a,(_xoffset) 171 | [4] add a,a 172 | ld l,a 173 | 174 | ; hl -> tile column 175 | 176 | ld bc,16*256+0x98 177 | di 178 | 1: ld a,e ;set bits 0-7 179 | out (0x99),a 180 | ld a,d ;set bits 8-13 181 | out (0x99),a 182 | inc d 183 | outi 184 | jp nz,1b 185 | ei 186 | 187 | pop hl 188 | inc h 189 | endrepeat 190 | ret 191 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/print.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | 5 | _print_probe 6 | ld a,(_mcprobeb) 7 | ld e,a 8 | ld d,0 9 | ld hl,32*(64-2) 10 | add hl,de 11 | ex de,hl 12 | ld hl,2*(23*32+0) 13 | ; call plot_foreground 14 | 15 | ld de,(_ticxframe) 16 | ld d,0 17 | ld bc,_buffer 18 | call int2ascii 19 | 20 | ld a,(_buffer+2) 21 | ld e,a 22 | ld d,0 23 | ld hl,32*(64-2)-'0' 24 | add hl,de 25 | ex de,hl 26 | ld hl,2*(22*32) 27 | ; call plot_foreground 28 | 29 | ld a,(_buffer+3) 30 | ld e,a 31 | ld d,0 32 | ld hl,32*(64-2)-'0' 33 | add hl,de 34 | ex de,hl 35 | ld hl,2*(22*32+1) 36 | ; call plot_foreground 37 | 38 | ld a,(_buffer+4) 39 | ld e,a 40 | ld d,0 41 | ld hl,32*(64-2)-'0' 42 | add hl,de 43 | ex de,hl 44 | ld hl,2*(22*32+2) 45 | ; call plot_foreground 46 | ret 47 | 48 | 49 | _print_fps: 50 | ld a,(_buffer+3) 51 | ld e,a 52 | ld d,0 53 | ld hl,32*(64-2)-'0' 54 | add hl,de 55 | ex de,hl 56 | 57 | ld hl,2*(23*32+30) 58 | ; call plot_foreground 59 | 60 | ld a,(_buffer+4) 61 | ld e,a 62 | ld d,0 63 | ld hl,32*(64-2)-'0' 64 | add hl,de 65 | ex de,hl 66 | 67 | ld hl,2*(23*32+31) 68 | ; call plot_foreground 69 | ret 70 | 71 | ;------------------------------------- 72 | _compute_fps: 73 | ld de,(_fps) 74 | ld bc,_buffer 75 | 76 | int2ascii: 77 | 78 | ; in de input 79 | ; in bc output 80 | 81 | ex de,hl 82 | ld e,c 83 | ld d,b 84 | 85 | Num2asc: 86 | ld bc,-10000 87 | call Num1 88 | ld bc,-1000 89 | call Num1 90 | ld bc,-100 91 | call Num1 92 | ld c,-10 93 | call Num1 94 | ld c,-1 95 | 96 | Num1: 97 | ld a,'0'-1 ; '0' in the tileset 98 | 99 | Num2: 100 | inc a 101 | add hl,bc 102 | jr c,Num2 103 | sbc hl,bc 104 | 105 | ld (de),a 106 | inc de 107 | ret 108 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/probe_level.asm: -------------------------------------------------------------------------------- 1 | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; peek a tile 4 | ; in a: y (screen coordinate) 5 | ; hl: x (level coordinate) 6 | ; out a: tile at x,y 7 | ; hl: pointer in level_buffer to tile 8 | 9 | probe_level: 10 | 11 | ld bc,_levelmap 12 | [4] rrca 13 | and 15 14 | [4] add hl,hl 15 | ld l,h 16 | ld h,a 17 | add hl,bc 18 | ld a,(hl) 19 | ret 20 | 21 | struct star_data 22 | x db 0 23 | y db 0 24 | add dw 0 25 | ends 26 | 27 | starlist: 28 | star_data 32,64+10, 32/16+(10/16)*256 29 | star_data 208,64+50,208/16+(50/16)*256 30 | star_data 128,64+52,128/16+(52/16)*256 31 | starlist2: 32 | star_data 16,64+5, 16/16+((64+ 5)/16)*256 33 | star_data 48,64+17, 48/16+((64+17)/16)*256 34 | star_data 112,64+26,112/16+((64+26)/16)*256 35 | starlist3: 36 | star_data 48,64+17, 48/16+((128+17)/16)*256 37 | star_data 112,64+26,112/16+((128+26)/16)*256 38 | star_data 224,64+42,224/16+((128+42)/16)*256 39 | 40 | test_star: 41 | di 42 | ld a,(_xoffset) 43 | [4] add a,a 44 | ld c,a 45 | 46 | ld a,(_displaypage) 47 | [2] add a,a 48 | ld b,a 49 | 50 | ld ix,starlist 51 | call .star_loop 52 | 53 | inc b 54 | ld a,b 55 | 56 | call .star_loop 57 | 58 | inc b 59 | ld a,b 60 | 61 | call .star_loop 62 | 63 | ld a,(_xoffset) 64 | ld (__xoffset),a 65 | ei 66 | ret 67 | 68 | .star_loop 69 | out (0x99),a ;set bits 14-16 70 | ld a,14+128 71 | out (0x99),a 72 | 73 | 74 | repeat 3 75 | 1: ld e,(ix+star_data.add) 76 | ld d,(ix+star_data.add+1) 77 | ld hl,(_levelmap_pos) 78 | add hl,de 79 | ld a,(hl) 80 | and a 81 | jp nz,2f 82 | ld a,(__xoffset) ; compensate R#18 83 | add a,(ix+star_data.x) 84 | out (0x99),a 85 | ld a,(ix+star_data.y) ; set bits 8-13 86 | out (0x99),a 87 | xor a 88 | out (0x98),a 89 | call .set_star 90 | 2: ld de,star_data 91 | add ix,de 92 | endrepeat 93 | ret 94 | 95 | .set_star: 96 | ld a,c 97 | cp (ix+star_data.x) 98 | ret z 99 | ld a,(_xoffset) ; compensate R#18 100 | add a,(ix+star_data.x) 101 | out (0x99),a 102 | ld a,(ix+star_data.y) ; set bits 8-13 103 | out (0x99),a 104 | ld a,255 105 | out (0x98),a 106 | ret 107 | 108 | ; unused_other: 109 | ; ld hl,(xship) 110 | ; ld a,(yship) 111 | ; call probe_level 112 | ; exx 113 | ; ld hl,_levelmap+256 114 | ; ld bc,13 115 | ; cpir 116 | ; ret nz 117 | ; dec h 118 | ; dec l 119 | ; ld a,(hl) 120 | ; exx 121 | ; ld (hl),a 122 | ; exx 123 | ; ld a,l 124 | ; sub a,low _levelmap 125 | ; ld l,a 126 | ; push hl ; L block# 127 | 128 | ; ld a,(_displaypage) 129 | ; ld h,a 130 | ; ld a,(_xoffset) ; compensate R#18 131 | ; add a,xship_rel 132 | ; and 0xF0 133 | ; ld e,a ; destX 134 | ; ld a,(yship) 135 | ; and 0xF0 136 | ; ld d,a ; destY 137 | 138 | ; push de 139 | ; call _plot_distrucable 140 | ; pop de 141 | 142 | ; pop hl 143 | ; ld a,h 144 | ; xor 1 145 | ; ld h,a 146 | 147 | ; ret 148 | ; ld a,(dxmap) 149 | ; rlc a 150 | ; jp nc,1f ; >0 == dx 151 | ; ; <0 == sx 152 | ; ld a,-16 153 | ; add a,e 154 | ; ld e,a 155 | ; jp _plot_distrucable 156 | 157 | ; 1: ld a,+16 158 | ; add a,e 159 | ; ld e,a 160 | ; jp _plot_distrucable 161 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/sprts.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | _hw_sprite_init: 5 | 6 | teller:=0 7 | repeat 4 ; 4 SPTs, at 0xD800, 0xE000, 0xE800, 0xF000 8 | ld c,0 9 | ld de,0F000h-64*32*3+64*32*teller 10 | call _vdpsetvramwr 11 | ld d, :sprtdata 12 | ld e, 1 13 | call outvram 14 | teller:=teller+1 15 | endrepeat 16 | 17 | ld c,0 18 | ld de,0FA00h 19 | call _vdpsetvramwr 20 | 21 | ld a,0xD8 22 | out (0x98),a 23 | 24 | ret 25 | 26 | 27 | ; load static colors 28 | load_colors: 29 | ld c,0 30 | ld de,0F830h ; 0FA00h-512+3*16 31 | call _vdpsetvramwr 32 | call bull_color 33 | 34 | ld c,0 35 | ld de,0FD80h ; 0FE00h-512+max_enem*16 36 | call _vdpsetvramwr 37 | call bull_color 38 | ret 39 | 40 | 41 | bull_color: 42 | ld b,16*(max_bullets+max_enem_bullets) 43 | ld a,15 44 | 1: 45 | out (0x98),a 46 | djnz 1b 47 | ret 48 | 49 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/turbo.asm: -------------------------------------------------------------------------------- 1 | 2 | rdslt equ 0x000c 3 | CALSLT equ 0x001c 4 | chgcpu equ 0x0180 ; change cpu mode 5 | exttbl equ 0xfcc1 ; main rom slot 6 | 7 | ; Switch to r800 rom mode 8 | 9 | _set_r800: 10 | in a,(0aah) 11 | and 011110000B ; upper 4 bits contain info to preserve 12 | or 6 13 | out (0aah),a 14 | in a,(0a9h) 15 | ld l,a 16 | 17 | ld a,(0x002d) 18 | cp 3 ; this is a TR 19 | ld a,l 20 | jr z,set_turbo_tr 21 | ; this is anything else 22 | and 0x02 ; CTR 23 | ret nz ; if NZ, CTR is not pressed set the turbo 24 | 25 | ld A,(chgcpu) 26 | cp 0C3h 27 | ld a,81h ; R800 ROM mode or any other turbo 28 | call z,chgcpu 29 | ret 30 | 31 | set_turbo_tr 32 | and 0x02 ; CTR 33 | ret z ; if Z, CTR is pressed -> do not set the turbo 34 | ld a,81h ; R800 ROM mode 35 | jp chgcpu 36 | 37 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/sources/vdpio.asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;------------------------------------- 4 | _cls: 5 | ld c,0 6 | ld d,c 7 | ld e,c 8 | di 9 | call _vdpsetvramwr 10 | ld b,c 11 | ld e,1 12 | 1: xor a 13 | out (0x98),a 14 | cpi 15 | jp pe,1b 16 | dec e 17 | jp nz,1b 18 | ret 19 | _cls0: 20 | ld c,0 21 | ld d,c 22 | ld e,c 23 | di 24 | call _vdpsetvramwr 25 | ei 26 | ld bc,mapHeight*16*256 27 | xor a 28 | 1: out (0x98),a 29 | cpi 30 | jp pe,1b 31 | ret 32 | 33 | ;------------------------------------- 34 | 35 | vdpport1 equ 0x99 36 | vdpport2 equ 0x9A 37 | 38 | ; levelcolors: 39 | ; incbin "palette.bin" 40 | 41 | ; _SetPalet: 42 | ; di 43 | ; xor a ;Set pointer to zero. 44 | ; out (vdpport1),a 45 | ; ld a,16 | 010000000B 46 | ; out (vdpport1),a 47 | 48 | ; ld hl,levelcolors 49 | ; ld bc,vdpport2+32*256 50 | ; otir 51 | ; ei 52 | ; ret 53 | 54 | ;Set VDP for writing at address CDE (17-bit) 55 | 56 | _vdpsetvramwr: 57 | ld a,c 58 | _vdpsetvramwr2: 59 | ;Set VDP for writing at address ADE (17-bit) ; 60 | rlc d 61 | rla 62 | rlc d 63 | rla 64 | srl d ; primo shift, il secondo dopo la out 65 | 66 | out (0x99),a ;set bits 14-16 67 | ld a,14+128 68 | out (0x99),a 69 | 70 | srl d ; secondo shift. 71 | _vdpsetvramwr14 72 | ld a,e ;set bits 0-7 73 | out (0x99),a 74 | ld a,d ;set bits 8-13 75 | or 0x40 ; + write access 76 | out (0x99),a 77 | ret 78 | 79 | ;Set VDP port #98 to start reading at address CDE (17-bit) ; 80 | 81 | _vdpsetvramrd: 82 | ld a,c 83 | ;Set VDP port #98 to start reading at address ADE (17-bit) ; 84 | rlc d 85 | rla 86 | rlc d 87 | rla 88 | srl d ; primo shift, il secondo dopo la out 89 | 90 | out (0x99),a ; set bits 14-16 91 | ld a,14+128 92 | out (0x99),a 93 | 94 | srl d ; secondo shift. 95 | ld a,e ; set bits 0-7 96 | out (0x99),a 97 | ld a,d ; set bits 8-13 98 | and 0x3F 99 | out (0x99),a 100 | ret 101 | 102 | ;Display page E in screen 5 103 | _setpage: 104 | ld a,e 105 | [5] add a,a ;x32 106 | or 00011111B 107 | di 108 | out (0x99),a 109 | ld a,2+128 110 | out (0x99),a 111 | ei 112 | ret 113 | 114 | chgmod equ 0x005f ;change graphic mode 115 | RDSLT equ 0x000c ;read address HL in slot A 116 | KILBUF equ 0x0156 ;clear keyboard buffer 117 | 118 | set_scr: 119 | 120 | // sprites 16x16 121 | ld a,(RG1SAV) 122 | or 00000010B 123 | ld (RG1SAV),a 124 | 125 | // enable sprites + TP 126 | ld a,(RG8SAV) 127 | or 00100010B 128 | ld (RG8SAV),a 129 | 130 | // Set @50Hz (only PAL is supported) 131 | ld a,(SEL_NTSC) 132 | and a 133 | jr nz,1f 134 | 135 | ld a,(RG9SAV) 136 | or 00000010B ; PAL 137 | jr 2f 138 | 1: 139 | ld a,(RG9SAV) 140 | and 11111101B ; NTSC 141 | 2: ld (RG9SAV),a 142 | 143 | ld a,8 144 | call chgmod 145 | 146 | // border color 147 | xor a 148 | ld (RG7SAV),a 149 | out (0x99),a 150 | ld a,7+128 151 | out (0x99),a 152 | ret 153 | 154 | 155 | 156 | _waitvdp: 157 | ld a,2 158 | out (0x99),a 159 | ld a, 128+15 160 | out (0x99),a 161 | 1: in a,(0x99) 162 | rrca 163 | jp c,1b 164 | 165 | ret 166 | 167 | ; .inf: 168 | ; ld a,r ; random colour 169 | ; out (0x99),a 170 | ; ld a,7+128 171 | ; out (0x99),a 172 | ; jp 1b 173 | -------------------------------------------------------------------------------- /shooter_scr8_asmTT/tilessetting256ram.m: -------------------------------------------------------------------------------- 1 | clear 2 | close all 3 | 4 | 5 | red = [0, 36, 73, 109, 146, 182, 219, 255]; 6 | green = [0, 36, 73, 109, 146, 182, 219, 255]; 7 | blue = [0, 73, 146, 255]; 8 | 9 | i=1; 10 | for g=0:7 11 | for r=0:7 12 | for b=0:3 13 | pal(i,:) = ([red(r+1) green(g+1) blue(b+1)]/255); 14 | i=i+1; 15 | end 16 | end 17 | end 18 | 19 | %[A2,MAP] = imread('NUMBERS.bmp'); 20 | 21 | %[A2,MAP] = imread('GNG2048x176.PNG'); 22 | %[A2,MAP] = imread('graphics\lmap6.bmp'); 23 | 24 | [A2,MAP] = imread('graphics\toni_level.png'); 25 | 26 | 27 | [ A2 MAP] = imapprox(A2,MAP,pal, 'nodither'); 28 | pal = MAP; 29 | %MAP = pal; 30 | 31 | S = fix(size(A2)/16).*16; 32 | H = S(1); 33 | W = S(2); 34 | 35 | B = A2(1:H,1:W); 36 | 37 | H = size(B,1); 38 | W = size(B,2); 39 | 40 | image(B); 41 | axis equal; 42 | colormap(MAP); 43 | 44 | InpTiles = im2col(B,'indexed',[16 16],'distinct'); 45 | 46 | 47 | % if (0) 48 | % RGB = ind2rgb(InpTiles',MAP); 49 | % t = [RGB(:,:,1) RGB(:,:,2) RGB(:,:,3)]; 50 | % [IDX, C] = KMEANS(t, 128,'EmptyAction','singleton','Replicates',10); 51 | % UniqueTiles = zeros(128,256,3); 52 | % UniqueTiles (:,:,1) = C(:,1:256); 53 | % UniqueTiles (:,:,2) = C(:,257:512); 54 | % UniqueTiles (:,:,3) = C(:,513:768); 55 | % UniqueTiles = rgb2ind(UniqueTiles,MAP); 56 | % InpMap=IDX; 57 | % else 58 | UniqueTiles = unique(InpTiles','rows'); 59 | 60 | fun = @(block_struct) norm(double(block_struct.data)); 61 | C = blockproc(double(UniqueTiles),[1 256],fun); 62 | 63 | [~,i] = sort(C,1); 64 | UniqueTiles = UniqueTiles(i,:); 65 | 66 | [~,InpMap] = ismember(InpTiles',UniqueTiles,'rows'); 67 | % end 68 | 69 | Ntiles = (H/16*W/16); 70 | 71 | ReducedImage = UniqueTiles(InpMap,:); 72 | 73 | A = col2im(ReducedImage',[16 16],[H W],'distinct'); 74 | 75 | figure 76 | image(A); 77 | axis equal; 78 | colormap(MAP) 79 | 80 | UniqueTiles = UniqueTiles'; 81 | 82 | K = size(UniqueTiles,2) 83 | T = UniqueTiles; 84 | 85 | %if (K<=256) 86 | % T = [UniqueTiles zeros(256,256-K)]; 87 | % T = UniqueTiles; 88 | %else 89 | % T = UniqueTiles(:,1:256) ; 90 | %end 91 | 92 | %TT = [T(1:16:256,:); T(2:16:256,:); T(3:16:256,:); T(4:16:256,:)] 93 | 94 | 95 | % fun2 = inline('rgb2ind(ind2rgb(x,M),p,s)','x','M','p','s'); 96 | % TT = blkproc(T,[256 1],fun2,MAP,pal,'nodither'); 97 | 98 | TT = T; 99 | 100 | B = col2im(TT,[16 16],[16 16*K],'distinct'); 101 | 102 | fun1 = inline('transpose(x)'); 103 | C = blkproc(B,[16 16],fun1)'; 104 | 105 | CC = uint8(zeros((fix(size(C,1)/256)+1)*256,16)); 106 | CC(1:size(C,1),:) = C; 107 | 108 | n = size(CC,1)/256; 109 | D = []; 110 | x = 1; 111 | for i=1:n 112 | D = [D CC(x:(x+255),:)]; 113 | x = x+256; 114 | end 115 | 116 | 117 | figure 118 | image(D) 119 | axis equal; 120 | colormap(pal) 121 | imwrite(D,pal,'graphics\tileset.png','png'); 122 | 123 | NewMap = InpMap; 124 | 125 | X = reshape(NewMap,H/16,W/16); 126 | 127 | figure; 128 | image(X) 129 | axis equal; 130 | colormap(gray) 131 | 132 | fid = fopen('datamap.bin','wb'); 133 | for i=1:(H/16) 134 | fwrite(fid,X(i,:)-1,'uchar'); 135 | end 136 | fclose(fid); 137 | 138 | ReducedImage = T(:,NewMap); 139 | 140 | A = col2im(ReducedImage,[16 16],[H W],'distinct'); 141 | 142 | figure 143 | image(A) 144 | colormap(MAP) 145 | imwrite(A,MAP,'graphics\output.png','png'); 146 | 147 | fid = fopen('tiles.bin','wb'); 148 | for y=1:K 149 | t = uint8(TT(:,y)); 150 | fwrite(fid,t,'uchar'); 151 | end 152 | fclose(fid); 153 | 154 | %figure; 155 | %image(kron(1:256,ones(256))) 156 | %colormap(MAP); 157 | 158 | size(unique(C,'rows')) -------------------------------------------------------------------------------- /shooter_scr8_asmTT/urd_scr8.rom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maneldemo/Uridium-2-for-msx/0c71745fdae56a1772df1aa9e6e991853e3a8a65/shooter_scr8_asmTT/urd_scr8.rom --------------------------------------------------------------------------------