Skip to content
Snippets Groups Projects
Verified Commit efcd4129 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new framerate and logic

parent b197c6d8
No related branches found
No related tags found
No related merge requests found
...@@ -24,3 +24,10 @@ Keys available: ...@@ -24,3 +24,10 @@ Keys available:
`A S D F` `A S D F`
`Z X C V` `Z X C V`
## ROMs
You can find some good quality game and tools roms here:
* [https://github.com/kripod/chip8-roms](https://github.com/kripod/chip8-roms)
* [https://github.com/loktar00/chip8](https://github.com/loktar00/chip8)
...@@ -7,7 +7,7 @@ use std::{fs::File, io::Read}; ...@@ -7,7 +7,7 @@ use std::{fs::File, io::Read};
const COLORS: [[u8; 3]; 2] = [[255, 255, 255], [80, 203, 147]]; const COLORS: [[u8; 3]; 2] = [[255, 255, 255], [80, 203, 147]];
const LOGIC_HZ: u32 = 240; const LOGIC_HZ: u32 = 240;
const VISUAL_HZ: u32 = 20; const VISUAL_HZ: u32 = 60;
const IDLE_HZ: u32 = 60; const IDLE_HZ: u32 = 60;
const SCREEN_SCALE: f32 = 15.0; const SCREEN_SCALE: f32 = 15.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment