Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i add new tiles? #88

Open
Creighcl opened this issue Aug 10, 2023 · 1 comment
Open

How do i add new tiles? #88

Creighcl opened this issue Aug 10, 2023 · 1 comment

Comments

@Creighcl
Copy link
Member

new tile type, image, name, sound effect, board state

@Creighcl
Copy link
Member Author

Creighcl commented Sep 1, 2024

Add to CORE by:

  • Registering its key in the TileType enum
  • Adding this TileType to an Encounter
    Add to MONO by:
  • Add sprite to a resources folder at: Tiles/[TileType]1

OK. It's in the game and collectible if you're on that encounter.

DEFAULT: Collectible with 3+ of itself. No effect on collection.

Customize Tile Face behavior during idle or whatever. add effects:

  • GameTile.OnGUI or a delegated process from there

Add game logic, board manipulation to its collection:

  • Go to CORE > ChainAcceptedEvent and add it to the Resolution chain

Add sound effect to this when collected:

  • CORE > CollectionEvent must be created in the Resolution chain
  • MONO > GridGameManager import the CollectionEvent, call sound effect from GameController on handler
  • Add sfx clip to a Resources/Sounds/ folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant