Is it possible? Is it easy? Let's find out!
But why not use divs with background images? Because dammit, that's why ^__^ . Actually, the spirit of this is to avoid images. I want everything to be rendered like it was on an old 8-bit Nintendo. The goal of this experiment is to see if it's possible and to see how easy/difficult it may be.
To accomplish this, I set forth a base set of criteria:
- Any object on screen must be from a map
- The way they are rendered must be repeatable and easy
- It has to be nerdtastic (totally optional)
You'll have noticed a few things. One is that it is _very_ obvious what the sprites are. You can also see that I am creating an insane amount of divs. That's OK. Think of them not as divs, but as really inefficient pixels. Lastly, you can see this doesn't do much. In fact, here's what it does:
For me, that's really neat. Like in a nerdgasm sorta way.
So what's the ultimate goal here? I plan on generating the entire first level. I hope you come with me on the journey. There will be some fun stumbling blocks along the way.
Next time: Let's make Mario move!!!
Have fun everyone!