Added a bunch of roms
This commit is contained in:
parent
e6bdded35e
commit
6535ef4dc3
11
index.html
11
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);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
BIN
roms/Airplane.ch8
Executable file
BIN
roms/Airplane.ch8
Executable file
Binary file not shown.
BIN
roms/Cave.ch8
Executable file
BIN
roms/Cave.ch8
Executable file
Binary file not shown.
BIN
roms/Chip8 Picture.ch8
Executable file
BIN
roms/Chip8 Picture.ch8
Executable file
Binary file not shown.
BIN
roms/Fishie [Hap, 2005].ch8
Executable file
BIN
roms/Fishie [Hap, 2005].ch8
Executable file
Binary file not shown.
BIN
roms/Life [GV Samways, 1980].ch8
Executable file
BIN
roms/Life [GV Samways, 1980].ch8
Executable file
Binary file not shown.
BIN
roms/Pong (1 player).ch8
Executable file
BIN
roms/Pong (1 player).ch8
Executable file
Binary file not shown.
BIN
roms/SQRT Test [Sergey Naydenov, 2010].ch8
Executable file
BIN
roms/SQRT Test [Sergey Naydenov, 2010].ch8
Executable file
Binary file not shown.
BIN
roms/Timebomb.ch8
Executable file
BIN
roms/Timebomb.ch8
Executable file
Binary file not shown.
BIN
roms/Worm V4 [RB-Revival Studios, 2007].ch8
Executable file
BIN
roms/Worm V4 [RB-Revival Studios, 2007].ch8
Executable file
Binary file not shown.
@ -7,8 +7,8 @@ const KEYS = 16;
|
||||
// 7 8 9 E
|
||||
// A 0 B F
|
||||
class Keyboard {
|
||||
// keys
|
||||
keys : Uint8Array;
|
||||
|
||||
userKeyboardMap: Map<number, number>;
|
||||
|
||||
constructor() {
|
||||
|
Loading…
Reference in New Issue
Block a user