Super Blocks – HTML5 Game
Super Blocks Overview & Canvas Rendering Architecture
Super Blocks is an HTML5 falling-block puzzle engine built with CreateJS, engineered for web studios and portal operators to deploy a Tetris-style row-clearing game across desktop and mobile browsers. The codebase solves the core bottleneck of maintaining a stable, resolution-independent Canvas render loop while supporting legacy engines back to IE9 alongside modern Chrome, Edge, Firefox, Safari, and Opera builds. Inside an agency delivery pipeline, the package functions as a self-contained deployable unit — HTML, CSS, JavaScript, and a layered Photoshop PSD — that drops onto any static host and scales between a 1280×768 landscape stage and a 768×1024 portrait stage.
Technical Specifications & Deployment Matrix
| Engineering Metric | Deployment Specification |
|---|---|
| Base Technology / Framework | HTML5 Canvas game constructed on the CreateJS suite |
| Runtime / Browser Requirements | IE9, IE10, IE11, Firefox, Safari, Opera, Chrome, Edge |
| Deliverable Package | JavaScript JS, HTML, CSS, PHP files plus a layered PSD source document |
| Stage Resolutions | 1280×768 (landscape) and 768×1024 (portrait), scaling proportionally per device |
| External Communication | Social share distribution via Facebook, Twitter, WhatsApp, Telegram, Reddit, and LinkedIn |
| Score Persistence | Optional leaderboard add-on with Top 10 ranking submission; requires the base game build |
Falling-Block Logic, Game Modes & Execution Pipeline
The engine rotates incoming block pieces on a grid matrix, clears completed horizontal rows, and advances difficulty through configurable speed curves. Input arrives through three parallel channels — keyboard events, mouse handlers, and touch gestures — which the update loop normalizes into a single rotation and drop command stream before each render tick. As of version 1.3, a reverse mode extends the directional logic of the stack, and a timer fix corrected frame-dependent drift in timed sessions.
The board layer is parameterized rather than hard-coded: the classic 10×20 matrix coexists with custom dimensions ranging from 10×20 up to 25×30, so the collision and line-clear routines operate against dynamic grid boundaries. Row removal is animated through two selectable effect implementations — slide and blink — triggered from the mode configuration rather than code-level branching. Studios running broader browser-based entertainment catalogs often ship this engine alongside War Tactics to cover both the puzzle and strategy segments of a game portal from the same HTML5 deployment pattern.
Architectural & Functional Highlights
- Five game modes with exposed settings: Marathon, Quick Play, Hardcore, plus the reverse variant, each governed by a Mode Settings layer covering Timer, Speed, and Goal parameters that map directly onto the difficulty curve without code rewrites.
- Seven-theme skinning pipeline: Theme Settings control Size, Colors, Images, and Music per theme, including a neon variation, while the included layered PSD allows full sprite replacement during a reskin cycle.
- DevicePixelRatio-aware scaling: Version 1.5 rebuilt the HTML5 template so the stage resizes proportionally across landscape and portrait orientations, correcting blurriness on high-density displays.
- Multi-network score distribution: Share Score hooks dispatch finished results to six social networks, expanded in v1.5 with Telegram, Reddit, and LinkedIn endpoints.
- Session control primitives: Enter FullScreen, Mute Sound, and Exit Game operate as first-class options wired into the base UI layer.
Production Implementation & Operational Resilience
Deployment follows a static-asset model: upload the package contents to any web server and load the HTML entry point — the included PHP file handles auxiliary hosting scenarios. Because the render stage auto-resizes in both orientations, embedding inside responsive containers or portal iframes remains stable; the v1.4 changelog explicitly addresses iframe scroll hijacking, and the v1.2 release corrected fullscreen invocation quirks. For unsupported engines, the package ships a dedicated browser-not-supported page that intercepts failures before the Canvas loop initializes, preventing a broken grey stage for legacy visitors.
Secondary development stays inside documented boundaries. Text display strings and image assets are replaceable through the complete customization layer, meaning localization or rebranding requires no engine surgery. The one sanctioned architectural extension is the leaderboard add-on, which layers score submission and a Top 10 ranking view over the base game — the base build is a declared prerequisite for that module. Teams assembling a multi-genre casual arcade typically round out the catalog with a construct-driven title such as True Words or a trivia engine like Quiz Game 2, each operating as an independent HTML5 deliverable on the same portal infrastructure.
Frequently Asked Questions
Does the download package include editable design source files for a full reskin?
Yes. The ZIP ships with a layered Photoshop PSD alongside the JavaScript, HTML, and CSS sources, so every visual asset can be modified in the original design workflow rather than reverse-engineered from the runtime.
Is there a fallback page when a visitor’s browser cannot run the game?
Yes. A dedicated browser-not-supported page is bundled with the build. It renders when required HTML5 capabilities are absent, which keeps legacy IE9-era traffic from encountering a non-functional Canvas stage.
Can the game be embedded in an iframe without scroll conflicts?
Yes. Version 1.4 specifically patches iframe scrolling behavior, so the embedded stage no longer captures wheel or touch scroll events from the parent page layout.
Does the leaderboard ranking ship inside the base build?
No. The leaderboard operates as a separate add-on that lets players submit scores and view the Top 10, and it explicitly requires the base game package to be installed before it will function.