Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A shop for any game: upgrades with levels, items bought once or again and again, skins to equip, locked items, several currencies, from 1 or 2 items to hundreds. Events only.
Three custom objects, nested
The list and grid layouts are not two objects: they are two variants of the same shop dialog. The item placed in the variant is the model of every item (a wide row, or a card with
Columns: 4). The model tab and counter work the same way.Simple API (for humans and AI agents)
1. Fill the shop
2. Money
Money("Coins").3. React to what happens (one-frame conditions)
LockedorNotEnoughMoney).4. Query
Buy,TooExpensive,Locked,Owned,Max,Equip,Equipped), icon, title.5. Purchases
6. Saving
Categories and navigation
Layout
Also a
Shop::FormatNumber(number, separator)expression (1,250 / 1.250 / 1 250).Tests
Gameplay tests in GDevelop.
With the default objects:
With the art of the 15 styles (GDevelop-assets#780), and in the "Shop" example (GDevelopApp/GDevelop-examples#1138), which has 5 tests.
npm run build,npm testandnpm run check-post-buildpass.