Add egg-fetcher demo

This commit is contained in:
Michal Vanko 2022-06-28 09:32:15 +02:00
parent b5a96ee0af
commit ccdfad9750
216 changed files with 2543 additions and 2 deletions

1
.gitattributes vendored
View File

@ -9,3 +9,4 @@ static/**.gif filter=lfs diff=lfs merge=lfs -text
static/**/**.png filter=lfs diff=lfs merge=lfs -text
static/**/**.jpg filter=lfs diff=lfs merge=lfs -text
static/**/**.gif filter=lfs diff=lfs merge=lfs -text
**/**.wasm filter=lfs diff=lfs merge=lfs -text

View File

@ -24,6 +24,8 @@ This week I've attended a [Rusty game jam #2](https://itch.io/jam/rusty-jam-2).
![Egg fetcher game preview](/images/uploads/screenshot-from-2022-06-26-22-37-16.png "Egg fetcher game preview")
[You can check the rusult built with WASM here.](/showcase/egg-fetcher/)
## What's up with the weeklys
I have to admit something. I was not inspired or motivated to write weeklys for the last two months. For that, I feel a little bumped as there were many good thoughts worth sharing. I was not very comfortable writing as the last month was very tough. During that time I was focused on inner development and figuring out how my brain responds to different stimuli. I've been able to find a new project to work on. The onboarding story was one of the hardest I went through. I managed to move on and stop thinking about what could've I done better in the past and focus more on what can I do better now.

View File

@ -14,7 +14,6 @@ export async function get({ params }) {
)
const paginationQuery = { ...paginationParams, filters }
const filteredContents = await getBlogListing(paginationQuery)
console.log(filteredContents.items.map((item) => item.slug))
return {
status: 200,

View File

@ -0,0 +1,20 @@
<h1>Egg-fetcher</h1>
<p>As mentioned in <a href="/blog/2022-06-26-our-attempt-at-rusty-game-jam-weekly-25-2022">Weekly #25-2022</a>, I've attended the <a href="https://itch.io/jam/rusty-jam-2">Rusty game jam #2</a> where we had a week to <strong>create a game with Rust</strong>.</p>
<p>I've teamed up with <a href="https://github.com/silen-z/">@silen-z</a>. We haven't been able to finish the game. We didn't even make the mechanics we were thinking of. But I'd like to show <strong>the incomplete version of Egg-fetcher</strong> anyway. As we built it with Rust and <a href="https://bevyengine.org/">bevy engine</a> we were able to <a href="https://github.com/septum/rusty_jam_bevy_template">reuse a template</a> that had a configured WASM build. Therefore is very easy to just present the game in the browser.</p>
<iframe src="/egg-fetcher/index.html" width="800" height="600"></iframe>
<p><strong>The only functional controls are arrows</strong>. We have built a collision system where the chickens should move out of the way of the player and his pet. The player is not able to move through the fences and so on. We wanted to <strong>create a puzzle</strong> where you would have to play fetch with your pet dog to control the chickens and simultaneously control player movement.</p>
<p>This was only my 3rd attempt at a Rust codebase and therefore I got pretty much always stuck at some problem with borrow-checker or lifetimes.
I learned many things and I'd like to continue with Rust and use it more in my side-projects.</p>
<style>
iframe {
height: 720px;
width: 1280px !important;
max-width: 1280px !important;
}
</style>

BIN
static/egg-fetcher/assets/Chick_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,94 @@
Copyright (c) 2020, Roberto Mocci (<patreon.com/rmocci | da.iosonor@gmail.com>),
with Reserved Font Name Dogica Pixel.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

View File

@ -0,0 +1,93 @@
Copyright (c) 2011, Milena Brandao (milenabbrandao@gmail.com), with Reserved Font Name Fredoka.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
static/egg-fetcher/assets/player.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Bg.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Cloud_01.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Cloud_02.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Cloud_03.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Cloud_04.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Background/Cloud_05.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Avatar.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Cat_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Chick_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Chick_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Chick_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Chick_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Chick_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Avatar.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Fox_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Mouse_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Mouse_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Mouse_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Mouse_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Mouse_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Avatar.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Pig_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Rabbit_Dead.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Rabbit_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Rabbit_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Characters/Rabbit_Up.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_Bottom.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_T_Down.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_T_Left.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_T_Right.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_T_Top.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_Top.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_Vertical.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fence_X.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Fences/Fences_Tileset.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/BeachBall.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Beetroot.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Bomb.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Boulders.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Box.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Bush.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Carrot.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Coin.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Crystal.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Cucumber.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Danger_Deadly.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Danger_Warning.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Danger_Water.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Door_Golden(2).png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Door_Golden.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Flag.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
static/egg-fetcher/assets/sprites/Objects/Fountain.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More