ver-1000000 / akaino-warai Goto Github PK
View Code? Open in Web Editor NEWわっはっはっはっは
Home Page: https://ver-1000000.github.io/akaino-warai/
License: MIT License
わっはっはっはっは
Home Page: https://ver-1000000.github.io/akaino-warai/
License: MIT License
ちゃんと考えた時どうあるべきかを示せ、クロウカード!
久しぶりにリポジトリ見直してて思ったんだけど、ふくわらいって「時間経過によるランダム性のある要素のタイミングを決定して造形するゲーム」じゃなくて「形(触覚)でしか判別できない状態で正しい形をつくる」ゲームであって、
もうちょっと落とし込めるところあるよね。
ゲーム性がかなり変わるので、新しくリポジトリ作ろうかなぁとも思ったけど、現時点のゲーム性が異様につまらないからこれはもう以下の仕様で書き直しましょうね。
かなり実装が変わるが、点数計算ロジックとかはそのまま使えると思う。
https://github.com/ver-1000000/akaino-warai/blob/master/src/index.ts#L219
これがなんのためのsetTimeoutなのかというと、
「終了後に表示されるScoreとTweet時に表示されるScoreが違う…… レンダリング後に数字が微動してんのか……? なぜ??? とりあえずしばらく経ってから表示したら値固定されとるやろw お、されとるわ! でも400msだとたまにずれるな、500msにしとこw」
というアレなので環境依存っぽいしクソなのでなんとかしたい。
scoreをgetterではなくて関数にして、サービスの変数として保持しておけばいいんだけど、
依存から自動的にスコア計算させられたほうが気持ちええやんとかってことでゲッターになっとる。 どうなん?
まぁでもこんなあやふやなsetTimeout使うのは良くないので変数に保持するほうがよいだろう。
でもでも、もっといいのは「何故500ms経つと値が固定されるのか」を理解することからはじまるだろう。
https://twitter.com/Ver1000000000/status/1439303419492143104?s=19
あと、URL復元機能のマイグレーションも行う
だれかたのむよ
誰か頼んます
これやるとしたらさ〜〜〜ディレクトリ構成の設計をな〜〜〜
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.