mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
docs: Modernize the tutorials for 1.0
This commit is contained in:
parent
59e0723793
commit
e64e15e277
21 changed files with 83 additions and 85 deletions
|
@ -1,18 +1,14 @@
|
|||
# Introduction
|
||||
|
||||
This tutorial will introduce you to the Slint UI framework in a playful way by implementing a little memory game. We are going to combine the `.slint` language for the graphics with the game rules implemented in the Rust programming language.
|
||||
This tutorial will introduce you to the Slint UI framework in a playful way by implementing a little memory game. We're going to combine the `.slint` language for the graphics with the game rules implemented in C++.
|
||||
|
||||
The game consists of a grid of 16 rectangular tiles. When clicking on a tile, an icon underneath is uncovered.
|
||||
The game consists of a grid of 16 rectangular tiles. Clicking on a tile uncovers an icon underneath.
|
||||
We know that there are 8 different icons in total, so each tile has a sibling somewhere in the grid with the
|
||||
same icon. The objective is to locate all icon pairs. Only two tiles can be uncovered at the same time. If they
|
||||
are not the same, then the icons will be obscured again. We need to remember under which tiles the matching
|
||||
graphics are hiding. If two tiles with the same icon are uncovered, then they remain visible - they are solved.
|
||||
same icon. The objective is to locate all icon pairs. You can uncover two tiles at the same time. If they
|
||||
aren't the same, the icons will be obscured again.
|
||||
If you uncover two tiles with the same icon, then they remain visible - they're solved.
|
||||
|
||||
This is how the game looks like in action:
|
||||
|
||||
<video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/memory_clip.mp4"
|
||||
class="img-fluid img-thumbnail rounded"></video>
|
||||
|
||||
A video-recording of this tutorial is also available on YouTube:
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/_-Hxr6ZrHyo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue