Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSSだけでCookie Clickerを作る
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kthatoto
October 29, 2023
Technology
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSSだけでCookie Clickerを作る
kthatoto
October 29, 2023
More Decks by kthatoto
See All by kthatoto
複数ブラウザウィンドウを 単一平面とみなしてボールの 衝突判定をする
kthatoto
0
220
いろいろな駆動開発の話 / various-driven-development
kthatoto
0
100
ぼくのかんがえたさいきょうの放置ゲームを作ってる話 / saikyou-houti-game
kthatoto
1
490
最強の放置ゲームを作ってる話 ~ と、そのうちのゲーム作るためのゲームデータエディタを作ってる話 ~
kthatoto
0
79
ぼくのかんがえたさいきょうのぶろぐしすてむ
kthatoto
0
750
Other Decks in Technology
See All in Technology
Adversary Infrastructure Hunting101
disconinja
0
110
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.5k
「Learning Outcome」を書きたくない私が、Learning Outcomeと折り合いをつけるまで
mhlyc
0
180
Temporal 最高!でも改めて「日付」について調べたら人類の負債すぎる件
riyaamemiya
0
230
「エーアイ」をバズワードにしないために RPA 導入経験と Kiro 上での Claude モデル利用経験から
kazzpapa3
0
120
Steerable Visual Representations
sansantech
PRO
0
340
BacklogのRAG 今ならこう作る - S3 Vectorsと自前パイプラインの勘所
revsystem
0
120
僕のハーネスを紹介します
watany
5
1.6k
その Valkey 使いこなしていますか?
onk
PRO
5
2k
How to Design Configuration for Rails Applications
willnet
2
1.2k
LLM-as-a-Judgeは本当に信頼できるのか――評価器を評価する話
taka_aki
3
1.1k
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
250
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
310
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
The Invisible Side of Design
smashingmag
301
52k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Mind Mapping
helmedeiros
1
400
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
630
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
The Language of Interfaces
destraynor
162
27k
Agile that works and the tools we love
rasmusluckow
331
22k
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Λ૿͢ ɹɹ ࣗಈͰ૿͑ΔΑ͏ʹ͢Δ ͜ΕෆՄೳʹۙͦ͏ ࠓޙ