SNAKE GAME USING BIOS INTERRUPT
Daftar Isi:
- Snake game is a simple game that uses cursor. The cursor is moving around the computer screen and you can control it by press a certain button, if it hit a wall it will bounce and if hit its tail will end. In coding, game the user set keypress by in al. this game using w, a, s, d for moving w for up, a for left, s for down, and d for right. Writer created this program using BIOS interrupt 10h, for to manipulated the screen. To use this call, we must load AH with the number. Example: AH 02h for set cursor position, AH 03h for get cursor position and shape, and AH 09h for Write character and attribute at cursor position.