~/talk

How to Create Pure CSS Games

Talkat DevDays Europe 2022 · 2022-04-27..04-28· [creative-coding, css]
links:none on file
slides:none on file

Builds a working pure CSS game that uses label elements plus hidden input radios and checkboxes to act as buttons and flags, CSS :checked sibling selectors to show frames, and opacity changes to “kill” targets; prints score with a CSS counter and implements a 99 second countdown via synced CSS animations. Movement and randomness come from dynamically generated keyframes produced by a Sass loop and random() calls for 100 creatures. All mechanics run without JavaScript and the demo runs in CodePen.

AI-written summary · about

  1. 0:00Introduction
  2. 1:24Pandemic inspiration
  3. 3:07Coronavirus invaders game
  4. 4:52Game visual design
  5. 6:59HTML/CSS preprocessors
  6. 8:01CSS game frames
  7. 10:07CSS checkbox actions
  8. 11:32Dynamic game elements
  9. 14:21Click handling
  10. 16:26Pure CSS score counter
  11. 17:51Score counter demo
  12. 19:36Pure CSS countdown
  13. 22:06Random values in CSS
  14. 25:00Reset game state
  15. 26:24Game over curtain
  16. 27:07Key takeaways
  17. 28:31Speaker & resources
  18. 29:14Q&A CSS limits
  19. 31:21Q&A front-end collab
  20. 33:07Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.