Skip to content

Conversation

@Satvik-Singh192
Copy link
Contributor

Description

This pull request introduces a complete, persistent game economy system, including the collection of coins, saving the coin balance across sessions, and a new navigable Skins Shop scene where players can spend their currency.

Key Changes

  • Coin Collectibles:
    Updated Collectible.cs to handle coin pickups.

  • Persistent Economy:
    Added coin saving/loading logic using PlayerPrefs in PlayerCollectibles.cs.

  • Scene Navigation:
    Integrated GoToShop() function into MainMenu.cs to allow access to the new Shop scene.

  • Shop Logic:
    Added ShopController.cs to manage the UI, read the persistent coin balance, and execute purchase/deduction logic.

  • Universal UI:
    Implemented a single CoinsUI.cs component that correctly displays the current coin balance in all scenes (MainMenu, Shop, Levels).

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

List any issues that this pull request closes.
Closes #57 (Implement basic Shop UI and Coin Economy)

Checklist

  • I have read the Contributing Guidelines.

@Just-Here-TO-Code Just-Here-TO-Code linked an issue Nov 10, 2025 that may be closed by this pull request
1 task
@Just-Here-TO-Code Just-Here-TO-Code merged commit e870ab5 into OPCODE-Open-Spring-Fest:main Nov 10, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Simple Collectible Coins

2 participants