1/20/2023 0 Comments Source code for delta emulator![]() SDL_LockTexture(texture, nullptr, reinterpret_cast(&pixels), &pitch) SDLK_4, SDLK_r, SDLK_f, SDLK_v} // C D E F SDLK_s, SDLK_d, SDLK_z, SDLK_c, // 8 9 A B #include Ĭonstexpr int TICKS_PER_FRAME = 1000 / FPS Ĭonstexpr int INSTRUCTIONS_PER_STEP = 10 I also had some trouble getting some lines under 80 characters (the SDL ones). I think there's too much stuff in my main function and I feel like this file isn't very readable in general. I'm hoping for general advice / suggestions about the code structure and the way it's written. I've tested it with roms off Zophar's Domain and it appears to work with my limited testing. I wrote this chip8 emulator as practice recently since my coursework is mostly console programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |