Retro Game Library Documentation


retrogamelib.constants

This module contains all of the constants for RetroGamelib.

Display Constants

NESRES = (256, 240) - Resolution of the NES screen.
GBRES = (160, 144) - Resolution of the GameBoy screen.
GB_SCREEN_COLOR = (210, 210, 195) - The recommended background color for GameBoy games.

Buttons

A_BUTTON = 0x0001f - Value for the A button
B_BUTTON = 0x0002f - Value for the B button
LEFT = 0x0003f - Value for the Left Arrow
RIGHT = 0x0004f - Value for the Right Arrow
UP = 0x0005f - Value for the Up Arrow
DOWN = 0x0006f - Value for the Down Arrow
START = 0x0007f - Value for the START button
SELECT = 0x0008f - Value for the SELECT button

Fonts

NES_FONT (dict) - Value for the NES font
GAMEBOY_FONT (dict) - Value for the GameBoy font


Copyright © 2009, pymike and saluk