https://github.com/joehowarth/dominari-gfx
Dominari Graphics
https://github.com/joehowarth/dominari-gfx
Last synced: 6 months ago
JSON representation
Dominari Graphics
- Host: GitHub
- URL: https://github.com/joehowarth/dominari-gfx
- Owner: JoeHowarth
- Created: 2022-11-12T16:52:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T22:04:15.000Z (over 3 years ago)
- Last Synced: 2024-12-29T06:11:50.570Z (over 1 year ago)
- Language: Rust
- Size: 740 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Check out the solana on-chain logic!
https://github.com/spacemandev-git/dominari-ecs
## Quick Start
```
bash build_wasm.sh
# or for change detection, install cargo watch
# then: cargo watch -- bash build_wasm.sh
# new terminal
cd wasmtest
npm ci
npm start
```
## MVP
### Data model
- Define components mappings to on-chain state
- Create systems to take chain update events and update bevy data model
- Handling keypairs
- generates custodial keypairs
- Handle connection info
- Fetch all entities by instanceId (sdk?)
### Rendering
- Render a tilemap
- Tile sprite determined by feature type
- Render units
- Select a tile & display info
- Select a unit & display info
- Play a card
- View cards
- Score
- Info about other players??
- Tooltips
### Submit user actions on-chain
---
Player flow
Screen 1
Welcome to Dominari
- Connect or generate keypair
Screen 2
- Generate map -> becomes admin
- Join map by instanceId
Screen 3
- Modal: is game started & how many players are in lobby
- normal game view
Normal Game View
- View of the map
- tiles
- features
- units
- recovering vs active gfx
- View of cards
- Player metadata: score, in-game currency
Click on Tile:
- highlight the tile
- ui window w/
- feature info (use/upgrade)
- unit (move/attack)
- if unit on tile, hightlight tiles it can move/attack
- unit slots until available
If tile w/ unit selected and hover over tile w/ enemy unit:
- UI w/ projected outcome of attack or smt
Click on Card:
- highlight card in deck
- highlight placeable tiles
- ui window w/ info
Game Over Screen
- Who won