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

Update examples for Quick customization #703

Merged
merged 17 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ If you've created an example with GDevelop, you can submit it to be shared with

1. **Create your game** with GDevelop.
2. Make sure to follow the [requirements and best practices on this page](http://wiki.compilgames.net/doku.php/gdevelop5/community/guide-for-submitting-an-example).
> Note that for now, we're trying to keep a fairly high quality bar for examples, so you might be asked to adapt your game according to reviewer feedbacks.
> Don't feel bad about this! This is normal process and here to help making examples as good as possible for new users.
> If we take too much time to review your example, you can send a ping on the issue. ⏰
3. Create a `preview.png` (case sensitive) 16:9 image that will let users see what the game looks like. You can also add a `thumbnail.png` (case sensitive) with a 16:9 ratio (the game logo/banner) shown in the examples list of the game engine or a `square-icon.png` (the game icon). All of these images should be located at the root folder of the game.
> Note that for now, we're trying to keep a fairly high quality bar for examples, so you might be asked to adapt your game according to reviewer feedbacks.
> Don't feel bad about this! This is normal process and here to help making examples as good as possible for new users.
> If we take too much time to review your example, you can send a ping on the issue. ⏰
3. Create a `preview.png` (case sensitive) 16:9 image that will let users see what the game looks like. You can also add a `thumbnail.png` (case sensitive) with a 16:9 ratio (the game logo/banner) shown in the examples list of the game engine or a `square-icon.png` (the game icon). All of these images should be located at the root folder of the game. (If the game will be used in quick customization, then add a `thumbnail-quick-customization.png` (case sensitive) with a 16:9 ratio to be shown on the get started page of GDevelop.)
4. Create a new `README.md` file and write a short description of the game.
5. **Export** your game and all its resources to a zip file (you can save it in a new folder and zip this folder).
6. Submit it! You can either [submit it here](https://github.com/GDevelopApp/GDevelop-examples/issues/new/choose), attaching the _zip file_.
Expand Down
71 changes: 71 additions & 0 deletions __tests__/post-build/exampleShortHeaders.json.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,76 @@ describe('exampleShortHeaders.json post build checks', () => {
gdevelopVersion: '',
})
);

const tappyPlane = exampleShortHeaders.find(
({ name }) => name === 'Tappy plane'
);
if (!tappyPlane)
throw new Error('Tappy Plane not found in the example short headers');

expect(tappyPlane).toEqual(
expect.objectContaining({
id: '3cfc75d79ece13652857e8f9c20931f275916ca88f89940ca81b91734da4ac5d',
name: 'Tappy plane',
slug: 'tappy-plane',
shortDescription:
'Tappy Plane is a Flappy Bird-like game. Tap to keep your plane in the air and make your way through the cave system.\nGet as far as you can before you crash in to a wall, submit your score, and try again.',
license: 'MIT',
previewImageUrls: [
'https://resources.gdevelop-app.com/examples/tappy-plane/thumbnail.png',
],
quickCustomizationImageUrl:
'https://resources.gdevelop-app.com/examples/tappy-plane/thumbnail-quick-customization.png',
authorIds: [
'jy7FXnGX0ZZcWfrAI9YuQaeIphi1',
'9MGDlUQAh8QUilno4JPycekjRCJ3',
'R0F5QGNCzgOY5w2cxGeKJOq2UaD2',
],
tags: expect.arrayContaining([
'tappy-plane',
'game',
'simple',
'Starter',
'Animatable capability',
'Event functions',
'Sounds and music',
'Layers and cameras',
'Events and control flow',
'External layouts',
'Storage',
'Keyboard',
'Mathematical tools',
'Mouse and touch',
'Network',
'Objects',
'Scene',
'Timers and time',
'Variables',
'Destroy Outside Screen Behavior',
'Effect capability',
'Flippable capability',
'Leaderboards',
'Opacity capability',
'Panel Sprite (9-patch) Object',
'Platform behavior',
'Player Authentication',
'Resizable capability',
'Scalable capability',
'Sprite',
'Text capability',
'Text Input',
'Text object',
'Tiled Sprite Object',
'Tweening',
'Ellipse movement',
'Panel sprite button',
'Shake object',
'Flash object',
]),
codeSizeLevel: 'medium',
difficultyLevel: 'simple',
gdevelopVersion: '',
})
);
});
});
Loading
Loading