Difference between revisions of "Face Off"
From TACWiki
m (→How to substitute new face stimuli) |
m (→Event Code Semantics) |
||
Line 21: | Line 21: | ||
'''GameEvent''' | '''GameEvent''' | ||
− | + | FO_INPUT_MouseClicked - User has clicked the left mouse button. | |
FO_INPUT_SubmitPressed - User has clicked the submit button. | FO_INPUT_SubmitPressed - User has clicked the submit button. | ||
FO_INPUT_MouseReleased - User has released the left mouse button. | FO_INPUT_MouseReleased - User has released the left mouse button. |
Revision as of 10:20, 13 April 2010
Contents
Event Code Semantics
EventCode
FO_START - The main menu has been initialized. FO_START_BOARD - A new board (round) has been started. FO_STARTFACELOAD - A face on the tray has begun to load. FO_FACELOADED - A face on the tray has finished loading. FO_FACEDRAG - The user has begun to drag a face from the tray. FO_BOARDFILL- The user has dropped a face from the tray onto an empty board cell. FO_BOARDUNDO - A filled cell on the board was clicked, sending the face back to the tray and emptying the filled cell. FO_CORRECT_GROUP - A group was determined correct during validation. FO_INCORRECT_GROUP - A group was determined incorrect during validation. FO_END - The user has finished the game and exited.
MenuEvent
FO_MENU_INPUT_Enter - User has pressed the Enter key. FO_MENU_INPUT_MouseClick - User has clicked the left mouse button. FO_MENU_INPUT_Left - User has pressed the Left key. FO_MENU_INPUT_Right - User has pressed the Right key. FO_END_QUIT - User has exited Face Off via main menu.
GameEvent
FO_INPUT_MouseClicked - User has clicked the left mouse button. FO_INPUT_SubmitPressed - User has clicked the submit button. FO_INPUT_MouseReleased - User has released the left mouse button.
How to substitute new face stimuli
- Make the file system changes following the guidelines below.
- Update content for Face Off in the game solution for the corresponding file system changes.
- Compile the game and test.
- Build The Installer.
File System Guidelines
Face stimuli are organized into emotion categories. To add a new emotion category, simply create a new directory under Game\FaceOff\Content\Texture\Faces. Each image added to the directory must follow the proper naming convention, else the image will not be loaded.
Image Naming Convention
[EmotionCategory]_[ImageNumber].[Extension]
The EmotionCategory must be exactly the same as containing directory name. ImageNumber must start at 1 and increment by 1 for each image without skipping an integer. Extension can be any valid XNA supported format type.
Example
Directory: Game\FaceOff\Content\Texture\Faces\Angry
Images: Game\FaceOff\Content\Texture\Faces\Angry\Angry_1.png Game\FaceOff\Content\Texture\Faces\Angry\Angry_2.png Game\FaceOff\Content\Texture\Faces\Angry\Angry_3.png
Current images may also be replaced, so long as the naming convention is maintained.