Olivier Goffart
c840b046ae
Rename the "resource" type to "image"
2021-03-10 17:24:31 +01:00
Simon Hausmann
c771bcff45
Print a warning when trying to animate deprecated properties
2021-02-02 22:58:54 +01:00
Simon Hausmann
e61529976e
Issue warnings when creating bindings against deprecated properties
2021-02-02 22:42:02 +01:00
Olivier Goffart
23a511b380
Replace img!"..."
by @image-url("...")
2021-01-28 11:49:24 +01:00
gondolyr
4c1d35967e
Update memory example to use row and column props
...
Using row and column count properties improves the readability,
extensibility, and maintainability by removing the magic numbers for the
other calculated properties. Previously, it took me some time to
understand what these numbers represented and this change should remove
this difficulty.
2020-12-24 17:25:22 +01:00
Olivier Goffart
61399e566a
Add a title to the Window
...
also add a color, but not yet implemented
2020-12-18 16:47:14 +01:00
Olivier Goffart
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Simon Hausmann
0b84f2c40e
Unify the tile arrays
...
There's no "restart" etc. so for now the code is much simpler by having just one array.
2020-12-10 08:56:15 +01:00
Simon Hausmann
a366744f28
Sync code with tutorial
2020-12-09 15:04:40 +01:00
Simon Hausmann
ce2cfa022d
Flip the boolean expression for the base memory tile color
...
Subjectively it's easier to read :)
2020-12-09 14:01:56 +01:00
Olivier Goffart
060dd655a5
Memory game: add the logo on the hidden tile
2020-12-08 20:21:56 +01:00
Olivier Goffart
dbd27f150d
Memory: color scheme and size
2020-12-08 14:57:10 +01:00
Simon Hausmann
82d6a679f5
Show a different color for solved tiles
2020-12-08 13:40:29 +01:00
Simon Hausmann
39b8691819
Switch to generating the SVG icons using rsvg-convert
...
The npm package is not maintained anymore and does not support newer
font-awesome versions with additional icons.
2020-12-08 12:03:51 +01:00
Olivier Goffart
91dcf00897
Memory: Ssmall design change
...
- Add some padding
- Better colors
- rounded corners
2020-12-08 11:59:47 +01:00
Simon Hausmann
9ac4cd851b
Open the memory tile from the center
2020-12-08 11:35:08 +01:00
Simon Hausmann
e602bc603a
A wasm port for the memory puzzle without npm and webpack
2020-12-08 11:15:54 +01:00
Simon Hausmann
d471ed566f
Fix tile positioning inside the window
...
Don't start at (0, 0) - leave some space
2020-12-08 10:39:26 +01:00
Simon Hausmann
574d17e698
Initial version of a small memory game
...
This is intended to form the basis for a tutorial.
2020-12-08 09:58:53 +01:00