Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CSSだけでCookie Clickerを作る
Search
kthatoto
October 29, 2023
Technology
0
600
CSSだけでCookie Clickerを作る
kthatoto
October 29, 2023
Tweet
Share
More Decks by kthatoto
See All by kthatoto
複数ブラウザウィンドウを 単一平面とみなしてボールの 衝突判定をする
kthatoto
0
140
いろいろな駆動開発の話 / various-driven-development
kthatoto
0
90
ぼくのかんがえたさいきょうの放置ゲームを作ってる話 / saikyou-houti-game
kthatoto
1
470
最強の放置ゲームを作ってる話 ~ と、そのうちのゲーム作るためのゲームデータエディタを作ってる話 ~
kthatoto
0
65
ぼくのかんがえたさいきょうのぶろぐしすてむ
kthatoto
0
720
Other Decks in Technology
See All in Technology
AGIについてChatGPTに聞いてみた
blueb
0
130
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
290
SSMRunbook作成の勘所_20241120
koichiotomo
2
130
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
強いチームと開発生産性
onk
PRO
33
11k
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
680
いざ、BSC討伐の旅
nikinusu
2
780
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
Lexical Analysis
shigashiyama
1
150
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
410
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Navigating Team Friction
lara
183
14k
Ruby is Unlike a Banana
tanoku
97
11k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
How GitHub (no longer) Works
holman
310
140k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Facilitating Awesome Meetings
lara
50
6.1k
Transcript
$44͚ͩͰ$PPLJF$MJDLFSΛ࡞Δ !IUPQJHFPO
ߴڮ Ұే (Kazuto Takahashi) ɾॴଐɿגࣜձࣾΫϩεϏοτ ɾۀɿγϑτཧαʔϏεͷ։ൃ, ςοΫϦʔυ ɾٕज़ɿRails, Vue,
React, NeoVim ɾझຯɿٕज़ͷແବ͍, ์ஔήʔϜ Zenn / GitHub @kthatoto X @h4topigeon
%FNP https://kthatoto.github.io/css-cookie-clicker
Έ JOQVUUZQFDIFDLCPYͷଟ༻ CZQVH $44ͷDPVOUFSؔDIFDLFE d 4BTT4$44ͷཞ༻
JOQVUUZQFDIFDLCPYͷଟ༻ CZQVH
JOQVUUZQFDIFDLCPYͷଟ༻ CZQVH 🍪 ਤղ ΫϦοΫ 🍪 🍪input:checked νΣοΫ͞ΕͨinputΛ ݟ͑ͳ͍ͱ͜Ζʹඈ͢
4BTT4$44ͷཞ༻ JUFN͕ߪೖՄೳ͔$44Ͱஅ ΄΅खଓతϓϩάϥϜॻ͍ͯΔײ֮ QSJDFͷJUFNʹରͯ͠ ଞͷJUFNΛߪೖ͍ͯ͠ͳ͚Ε ɹɹݸҎ্DIFDLFEͳΒMBCFMԡͤΔ
ଞͷJUFNΛߪೖ͍ͯ͠Δ߹ ɹɹͦͷJUFNͷஈ ݸҎ্DIFDLFE ɹ͜ΕΛશͯͷύλʔϯॻ͘
OݸͷJUFN͕͋Δ࣌ ɹ ͷએݴϒϩοΫ͕ඞཁʹͳΔ ྫ ݸͷJUFN͕࣌ JUFNΛങ͑Δ͔Ͳ͏͔ JUFNΛങͬͯͳ͍JUFNΛങͬͯͳ͍
JUFNΛങͬͨJUFNΛങͬͯͳ͍ JUFNΛങͬͯͳ͍JUFNΛങͬͨ JUFNΛങͬͨJUFNΛങͬͨ JUFNΛങ͑Δ͔Ͳ͏͔ ಉ͘͡ύλʔϯ JUFNΛങ͑Δ͔Ͳ͏͔ ಉ͘͡ύλʔϯ n ⋅ 2(n−1) 4BTT4$44ͷཞ༻ }2(3−1)}3
ྫ JUFNDPPLJF JUFNDPPLJFTͷ߹ 4BTT4$44ͷཞ༻ item1Λങ͏ͷʹ1cookieඞཁ item2ΛߪೖࡁΈ(2cookies) item1Λങ͏ͷʹ3cookiesඞཁ
.BQ "SSBZ ɹɹ JUFNใ GPS FBDIϧʔϓ ɹɹ
ී௨ʹ JG FMTFذ ɹɹ ϧʔϓͷ࠷ޙͷJUFSBUJPOͳΒʙ͢Δ ɹɹ JUFNΛങΘΕͨ߹ʙ ΧελϜؔ ɹɹ QPX O N OͷN ɹɹ CJOBSZIJU O EJHJU ɹɹɹOΛਐදهͨ࣌͠ʹEJHJUʹ ɹɹɹ͕͋Δ͔ 4BTT4$44ͷཞ༻
ΞΠςϜͷޮՌΛ࣮͢Δ ɹɹ ΫϦοΫ͋ͨΓͷ֫ಘ$PPLJFΛ૿͢ ɹɹ ࣗಈͰ૿͑ΔΑ͏ʹ͢Δ ͜ΕෆՄೳʹۙͦ͏ ࠓޙ