Let's Code MS DOS 0x06: VGA Palette Tricks and Refactoring

preview_player
Показать описание
In this episode we code a VGA fade in/fade out effect. In the last episode we already learned all necessary tricks to do this, but let's put it together now.

Also the code needs some refactoring. The main function has grown too big. So a new handle_game function will be introduced to break down the code into smaller, more easily maintainable chunks.

Рекомендации по теме
Комментарии
Автор

Well done again; really enjoying these videos. I’m trying this out on real hardware; my 486SX-33. Runs perfectly! Again a quick question if it’s ok: I notice we access variables inside a structure sometimes with a point (.) and sometimes with ->. For instance; when we initialize, the code goes “p1.color = 255” but inside a function it’s “p1->color = 255”. Does that have to do with whether you’re checking inside a pointer or a variable? Many thanks for your rely!

countersurprise
welcome to shbcf.ru