Skip to content

Commit

Permalink
Add Party Mode (#17)
Browse files Browse the repository at this point in the history
* chore(release): 4.0.0-next.1 [skip ci]

# [@hastearcade/web-v4.0.0-next.1](https://github.com/playhaste/haste-sdk/compare/@hastearcade/web-v3.0.1...@hastearcade/web-v4.0.0-next.1) (2022-02-19)

### Bug Fixes

* **server:** updated build and added limit parameter ([9cf8725](9cf8725))
* **web:** updated to force build ([8b87151](8b87151))

### Features

* **web:** changing build interface to ignore client id ([2e827b3](2e827b3))

### BREAKING CHANGES

* **web:** updating the build interface to no longer require client id

* fix(sdk): implementing formatted cost string

* chore(release): 1.4.0-next.2 [skip ci]

# [@hastearcade/models-v1.4.0-next.2](https://github.com/playhaste/haste-sdk/compare/@hastearcade/models-v1.4.0-next.1...@hastearcade/models-v1.4.0-next.2) (2022-03-25)

### Bug Fixes

* **sdk:** implementing formatted cost string ([05bdc6b](05bdc6b))

* chore(release): 1.6.0-next.2 [skip ci]

# [@hastearcade/server-v1.6.0-next.2](https://github.com/playhaste/haste-sdk/compare/@hastearcade/server-v1.6.0-next.1...@hastearcade/server-v1.6.0-next.2) (2022-03-25)

### Bug Fixes

* **sdk:** implementing formatted cost string ([05bdc6b](05bdc6b))

* Revert "fix(sdk): implementing formatted cost string"

This reverts commit 05bdc6b.

* fix(sdk): removing formatted name change

* chore(release): 1.4.0-next.3 [skip ci]

# [@hastearcade/models-v1.4.0-next.3](https://github.com/playhaste/haste-sdk/compare/@hastearcade/models-v1.4.0-next.2...@hastearcade/models-v1.4.0-next.3) (2022-03-25)

### Bug Fixes

* **sdk:** removing formatted name change ([74cfad6](74cfad6))

### Reverts

* Revert "fix(sdk): implementing formatted cost string" ([9230cd7](9230cd7))

* chore(release): 1.6.0-next.3 [skip ci]

# [@hastearcade/server-v1.6.0-next.3](https://github.com/playhaste/haste-sdk/compare/@hastearcade/server-v1.6.0-next.2...@hastearcade/server-v1.6.0-next.3) (2022-03-25)

### Bug Fixes

* **sdk:** removing formatted name change ([74cfad6](74cfad6))

### Reverts

* Revert "fix(sdk): implementing formatted cost string" ([9230cd7](9230cd7))

* chore(release): 1.4.2-next.1 [skip ci]

# [@hastearcade/models-v1.4.2-next.1](https://github.com/playhaste/haste-sdk/compare/@hastearcade/models-v1.4.1...@hastearcade/models-v1.4.2-next.1) (2022-07-23)

### Bug Fixes

* **sdk:** removing formatted name change ([74cfad6](74cfad6))

* chore(release): 1.6.4-next.1 [skip ci]

# [@hastearcade/server-v1.6.4-next.1](https://github.com/playhaste/haste-sdk/compare/@hastearcade/server-v1.6.3...@hastearcade/server-v1.6.4-next.1) (2022-07-23)

### Bug Fixes

* **sdk:** removing formatted name change ([74cfad6](74cfad6))

* feat(server): support party mode

Changes leaderboards server SDK method to accept a player id in order to support filtering for
future party mode

BREAKING CHANGE: leaderboards is going from a sync call to an async call

* feat(server): updated package-lock to fix ci bug

BREAKING CHANGE: Leaderboards going from sync to async interface

* chore(release): 2.0.0-next.1 [skip ci]

# [@hastearcade/server-v2.0.0-next.1](https://github.com/playhaste/haste-sdk/compare/@hastearcade/server-v1.6.4-next.1...@hastearcade/server-v2.0.0-next.1) (2022-07-23)

### Features

* **server:** support party mode ([c08009a](c08009a))

### BREAKING CHANGES

* **server:** leaderboards is going from a sync call to an async call

* docs(server): updated for new async leaderboards method

Shows how party mode can be used

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Keith LaForce <klaforce@gmail.com>
  • Loading branch information
3 people committed Aug 3, 2022
1 parent 07fa5bf commit a859e8a
Show file tree
Hide file tree
Showing 8 changed files with 306 additions and 6,340 deletions.
6 changes: 3 additions & 3 deletions examples/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ async function authenticate() {
// they would like to play at. Please use
// the 'formattedName' property when populating
// your game client UI to display to the user.
function getLeaderboards() {
const leaderBoards = haste.game.leaderboards();
async function getLeaderboards(playerId?: string) {
const leaderBoards = await haste.game.leaderboards(playerId);
// eslint-disable-next-line no-console
console.log(leaderBoards);
}
Expand Down Expand Up @@ -64,7 +64,7 @@ async function score(play: Play, scoreValue: number) {

async function run() {
await authenticate();
getLeaderboards();
await getLeaderboards(process.env.PLAYER_ID);
await getPayouts(process.env.PLAYER_ID ?? '');
}

Expand Down
15 changes: 8 additions & 7 deletions examples/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@hastearcade/models": "^1.4.1",
"@hastearcade/server": "1.6.3",
"@hastearcade/server": "2.0.0-next.1",
"dotenv": "^16.0.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit a859e8a

Please sign in to comment.