From 6535ef4dc3ad20abea4f02b31972f800f0e561fb Mon Sep 17 00:00:00 2001 From: MichaelValwin Date: Fri, 6 Sep 2024 12:53:33 +0200 Subject: [PATCH] Added a bunch of roms --- index.html | 11 +++++++++-- roms/Airplane.ch8 | Bin 0 -> 356 bytes roms/Cave.ch8 | Bin 0 -> 882 bytes roms/Chip8 Picture.ch8 | Bin 0 -> 164 bytes roms/Fishie [Hap, 2005].ch8 | Bin 0 -> 160 bytes roms/Life [GV Samways, 1980].ch8 | Bin 0 -> 256 bytes roms/Pong (1 player).ch8 | Bin 0 -> 246 bytes roms/SQRT Test [Sergey Naydenov, 2010].ch8 | Bin 0 -> 386 bytes roms/Timebomb.ch8 | Bin 0 -> 144 bytes roms/Worm V4 [RB-Revival Studios, 2007].ch8 | Bin 0 -> 677 bytes src/keyboard.ts | 2 +- 11 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 roms/Airplane.ch8 create mode 100755 roms/Cave.ch8 create mode 100755 roms/Chip8 Picture.ch8 create mode 100755 roms/Fishie [Hap, 2005].ch8 create mode 100755 roms/Life [GV Samways, 1980].ch8 create mode 100755 roms/Pong (1 player).ch8 create mode 100755 roms/SQRT Test [Sergey Naydenov, 2010].ch8 create mode 100755 roms/Timebomb.ch8 create mode 100755 roms/Worm V4 [RB-Revival Studios, 2007].ch8 diff --git a/index.html b/index.html index 7b43ee2..20c9333 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,13 @@ './roms/7-beep.ch8', './roms/8-scrolling.ch8', './roms/Maze[David Winter, 199x].ch8', + './roms/Airplane.ch8', + './roms/Cave.ch8', + './roms/Life [GV Samways, 1980].ch8', + './roms/Pong (1 player).ch8', + './roms/SQRT Test [Sergey Naydenov, 2010].ch8', + './roms/Timebomb.ch8', + './roms/Worm V4 [RB-Revival Studios, 2007].ch8' ]; // Set user keys @@ -75,7 +82,7 @@ emulator.startAudio(audioContext, volume); // Load ROM - fetch(fullDirRoms[6]) + fetch(fullDirRoms[3]) .then(response => response.arrayBuffer()) .then(arrayBufferRom => { let romData = new Uint8Array(arrayBufferRom); @@ -90,7 +97,7 @@ emulator.emulateCycle(); emulator.drawToCanvas(emulatorCanvas, 8); } - }, 60); + }, 10); \ No newline at end of file diff --git a/roms/Airplane.ch8 b/roms/Airplane.ch8 new file mode 100755 index 0000000000000000000000000000000000000000..cac880477e824b0948ed65d195c4cc44896577d0 GIT binary patch literal 356 zcmc~|$Y#l5%w@=9QdUz|NH9ob{2=;){iB2dgOG@lld?iBBT$s%!9ry&F9spI#Ys0N zRx;k0=+7wh#ZyA)iP9z^IUh!)93Lj7Dj#O04j&e!X+Eq$))H3$le;T{}>+lu;nmjF$i%buzirI{_o8o z%mMN@!vm0*Fozc-!@C5g4-#379TzGXJ0F1j3A8Qb?jweGDU!(yi^DEE7IPRo2Gj=j3rE$9U0y={P^GSK%k)GonZN@6$=^|0Amq% A0ssI2 literal 0 HcmV?d00001 diff --git a/roms/Cave.ch8 b/roms/Cave.ch8 new file mode 100755 index 0000000000000000000000000000000000000000..d5a865fec5c4ce30cc9f32c4da649ed49ebca1e0 GIT binary patch literal 882 zcmbVJO=}ZD7@qy;cCu*I83Jn#r6lnp9z<`YNDdXklxW+SkV6fN>_#ybM0ROudq@ts z=XqzIdB0``B>@T%cgcm% zw_EdKT|A2La*5=~9G@pQr2KGdQU({pjA%wKUldJJmhz*r69?)ls7AR_t9_adwRg-ZNH8w7DW_ z;G2`|WcDVab?WUHER$Vq8*tP9j%?pi-nS;6x)0qxdk2(|KK#QK-WAmdE5!1QPc=hp zz-W9f+7#=Mw{{*njzZNn-ce_lE>B)Yq*@+(kkkkcXp-o`1&^jg| zCI%{j2MZoFeB^TE7ut};(Iw=?AT;flgiuSPNTbLHt_GF{7LffyE%^)=1be<*5M+4w zi7SC2ks*(v=)V(#P)iQOqUH;NEgvoj7W`3KR>-2XtN@A&L3|(viGwjqA&U>t-9F4h Qzf2f~n1u9zq@EBH0N{~CP5=M^ literal 0 HcmV?d00001 diff --git a/roms/Pong (1 player).ch8 b/roms/Pong (1 player).ch8 new file mode 100755 index 0000000000000000000000000000000000000000..65d63106cc088da4fc0e2cfad10e01453e724620 GIT binary patch literal 246 zcmc~|%I3+j&*fS4>ejY9*YX&YuB0(%FeM~>5dFYzz#t@bT)dnk^Z%j`*9svj5*QyW ztp1n40wkFd%J`Se1!P^dXB1kL$kZSTq<4YI6JYXCg2D$0 zr7L|VK$qDWGXh=r&zLcTNl2{nzvsWq|3W7!89kXY853AONR%ECUSQkzA`E3$(!pGZNeofuqCKzq>aaVGDGK{Y9of^-l< z_`*_drRd$#lGK%#oQkj&DRT4^N<|QsXiTa%aA7?2!&Mh$nmyw?gbe%a$ywNWfUM63 zh_%o;hFKGBWHMaXpWSOjh%A?x7cpWzsRk@+M;_@;Qb{Z3sqpTvOy?sI9GPl!VP1*` grHA>+Jjh$`-cX+{=bR?8qd|+E@7K1<8|(+bFV!QG%>V!Z literal 0 HcmV?d00001 diff --git a/roms/Timebomb.ch8 b/roms/Timebomb.ch8 new file mode 100755 index 0000000000000000000000000000000000000000..76828c8f083d98916d864e4d2f44e452ec89585d GIT binary patch literal 144 zcmZR0kj1KGmB931p^#Jp2awcCU8^Em4#gj}Jt_Uw~`ziM^ zb@9|&o4Q!KML_o1GYH!p;CEn9E~sFf@gRc%WLDb$M7DG$2z?V;rmO^VNisu<%_62xsUI}2m=?2r1e2eDB*Q!929Wt+8-h}pzDSfZ zD$5AHN#Xh;acgrIYqu!K6<|MkG=w$;_%nP670#<;WO%oD`WgGP@^`NIGl1B4t_YX0 gFfjc2!@$6D-~kXUc);Lb5K&?9p#cVf;X0xL0HtZG$N&HU literal 0 HcmV?d00001 diff --git a/src/keyboard.ts b/src/keyboard.ts index b2ad974..fe13ae6 100644 --- a/src/keyboard.ts +++ b/src/keyboard.ts @@ -7,8 +7,8 @@ const KEYS = 16; // 7 8 9 E // A 0 B F class Keyboard { + // keys keys : Uint8Array; - userKeyboardMap: Map; constructor() {