Skip to content

Commit

Permalink
update demo for terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Dec 28, 2024
1 parent a0d149d commit 19dd8b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
| Web via WebAssembly | Desktop | Terminal |
| --- | --- | --- |
| ![Demo Web with Assembly](resources/demo-web.png) | ![First demo desktop GUI](resources/demo-desktop-1.png) ![Second demo desktop GUI](resources/demo-desktop-2.png) | ![First terminal demo](resources/demo-terminal-1.png) |
| Playing [Cookies Bakery by leafthief](https://leafthief.itch.io/cookies-bakery) | Playing [Unearthed by benjelter](https://benjelter.itch.io/unearthed) | Playing [Pokemon by Nintendo](https://en.wikipedia.org/wiki/Pok%C3%A9mon_Red,_Blue,_and_Yellow) |
| Firefox 116.0.3 (64-bit) | macOS 11.6.2, 16GB, Quad-Core Intel Core i7, 1,2 GHz | Rio Terminal |
| ![Demo Web with Assembly](resources/demo-web.png) | ![First demo desktop GUI](resources/demo-desktop-1.png) ![Second demo desktop GUI](resources/demo-desktop-2.png) | ![First terminal demo](resources/demo-terminal-1.png) ![Second terminal demo](resources/demo-terminal-2.png) |
| Playing [Cookies Bakery by leafthief](https://leafthief.itch.io/cookies-bakery) | Playing [Unearthed by benjelter](https://benjelter.itch.io/unearthed) | Playing [The Machine by Ben Jelter](https://benjelter.itch.io/the-machine) |
| Firefox 116.0.3 (64-bit) | macOS 11.6.2, 16GB, Quad-Core Intel Core i7, 1,2 GHz | Rio Terminal v0.2.2 |
| `make web` | `make desktop` | `make terminal` |

## WebAssembly quick demo
Expand Down
2 changes: 1 addition & 1 deletion examples/desktop/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use gameboy::gameboy::{load_rom, Gameboy, RenderMode::Desktop};
fn main() {
// TODO: Allow receive path by arguments
// let gb = Gameboy::new("./../../tests/cpu_instrs/cpu_instrs.gb");
if let Ok((data, filepath)) = load_rom("./../pokemon-red.gb") {
if let Ok((data, filepath)) = load_rom("./../the-machine.gb") {
// if let Ok((data, filepath)) = load_rom("./../bakery.gb") {
let gb = Gameboy::new(data, Some(filepath));
gb.render(Desktop);
Expand Down
2 changes: 1 addition & 1 deletion examples/terminal/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use gameboy::gameboy::{load_rom, Gameboy, RenderMode::Terminal};

fn main() {
// TODO: Allow receive path by arguments
if let Ok((data, filepath)) = load_rom("./../pokemon-red.gb") {
if let Ok((data, filepath)) = load_rom("./../the-machine.gb") {
// if let Ok((data, filepath)) = load_rom("./../bakery.gb") {
let gb = Gameboy::new(data, Some(filepath));
gb.render(Terminal);
Expand Down
Binary file modified resources/demo-terminal-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/demo-terminal-2.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 19dd8b4

Please sign in to comment.