-
-
Notifications
You must be signed in to change notification settings - Fork 21
Singletons
Carenalga edited this page Feb 11, 2023
·
4 revisions
Popochiu gives you access to global functions and properties that will help you to make an adventure game. In Godot this are known as Singletons.
Those are split between this main classes: Engine (E), Room (R), Character (C), Inventory (I), Dialog (D), Audio (A), Graphic interface (G), and Cursor (Cursor).
Each letter is the shortcut you have to use when writting code, and a list of properties and functions will appear when you write the letter followed by a dot (.).
This are the Popochiu singletons:
- E. (for Engine) - The shortcut for Popochiu.gd. It is the system main class, and is in charge of making the game to work.
- R. (for Room) - The shortcut for IRoom.gd. Use it to access objects in the current room; or to access to data from other rooms.
- C. (for Character) - The shortcut for ICharacter.gd. Use it to make characters do actions.
- I. (for Inventory). - The shortcut for IInventory.gd. Use it to handle the inventory.
- D. (for Dialog). - The shortcut for IDialog.gd. Use it to start branching dialog.
- A. (for Audio). - The shortcut for IAudio.gd. Use it to play music and sounds.
- G. (for Graphic interface). - The shortcut for IGraphicInterface.gd. Use it to show or hide elements in the graphic interface.
- Cursor. (for the mouse pointer). - The shortcut for Cursor.tscn. Use it to show or hide the mouse pointer, or change its appearance.