Skip to content

eyecuelab/walkertreker

Repository files navigation

Walker Treker

They're right behind you...

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! (:

Are you a walkertreker developer? Or want to learn more about the stack?

Check out the walkertreker wiki

A Handy (But Possibly Incomplete) List of Actions:

Dispatching actions

Here are the actions and payloads needed to dispatch actions to the server:

  • 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, }}
  • Destroy Campaign - returns campaign state to its initial blank value
    • type: c.DESTROY_CAMPAIGN
    • campId: campaign.id
  • Fetch Campaign - returns campaign to campaign state that matches the supplied campaign id
    • type: c.FETCH_CAMPAIGN_INFO
    • id: campaign.id
  • 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
  • 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
  • Leave Campaign - returns campaign state to its initial blank value
    • type: c.LEAVE_CAMPAIGN
    • campId: campaign.id
    • playId: player.id
  • 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
  • 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] }
  • 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
  • Fetch Player - returns requested player object to player state
    • type: c.FETCH_PLAYER
    • playId: player.id
  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published