~/talk

How to Create Pure CSS Games

Talkat Frontmania 2022 · on Wednesday, 2022-10-05· [creative-coding, css]
links:none on file
slides:none on file

Built a playable "coronavirus Invaders" entirely with HTML and CSS using Pug and Sass for generation, not JavaScript. Uses input radio/checkbox flags and label elements to toggle frames, a CSS counter to increment score, and CSS animations timed to end the game at 99 seconds. Generates position, scale and rotation via Sass random during compilation for about 100 coronavirus creatures. Wraps everything in a form and uses a reset input to restart; the demo runs in CodePen.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:57Creating the coronavirus creature
  3. 6:29Game structure with HTML sections
  4. 8:16Using checkboxes for game state
  5. 11:07Hiding and showing frames with CSS
  6. 13:12Handling multiple operations per click
  7. 14:16Disappearing virus on click
  8. 16:47CSS counters for scoring
  9. 20:20Pure CSS countdown timer
  10. 23:31Randomizing virus positions
  11. 26:43Resetting the game state
  12. 28:09Game over after 99 seconds
  13. 29:19Key takeaways and fun projects
  14. 31:08Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.