Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Engel Simulator 2020
Engel Simulator 2020
Commits
12965887
Commit
12965887
authored
Dec 26, 2020
by
Rahix
🦀
Browse files
Move sprites to www/resources/sprites/
parent
75305010
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sprites.rs
View file @
12965887
...
...
@@ -19,7 +19,7 @@ impl Sprite {
return
;
}
let
filename
=
self
.filename
();
let
image_url
=
format!
(
"resources/{}"
,
filename
);
let
image_url
=
format!
(
"resources/
sprites/
{}"
,
filename
);
let
image
=
svg_loader
::
load_svg_as_image
(
&
image_url
)
.await
;
renderer
.register_image_on_handle
(
image
,
&
image_handle
)
...
...
www/resources/player.svg
→
www/resources/
sprites/
player.svg
View file @
12965887
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment