taniarascia / chip8 Goto Github PK
View Code? Open in Web Editor NEW๐ฎ โ A Chip-8 emulator written in JavaScript for web, CLI, and native UI.
Home Page: https://taniarascia.github.io/chip8/
License: MIT License
๐ฎ โ A Chip-8 emulator written in JavaScript for web, CLI, and native UI.
Home Page: https://taniarascia.github.io/chip8/
License: MIT License
This is so cool! Found chip8 through the dependency list on npm.im/raylib. Just a note that I've updated it to raylib 3.5.0. Tested out the update in chip8, and it still works well.
Awesome work! ๐
The action of W always opens the Wall game instead of moving left or right in Tetris or Invaders.
Command ADD(Vx, Vy)
is described like this:
8xy4 - ADD Vx, Vy
Set Vx = Vx + Vy, set VF = carry.
The values of Vx and Vy are added together. If the result is greater than 8 bits (i.e., > 255,) VF is set to 1, otherwise 0. Only the lowest 8 bits of the result are kept, and stored in Vx.
But at
Line 249 in cc9dd63
this.registers[args[0]]
is already modified at the previous lineLine 248 in cc9dd63
I think Line#249 should be moved before Line#248.
After cloning the repo I tried to install node modules and failed.
PS C:\Users\szenadam\dev\chip8> npm i
> [email protected] postinstall C:\Users\szenadam\dev\chip8\node_modules\raylib
> cmake-js compile
[ 'C:\\Program Files\\nodejs\\node.exe',
'C:\\Users\\szenadam\\dev\\chip8\\node_modules\\cmake-js\\bin\\cmake-js',
'compile' ]
ERR! OMG CMake is not installed. Install CMake.
ERR! OMG CMake is not installed. Install CMake.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\szenadam\AppData\Roaming\npm-cache\_logs\2020-01-09T08_57_06_862Z-debug.log
Update README so that it is clear that CMake is also a dependency before running npm i
There is no way to control the games, key pressing doesn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.