Graphic elements, some generated by AI and others hand-drawn, are stored in memory as plain bitmaps. The software is similarly spartan: just pure C code running directly on the CPU core. The hardware consists of not much more than an ARM Cortex-M7 MCU, a 240×320 LCD screen and a few buttons soldered onto a piece of prototyping board, all powered by a set of AAA batteries. The purpose of this exercise is to show that it’s possible to make a game with graphics comparable to modern, complex computing systems, without relying on operating systems or third-party libraries. , for instance, has made a beautiful Tetris clone in just 1000 lines of C, without using anyone else’s code. There’s operating systems to abstract away the complexities of modern hardware, standard libraries to implement common tasks, and tons of third-party libraries that prevent you from having to reinvent the wheel all the time: you’re definitely not the first one trying to draw graphics onto a screen or store data in a file.īut if it’s the wheels you’re most interested in, then there’s nothing wrong with inventing new ones now and then. If you’re programming on a modern computer, you typically make use of lots of work done by other people.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |