1
\$\begingroup\$

Because of sheer experimentation, I'd like to make a game that contains a tilemap - without using the Canvas API provided for HTML5. Instead, I'd rely on CSS and Javascript (with jQuery).

Is there any chance that I can create it? If yes, how?

I have some ideas, such as placing lots of <img> tags and changing their sources constantly, but there might be better methods out there.

\$\endgroup\$
  • 1
    \$\begingroup\$ You can also use Scalable Vector Graphics. \$\endgroup\$ – Anko Dec 17 '16 at 21:01
  • \$\begingroup\$ @Anko oh my God, this is what SVG stands for? I've never had an idea. \$\endgroup\$ – Zoltán Schmidt Dec 18 '16 at 3:12
1
\$\begingroup\$

image tags with absolute positioning via css.

better solution is canvas... but that requires canvas :)

even better solution is webgl, but again, that requires canvas.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.