Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
art-emini authored Jul 9, 2021
2 parents 33b6143 + dccfbaf commit 562047d
Show file tree
Hide file tree
Showing 118 changed files with 1,147 additions and 379 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

Old Versions that are over 5 versions behind will be removed.

## 1.1.0

1. Game
1. Added deltaTime parameter to scene update and render methods
2. Fixed mobile dpr scaling while fullscreen
3. Removed timeout/delay when exiting fullscreen with unfullscreen method
2. Base / Render (Scene extends this class)
1. Added deltaTime argument to update and render methods
3. Input
1. Added onKeyDown and onKeyUp methods
2. Added onMouseMove method
4. Sound
1. Added mute and unmute methods
2. Added isMuted getter
3. Changed typedefs in options to Helper.defaultValue for better understanding of the default values
4. Fixed volume option set to 0 but not muted bug
5. Made path and element properties public
5. DuckStorage
1. Now JSON parses data correctly when load type is "all"
6. Base
1. Added Amount class to run a function a certain amount of times
2. Made ran properties in Once class public
7. Camera
1. Changed how following a gameobjects aligns the viewport
8. Misc
1. Moved randomInt and randomFloat utils to core/math folder

## 1.0.1

1. Game
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ The Duck Namespace has types such as gameobject, every class config, all classes
├── SECURITY.md
├── src
│ ├── base
│ │ ├── amount.ts
│ │ ├── once.ts
│ │ └── render.ts
│ ├── core
Expand Down Expand Up @@ -148,7 +149,9 @@ The Duck Namespace has types such as gameobject, every class config, all classes
│ │ ├── map
│ │ │ └── tilemap.ts
│ │ ├── math
│ │ │ └── clamp.ts
│ │ │ ├── clamp.ts
│ │ │ ├── randomFloat.ts
│ │ │ └── randomInt.ts
│ │ ├── particles
│ │ │ ├── particleEmitter.ts
│ │ │ └── particle.ts
Expand Down Expand Up @@ -185,8 +188,6 @@ The Duck Namespace has types such as gameobject, every class config, all classes
│ │ └── version.ts
│ ├── index.ts
│ └── utils
│ ├── randomFloat.ts
│ ├── randomInt.ts
│ └── validURL.ts
├── tsconfig.json
└── webpack.config.js
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions docs/classes/core_camera_camera.default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>default | DuckEngine - v1.0.1</title>
<title>default | DuckEngine - v1.1.0</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -25,7 +25,7 @@
</ul>
<ul class="results-priority" style="display:none">
</ul>
<a href="../index.html" class="title">DuckEngine - v1.0.1</a>
<a href="../index.html" class="title">DuckEngine - v1.1.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -317,7 +317,7 @@ <h3>defaultFOV</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:335</li>
<li>Defined in core/camera/camera.ts:328</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
Expand All @@ -334,7 +334,7 @@ <h3>default<wbr>Zoom</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:322</li>
<li>Defined in core/camera/camera.ts:315</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
Expand All @@ -354,7 +354,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> apply<wbr>Scale</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:116</li>
<li>Defined in core/camera/camera.ts:109</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -371,7 +371,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> apply<wbr>Translation</
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:120</li>
<li>Defined in core/camera/camera.ts:113</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand Down Expand Up @@ -405,7 +405,7 @@ <h3>end</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:112</li>
<li>Defined in core/camera/camera.ts:105</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -422,7 +422,7 @@ <h3>follow</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:204</li>
<li>Defined in core/camera/camera.ts:197</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -445,7 +445,7 @@ <h3>move<wbr>To</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:198</li>
<li>Defined in core/camera/camera.ts:191</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -471,7 +471,7 @@ <h3>resetFOV</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:264</li>
<li>Defined in core/camera/camera.ts:257</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -488,7 +488,7 @@ <h3>reset<wbr>Zoom</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:268</li>
<li>Defined in core/camera/camera.ts:261</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -505,7 +505,7 @@ <h3>screen<wbr>ToWorld</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:212</li>
<li>Defined in core/camera/camera.ts:205</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -534,7 +534,7 @@ <h3>scroll<wbr>ToZoom</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:304</li>
<li>Defined in core/camera/camera.ts:297</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -551,7 +551,7 @@ <h3>set<wbr>Bounds</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:272</li>
<li>Defined in core/camera/camera.ts:265</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -588,7 +588,7 @@ <h3>setFOV</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:224</li>
<li>Defined in core/camera/camera.ts:217</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -611,7 +611,7 @@ <h3>setFOVSmooth</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:228</li>
<li>Defined in core/camera/camera.ts:221</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -640,7 +640,7 @@ <h3>set<wbr>Zoom</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:157</li>
<li>Defined in core/camera/camera.ts:150</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -663,7 +663,7 @@ <h3>set<wbr>Zoom<wbr>Smooth</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:162</li>
<li>Defined in core/camera/camera.ts:155</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -692,7 +692,7 @@ <h3>shake</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:276</li>
<li>Defined in core/camera/camera.ts:269</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -721,7 +721,7 @@ <h3>stop<wbr>Follow</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:208</li>
<li>Defined in core/camera/camera.ts:201</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -738,7 +738,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> update<wbr>Viewport</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:124</li>
<li>Defined in core/camera/camera.ts:117</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -755,7 +755,7 @@ <h3>world<wbr>ToScreen</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/camera/camera.ts:218</li>
<li>Defined in core/camera/camera.ts:211</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/core_cutscene_cutscene.default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>default | DuckEngine - v1.0.1</title>
<title>default | DuckEngine - v1.1.0</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -25,7 +25,7 @@
</ul>
<ul class="results-priority" style="display:none">
</ul>
<a href="../index.html" class="title">DuckEngine - v1.0.1</a>
<a href="../index.html" class="title">DuckEngine - v1.1.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down
52 changes: 47 additions & 5 deletions docs/classes/core_game.default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>default | DuckEngine - v1.0.1</title>
<title>default | DuckEngine - v1.1.0</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -25,7 +25,7 @@
</ul>
<ul class="results-priority" style="display:none">
</ul>
<a href="../index.html" class="title">DuckEngine - v1.0.1</a>
<a href="../index.html" class="title">DuckEngine - v1.1.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -121,6 +121,7 @@ <h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#clearframe" class="tsd-kind-icon">clear<wbr>Frame</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#fullscreen" class="tsd-kind-icon">fullscreen</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#lockpointer" class="tsd-kind-icon">lock<wbr>Pointer</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="core_game.default.html#loop" class="tsd-kind-icon">loop</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#resetscale" class="tsd-kind-icon">reset<wbr>Scale</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#scaletowindow" class="tsd-kind-icon">scale<wbr>ToWindow</a></li>
Expand All @@ -131,6 +132,7 @@ <h3>Methods</h3>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#stop" class="tsd-kind-icon">stop</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#switchscene" class="tsd-kind-icon">switch<wbr>Scene</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#unfullscreen" class="tsd-kind-icon">unfullscreen</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="core_game.default.html#unlockpointer" class="tsd-kind-icon">unlock<wbr>Pointer</a></li>
</ul>
</section>
</div>
Expand Down Expand Up @@ -378,6 +380,23 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="lockpointer" class="tsd-anchor"></a>
<h3>lock<wbr>Pointer</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">lock<wbr>Pointer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/game.ts:310</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="loop" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> loop</h3>
Expand Down Expand Up @@ -411,7 +430,7 @@ <h3>reset<wbr>Scale</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/game.ts:310</li>
<li>Defined in core/game.ts:322</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -428,7 +447,7 @@ <h3>scale<wbr>ToWindow</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/game.ts:317</li>
<li>Defined in core/game.ts:347</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand Down Expand Up @@ -574,7 +593,24 @@ <h3>unfullscreen</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/game.ts:294</li>
<li>Defined in core/game.ts:297</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="unlockpointer" class="tsd-anchor"></a>
<h3>unlock<wbr>Pointer</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">unlock<wbr>Pointer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in core/game.ts:316</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand Down Expand Up @@ -640,6 +676,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="core_game.default.html#fullscreen" class="tsd-kind-icon">fullscreen</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="core_game.default.html#lockpointer" class="tsd-kind-icon">lock<wbr>Pointer</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="core_game.default.html#loop" class="tsd-kind-icon">loop</a>
</li>
Expand Down Expand Up @@ -670,6 +709,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</spa
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="core_game.default.html#unfullscreen" class="tsd-kind-icon">unfullscreen</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="core_game.default.html#unlockpointer" class="tsd-kind-icon">unlock<wbr>Pointer</a>
</li>
</ul>
</li>
</ul>
Expand Down
Loading

0 comments on commit 562047d

Please sign in to comment.