Main ini file¶
The main ini file - pyskool.ini - defines key bindings and the appearance and content of the game menus. Each section is described below.
[Keys]¶
The Keys
section defines the key bindings. Each line in the section has the
form:
actionId, key1, key2, ...
where actionId
is the identifier of the action to bind to the keys
key1
, key2
and so on. Any number of keys may be bound to an action.
Pyskool recognises the following action identifiers for moving Eric:
LEFT
- move leftRIGHT
- move rightUP
- move upDOWN
- move downSIT_STAND
- sit down or stand upOPEN_DESK
- open a deskFIRE_CATAPULT
- fire the catapultFIRE_WATER_PISTOL
- fire the water pistolDROP_STINKBOMB
- drop a stinkbombHIT
- throw a punchJUMP
- jumpWRITE
- start writing on a blackboardENTER
- finish writing on a blackboardCATCH
- try to catch a mouse or frogUNDERSTOOD
- acknowledge understanding of a messageMOUNT_BIKE
- mount the bikeDUMP_WATER_PISTOL
- throw away the water pistolRELEASE_MICE
- release some miceKISS
- try to kiss someone
In addition, Pyskool recognises the following identifiers for actions not related to moving Eric:
QUIT
- quit PyskoolFULL_SCREEN
- toggle full-screen modePAUSE
- pause the gameSCREENSHOT
- take a screenshotSAVE
- save the gameLOAD
- load the most recently saved gameMENU
- show the menuMENU_EXIT
- hide the menu and resume the gameMENU_PREV
- move to the previous item in the menuMENU_NEXT
- move to the next item in the menuMENU_EXEC
- execute the selected menu item
Pygame uses keyboard constants to identify keys; a full list of those constants
can be found in the
pygame documentation. The key names
(key1
, key2
etc.) declared in a line of the Keys
section should
match the names of the Pygame keyboard constants, but with the K_
prefix
removed.
Version | Changes |
---|---|
1.0 | Added the FULL_SCREEN action identifier |
0.5 | New |