From 1405220941ac0e7150fa08ede05386de7d4bf1e8 Mon Sep 17 00:00:00 2001 From: bpcreech <35012922+bpcreech@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:23:16 -0500 Subject: [PATCH] Update typescript-asteroids.md --- content/post/typescript-asteroids.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/content/post/typescript-asteroids.md b/content/post/typescript-asteroids.md index e268e54..c58089b 100644 --- a/content/post/typescript-asteroids.md +++ b/content/post/typescript-asteroids.md @@ -22,10 +22,9 @@ it's live [here](https://bpcreech.com/asteroids/)! ## Asteroids -[Asteroids](https://www.arcade-museum.com/Videogame/asteroids) is one of my -favorite video games. Many years ago, the daycare I grew up in (!) had an -original tabletop Asteroids game for us munchkins to play with. I spent hours on -that thing instead of playing sportsball or getting vitamin D. Asteroids is +[Asteroids](https://www.arcade-museum.com/Videogame/asteroids) is one of my favorite video games. Many years ago, the daycare I grew up in (!) had +an original tabletop Asteroids game for us munchkins to play with. I spent +hours on that thing instead of playing sportsball or getting vitamin D. Asteroids is super cool in both its simplicity, and its use of vector graphics—as in, the original CRT didn't just do the horizontal scan thing; the tube traced out the vector pattern on the screen, resulting in things like small shapes showing up @@ -35,17 +34,13 @@ So I have spent random minutes playing [Doug McInnes's JS asteroids clone](https://github.com/dmcinnes/HTML5-Asteroids) to reset my brain, for years since he first published it back in 2010. -

+

![An original Asteroids "Cocktail"-style tabletop game](/img/asteroids-cocktail.jpg)

-![An original Asteroids "Cocktail"-style tabletop game](/img/asteroids-cocktail.jpg) - -[source](https://arcadespecialties.com/arcade-games-for-sale/vintage-arcade-games/asteroids-cocktail/) - -

+

An original Asteroids "Cocktail"-style tabletop game; [source](https://arcadespecialties.com/arcade-games-for-sale/vintage-arcade-games/asteroids-cocktail/)

## TypeScriptification -I wanted to play with ML reinforcement learning (more on that later), which +I wanted to play with ML reinforcement learning (more on that below), which requires me first to do some code refactoring on the game. Notably, to do training I want to be able to programmatically: