Skip to content

Commit

Permalink
fix worflow and add README
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdodo committed Jun 27, 2024
1 parent 08c48a0 commit fae6c75
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./demo/dist
folder: demo/dist
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
![Demo Preview](/tamago.png "Demo Preview")

Generate some tamagochi-like sprites with procedural pixel art generation in Rust.

Check the demo here: https://ferdodo.github.io/procedural-tamago-sprite
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "demo",
"scripts": {
"build": "cp -r ../crate/pkg public/pkg && vite build",
"build": "mkdir -p public && cp -r ../crate/pkg/* public && vite build",
"start": "vite --host"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "crumbs-design-system";
import init, { generatetamago } from "../public/pkg/procedural_tamago_sprite";
import init, { generatetamago } from "../public/procedural_tamago_sprite";

function generateImageFromHexString(buffer, width) {
if (buffer.length % 8 !== 0) {
Expand Down
Binary file added tamago.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fae6c75

Please sign in to comment.