diff options
Diffstat (limited to 'html/tower/docs/module-renderer.html')
-rw-r--r-- | html/tower/docs/module-renderer.html | 659 |
1 files changed, 659 insertions, 0 deletions
diff --git a/html/tower/docs/module-renderer.html b/html/tower/docs/module-renderer.html new file mode 100644 index 0000000..bed9852 --- /dev/null +++ b/html/tower/docs/module-renderer.html @@ -0,0 +1,659 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>JSDoc: Module: renderer</title> + + <script src="scripts/prettify/prettify.js"> </script> + <script src="scripts/prettify/lang-css.js"> </script> + <!--[if lt IE 9]> + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> + <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> +</head> + +<body> + +<div id="main"> + + <h1 class="page-title">Module: renderer</h1> + + + + + + +<section> + +<header> + + + + + +</header> + +<article> + <div class="container-overview"> + + + <div class="description">Rendering Module + +This module handles all game rendering operations using HTML5 Canvas. +Demonstrates key game development patterns: +1. Layer-based rendering +2. Particle systems +3. Visual state feedback +4. Canvas state management</div> + + + + + + + + + + + + + + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="renderer.js.html">renderer.js</a>, <a href="renderer.js.html#line1">line 1</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + </div> + + + + + + + + + + + + + + + + + <h3 class="subsection-title">Methods</h3> + + + + + + + + <h4 class="name" id="~renderEnemies"><span class="type-signature">(inner) </span>renderEnemies<span class="signature">(ctx, enemies)</span><span class="type-signature"></span></h4> + + + + + + +<div class="description"> + Renders all enemies with health indicators and effects +Implements visual state representation +</div> + + + + + + + + + + <h5>Parameters:</h5> + + +<table class="params"> + <thead> + <tr> + + <th>Name</th> + + + <th>Type</th> + + + + + + <th class="last">Description</th> + </tr> + </thead> + + <tbody> + + + <tr> + + <td class="name"><code>ctx</code></td> + + + <td class="type"> + + +<span class="param-type">CanvasRenderingContext2D</span> + + + + </td> + + + + + + <td class="description last">Canvas rendering context</td> + </tr> + + + + <tr> + + <td class="name"><code>enemies</code></td> + + + <td class="type"> + + +<span class="param-type">Array.<Object></span> + + + + </td> + + + + + + <td class="description last">Array of enemy objects</td> + </tr> + + + </tbody> +</table> + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="renderer.js.html">renderer.js</a>, <a href="renderer.js.html#line88">line 88</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + + + + + <h4 class="name" id="~renderGrid"><span class="type-signature">(inner) </span>renderGrid<span class="signature">(ctx, grid)</span><span class="type-signature"></span></h4> + + + + + + +<div class="description"> + Renders the game grid with path and hover previews +Implements visual feedback for player actions +</div> + + + + + + + + + + <h5>Parameters:</h5> + + +<table class="params"> + <thead> + <tr> + + <th>Name</th> + + + <th>Type</th> + + + + + + <th class="last">Description</th> + </tr> + </thead> + + <tbody> + + + <tr> + + <td class="name"><code>ctx</code></td> + + + <td class="type"> + + +<span class="param-type">CanvasRenderingContext2D</span> + + + + </td> + + + + + + <td class="description last">Canvas rendering context</td> + </tr> + + + + <tr> + + <td class="name"><code>grid</code></td> + + + <td class="type"> + + +<span class="param-type">Array.<Array.<string>></span> + + + + </td> + + + + + + <td class="description last">Game grid state</td> + </tr> + + + </tbody> +</table> + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="renderer.js.html">renderer.js</a>, <a href="renderer.js.html#line21">line 21</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + + + + + <h4 class="name" id="~renderUI"><span class="type-signature">(inner) </span>renderUI<span class="signature">(ctx, gameState)</span><span class="type-signature"></span></h4> + + + + + + +<div class="description"> + Renders game UI elements with clean state management +Implements heads-up display (HUD) pattern +</div> + + + + + + + + + + <h5>Parameters:</h5> + + +<table class="params"> + <thead> + <tr> + + <th>Name</th> + + + <th>Type</th> + + + + + + <th class="last">Description</th> + </tr> + </thead> + + <tbody> + + + <tr> + + <td class="name"><code>ctx</code></td> + + + <td class="type"> + + +<span class="param-type">CanvasRenderingContext2D</span> + + + + </td> + + + + + + <td class="description last">Canvas rendering context</td> + </tr> + + + + <tr> + + <td class="name"><code>gameState</code></td> + + + <td class="type"> + + +<span class="param-type">Object</span> + + + + </td> + + + + + + <td class="description last">Current game state</td> + </tr> + + + </tbody> +</table> + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="renderer.js.html">renderer.js</a>, <a href="renderer.js.html#line142">line 142</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + + + + +</article> + +</section> + + + + +</div> + +<nav> + <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-game.html">game</a></li><li><a href="module-gameState.html">gameState</a></li><li><a href="module-mechanics.html">mechanics</a></li><li><a href="module-path.html">path</a></li><li><a href="module-renderer.html">renderer</a></li><li><a href="module-uiHandlers.html">uiHandlers</a></li></ul> +</nav> + +<br class="clear"> + +<footer> + Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Feb 17 2025 09:19:19 GMT-0500 (Eastern Standard Time) +</footer> + +<script> prettyPrint(); </script> +<script src="scripts/linenumber.js"> </script> +</body> +</html> \ No newline at end of file |