Is it possible to make a game in the browser based on divs, <imgs>, HTML5, CSS3, and good ole’ jQuery? According to this guy, browser rendering speed is pretty good these days, which is the only reason I’m even considering this option. Is his answer applicable to creating a game in vanilla HTML?
Is it possible to make a game in the browser based on divs ,
Share
Yes. DHTML games have been around for over a decade and HTML 5 provides fairly advanced rendering via the
CANVAS. Check out Microsoft’s rendering examples for the IE engine to see the type of performance you can expect (some things perform better than others–most are very impressive).Check out this little HTML 5 MMO project and Illyriad (which claims to be HTML 5 based).
Is it possible to write a game without the
CANVASelement? Visually, you will be limited but logic can still be sophisticated. A game engine should be based on high-performance structures, not on DOM elements. For example, if you were calculating collision on a 2D field, you might evaluate a matrix and redraw only the impacted elements. You should not evaluate the position of DOM elements, as this will be very slow.