-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48fea6f
commit 1c6983a
Showing
7 changed files
with
123 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,34 @@ | ||
##tut | ||
# MILADYSTATION FIRST RELEASE: POWER PACKS ONCHAINED | ||
|
||
go to javascript console on the webpage and enter "boot()" | ||
that starts it from the beginning and not just wherever I am while I'm working on it | ||
This dApp web game is a simple coinflip happening onchain using chainlink vrf, and a smashbros skin, with pokemon exp leveling. | ||
|
||
Players pay to play to fund the vrf subscription on the arbitrum blockchain. If they win, they received experience points linked to their Power Pack NFT to get on the leaderboard and unlock new fighting locations, animations and game modes. | ||
|
||
The website uses javascript and html to animate the characters and web assets. The game interactions are intermediated with web3js. There is offline play without setting up the onchain activity. | ||
|
||
For testing, there is a separate repo that contains a foundry project that you can run on anvil to simulate the web3 version. | ||
|
||
## setup | ||
|
||
The website is a static page sight. You can run the game simply by opening the index.html located in the public folder. | ||
|
||
In order to run the site on a local web server you must install the node packages. | ||
|
||
``` | ||
npm i | ||
``` | ||
|
||
To run the server use the command | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
If you make changes to the code, end the server using control+c on mac. Then npm start again to reset it. | ||
|
||
## onchained | ||
|
||
The Onchained foundry repo and startup instructions can be found here: | ||
|
||
https://github.com/jfkwebdev/PPO | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,7 @@ html, body { | |
width: 200px; | ||
} | ||
#player1, #player2 { | ||
top: 50%; | ||
top: 45%; | ||
} | ||
#chosen { | ||
left: 5%; | ||
|