hgrsd / nibble8 Goto Github PK
View Code? Open in Web Editor NEWOne of thousands of Rust implementations of a CHIP-8 interpreter
License: MIT License
One of thousands of Rust implementations of a CHIP-8 interpreter
License: MIT License
We currently decrement the sound and delay timer once every abritary n
ticks. We should try to get this to align with the actual CHIP-8 implementation - a decrement rate of 60hz.
Currently, drawing the display state to an SDL2 canvas is done by iterating over each bit of the display state and drawing the bitmap bit-by-bit.
This is relatively slow, because every call to draw_point
actually interacts with the framebuffer. I'd like to use a texture
instead and copy it to the framebuffer in one operation.
See also discussion here: https://users.rust-lang.org/t/rust-sdl2-and-raw-textures-help/45636/27.
Sound is currently unimplemented, although we do have a sound timer that can be set and decrements with ticks.
We should use SDL2 to play a sound as long as the sound timer's value > 0.
The current means of registering keyboard input is to poll the SDL event pump for events, and registering a key if it is pressed. This also sets the "current key".
The keyboard state is cleared every n
iterations.
This approach is very basic and does not lead to a very nice input experience. I'd like to have a more responsive means of registering key presses.
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.