Skip to content

GASH-SCAV/shadow-the-hedgehog-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi Judge Gabi!

This is the "If I Did It: Confessions of a Killer" for the repo. These are the steps I took to complete the item.

  1. Learned what the Shadow DOM is. I didn't know about this and I taught Javascript.
  2. Took a Sprite of Sonic the Hedgehog from Sonic 1 taken from a sprite chart and repainted it in Pixilart to make it look like Shadow, in the tradition of reskinned sprites, and exported it as pixil-frame-0.png
  3. From there, I stole a Python script from Stack Overflow (link to stack overflow commented in file) to convert an image into an array of arrays of RGBA strings, slightly modified it, and created pixels.json
  4. Then I stole another script from a blog to convert that into hex codes in JS.
  5. Finally, we attach a shadow dom root element, make it a flexbox, and churn out a bunch of rows of cells. Pixel art!
  6. Then I did it again with another part of the sprite animation, to make my favorite Sonic 1 sprite animation!
  7. I enjoyed this item, thank you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published