Skip to content

Commit

Permalink
Adds goingo wasm demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Schutz committed May 5, 2023
1 parent 03d423d commit a477148
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
17 changes: 17 additions & 0 deletions _i18n/en/_posts/2023-05-05-goingo-wasm-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Goingo Wasm Demo
layout: demo
date: 2023-05-05T10:36:14.609Z
size: 600
tags:
- gamedev
- goingo
categories:
- demo
wasm: assets/wasm/Goingo/goingo.v1.wasm
lastmod: 2023-05-05T10:57:53.540Z
---
- Left-Click
- On Board - Place Stone
- On Stone - Show group, liberties and enemies
- Right-Click - Pass turn
17 changes: 17 additions & 0 deletions _i18n/pt-br/_posts/2023-05-05-goingo-wasm-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Goingo Wasm Demo
layout: demo
date: 2023-05-05T10:36:14.609Z
size: 600
tags:
- gamedev
- goingo
categories:
- demo
wasm: assets/wasm/Goingo/goingo.v1.wasm
lastmod: 2023-05-05T10:57:59.454Z
---
- Botão Esquerdo do Mouse
- No tabuleiro - Coloca pedra
- Na pedra - Mostrar grupo, liberdades e inimigos
- Botão Direto do Mouse - Passar o turno
2 changes: 1 addition & 1 deletion _includes/demo_frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
WebAssembly.instantiateStreaming(fetch("{{site.baseurl_root}}/{{include.demo.wasm}}"), go.importObject).then(result => {
go.run(result.instance);
});
</script>" width="100%" height="{{include.size}}"></iframe>
</script>" width="100%" height="{{include.demo.size | default: 480}}"></iframe>
</p>
2 changes: 1 addition & 1 deletion _layouts/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</p>
{%-include language_menu.html-%}

{%-include demo_frame.html size=480 demo=page-%}
{%-include demo_frame.html demo=page-%}

<h1>{{ page.title }}</h1>

Expand Down
Binary file added assets/wasm/Goingo/goingo.v1.wasm
Binary file not shown.

0 comments on commit a477148

Please sign in to comment.