Last Update: 10/05/2019
Walker Treker is the companion repo to walkertrekker-api. It is a zombified game to motivate human people to walk more. Built in React Native for iOS and Android.
It was created by 3 groups of EyeCue Lab interns:
With the support of EyeCue Lab employees - thank you! (:
Check out the walkertreker wiki
- Create Campaign - returns a proto-campaign to state, containing campaign id, length, difficulty, and event frequency; adds host player to campaign players
- type:
c.SET_INITIAL_CAMPAIGN_DETAILS
- payload:
{ "params": { "campaignLength": campaign.length, "difficultyLevel": campaign.difficultyLevel, "randomEvents": campaign.randomEvents, }, "playerId": player.id, }}
- type:
- Destroy Campaign - returns campaign state to its initial blank value
- type:
c.DESTROY_CAMPAIGN
- campId:
campaign.id
- type:
- Fetch Campaign - returns campaign to campaign state that matches the supplied campaign id
- type:
c.FETCH_CAMPAIGN_INFO
- id:
campaign.id
- type:
- Invite to Campaign - does not return anything to state; sends invites from the server
- type:
c.SEND_INVITES
- campId:
campaign.id
- playId:
player.id
- invites:
[array] of contacts gathered from the device
- type:
- Join Campaign - returns updated campaign to campaign state that matches the supplied campaign id
- type:
c.SEND_JOIN_CAMPAIGN_REQUEST
- campId:
campaign.id
- playId:
player.id
- type:
- Leave Campaign - returns campaign state to its initial blank value
- type:
c.LEAVE_CAMPAIGN
- campId:
campaign.id
- playId:
player.id
- type:
- Start Campaign - returns updated campaign to campaign state that matches the supplied campaign id
- type:
c.START_CAMPAIGN
- campId:
campaign.id
- startNow:
[boolean] ? campaign starts instantly : campaign start tomorrow morning
- type:
- Update Campaign - returns updated campaign to campaign state that matches the supplied campaign id
- type:
c.UPDATE_CAMPAIGN
- campId:
campaign.id
- currentDay: optional
[number] denoting day of campaign, from 0 to 89
- inventory: optional
{ foodItems: [number, number, number], weaponItems: [number, number], medicineItems: [number, number, number, number] }
- type:
- Create Player - returns newly-created player object to player state
- type:
c.CREATE_PLAYER
- name:
'Macho Man Randy Savage'
- number:
[number] which is the players phone number
- type:
- Fetch Player - returns requested player object to player state
- type:
c.FETCH_PLAYER
- playId:
player.id
- type:
- Update Player - returns updated player object to player state
- type:
c.UPDATE_PLAYER
- playId:
player.id
- hunger: optional
[number] from 0 to 100, with 100 meaning completely stuffed and 0 meaning dead of starvation
- health: optional
[number] from 0 to 100
- steps: optional
[array] of steps to date in the campaign; length should be equal to campaign length
- type: