Giter Site home page Giter Site logo

windhorsenote's Introduction

To develop:

npm run start

To deploy to gh-pages:

npm run deploy

To debug, go to /debug.html. To prettify the data, add ?pretty.

windhorsenote's People

Contributors

peteranny avatar

Watchers

 avatar

windhorsenote's Issues

Bugs

  • usePlaceCreatures不先排序,改亂數
  • 金牛座小風小馬要有星座圖案
  • 鈴鐺數增加
  • 像小風小馬的石頭要便宜一點
  • 電電迴紋針
  • 辣椒說明

小風的存檔紀錄

{"slots":{"lowerRight":{"itemIdentifier":"2022-09-wind","creatureIdentifier":null,"nextUpdate":1691746130170},"lowerLeft":{"itemIdentifier":"2022-04","creatureIdentifier":"2022-04-wind","nextUpdate":1693318646657},"upperRight":{"itemIdentifier":"2022-10","creatureIdentifier":"2023-06-wind","nextUpdate":1693318646520},"upperLeft":{"itemIdentifier":"2022-09-horse","creatureIdentifier":null,"nextUpdate":1691730370004}},"creatures":{"2017-09":{"seenCount":2,"unread":false},"2016-07":{"seenCount":15,"unread":false},"2016-08":{"seenCount":2,"unread":false},"2016-09":{"seenCount":20,"unread":false},"2017-03":{"seenCount":7,"unread":false},"2017-04":{"seenCount":2,"unread":false},"2017-05":{"seenCount":6,"unread":false},"2017-06":{"seenCount":6,"unread":false},"2017-07":{"seenCount":13,"unread":false},"2017-10":{"seenCount":5,"unread":false},"2017-11":{"seenCount":7,"unread":false},"2017-12":{"seenCount":5,"unread":false},"2018-01":{"seenCount":9,"unread":false},"2020-07":{"seenCount":4,"unread":false},"2020-08":{"seenCount":3,"unread":false},"2020-09":{"seenCount":2,"unread":false},"2020-10":{"seenCount":4,"unread":false},"2022-04-horse":{"seenCount":6,"unread":false},"2022-04-wind":{"seenCount":7,"unread":false},"2022-05-horse":{"seenCount":8,"unread":false},"2022-05-wind":{"seenCount":10,"unread":false},"2022-06-horse":{"seenCount":14,"unread":false},"2022-06-wind":{"seenCount":1,"unread":false},"2022-07-horse":{"seenCount":7,"unread":false},"2022-07-wind":{"seenCount":3,"unread":false},"2022-08-horse":{"seenCount":2,"unread":false},"2022-08-wind":{"seenCount":4,"unread":false},"2022-12-horse":{"seenCount":3,"unread":false},"2022-12-wind":{"seenCount":8,"unread":false},"2023-01-horse":{"seenCount":2,"unread":false},"2023-01-wind":{"seenCount":3,"unread":false},"2023-04-horse":{"seenCount":1,"unread":false},"2023-04-wind":{"seenCount":3,"unread":false},"2023-05-horse":{"seenCount":2,"unread":false},"2023-05-wind":{"seenCount":22,"unread":false},"2023-06-horse":{"seenCount":7,"unread":false},"2023-06-wind":{"seenCount":8,"unread":false},"2023-07-horse":{"seenCount":3,"unread":false},"2023-07-wind":{"seenCount":2,"unread":false}},"backpack":{"2016-10":true,"2016-09":true,"2020-07":true,"2020-04":true,"2020-06":true,"2020-05":true,"2020-10":true,"2020-11":true,"2020-12":true,"2022-01":true,"2021-12":true,"2021-01":true,"2022-08":true,"2022-09-wind":true,"2022-09-horse":true,"2022-11":true,"2022-10":true,"2022-04":true,"2017-09":true},"bellCount":422,"notifications":{"unreadBells":[]},"final":{"seenFinal":true}}

RoadMap

首頁

  • 中間
    • 小風小馬
  • 周圍
    • 空格
    • 墊子
    • 墊子上有新的小風小馬
  • 角落
    • 圖鑑
    • 背包
    • 鈴鐺通知
    • 目前鈴鐺

Store

  • Local Storage
    • dehydrate on startup
    • hydrate on save
  • 架構
    • 上次更新時間戳
    • 每個空格狀態(空格/墊子/墊子上的小風小馬ID/時間戳) slots: { upperLeft: { itemIdentifier, creatureIdentifier, creatureArriveTime } }
    • 目前鈴鐺
    • 背包每個墊子是否已購買
    • 圖鑑每個小風小馬來訪次數
    • 鈴鐺通知

小風小馬

  • 墊子上有小風小馬的時候,小風小馬會左右搖擺

分派小風小馬策略

  • 每次刷新
    • 時間戳會儲存至 store
    • 若目前時間早於上次時間戳+1min,不更新
  • 每次更新時間戳,會分派每個墊子的小風小馬
    • 空的墊子:隨機/以墊子去選/以小風小馬去競爭墊子/... 有可能還是空的
    • 若分派小風小馬到空墊子上,會記錄小風小馬ID和時間戳至 store
    • 有小風小馬的墊子
      • 會比對該墊子時間戳的TTL,到期者會被移除
      • 新增鈴鐺和鈴鐺通知
      • 使墊子為空

背包

  • 每個墊子
    • ID
    • desc
    • 售價鈴鐺數
    • 分派策略函數
    • 是否已購買
    • 是否已放入空格
  • 若尚未放入空格,則選擇放入哪個空格
  • 若已放入空格,則移出空格
  • 設計更多墊子

圖鑑

  • 每個小風小馬
    • ID
    • desc
    • 分派策略函數
    • 來訪次數
    • 設計更多小風小馬

鈴鐺通知

  • 每個鈴鐺通知
    • 小風小馬ID
    • 鈴鐺數
    • 已讀按鈕

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.