bugzmanov.github.io/nes_ebook/chapter_3_4.html
1 Users
0 Comments
11 Highlights
0 Notes
Tags
Top Highlights
compute game state
render game state to a screen
read input from a user
callback that will be executed before every opcode interpretation cycle
rust-sdl2
create a texture that would be used for rendering
Handling user input
transform the CPU screen map into 3 bytes
don't want to force updating the SDL canvas if the screen state hasn't changed
keep track of the screen state by creating a temp buffer
Only in the case of screen changes, we would update SDL canvas.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.