~/talk

How to Create Pure CSS Games

Talkat code.talks 2022 · 2022-09-15..09-16· [creative-coding, css]
links:none on file
slides:none on file

A complete playable game is implemented using only HTML and CSS (with Sass and Pug to generate code): about 100 virus sprites move via CSS animations, remove themselves when their wrapped input radios are checked using label toggles and the :checked + sibling selector, score uses a CSS counter that increments on checked radios, countdown is two synchronized animations, animations are generated with Sass loops and Sass random() for variation, game reset uses a form reset button, and game over is timed by animation delay (99s).

AI-written summary · about

  1. 0:00Introduction
  2. 3:09CSS game inspiration
  3. 5:15Preprocessors for efficiency
  4. 6:59Game frames in CSS
  5. 8:44Checkbox actions
  6. 10:51Dynamic frame display
  7. 13:20Viruses disappearing with CSS
  8. 15:47CSS score tracking
  9. 19:00CSS countdown timer
  10. 22:11Random values in CSS
  11. 25:01Resetting game with CSS
  12. 27:08Game over curtain
  13. 28:12Fun projects matter
~/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.