Skip to content

Commit

Permalink
deploy for a14030a
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 14, 2024
1 parent 56e154b commit 7edb100
Show file tree
Hide file tree
Showing 151 changed files with 151 additions and 156 deletions.
2 changes: 1 addition & 1 deletion 404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/h3d/col/Polygon.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/h3d/col/TriPlane.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/h3d/scene/Skin.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion documentation/2d-camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" id="page"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width"/><title>2D Camera - Heaps.io Game Engine</title><base href="./.."/>
<link href="css/styles.min.css" rel="stylesheet" type="text/css"/><link rel="canonical" href="https://heaps.io/documentation/2d-camera.html"/><link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed:300" rel="stylesheet"/><script src="js/jquery-3.3.1.min.js" type="text/javascript"></script><script src="js/JsTools.js" type="text/javascript"></script><meta name="description" content="In 2D the camera is implemented as h2d.Camera. This object is by default part of any h2d.Scene and can be accessed via camera as well as cameras which saves the whole array of cameras available to the current scene."/>
<meta name="twitter:creator" content="@ncanasse"/>
<meta property="og:title" content="2D Camera - Heaps.io Game Engine"/><meta property="og:description" content="In 2D the camera is implemented as h2d.Camera. This object is by default part of any h2d.Scene and can be accessed via camera as well as cameras which saves the whole array of cameras available to the current scene."/><meta property="og:type" content="website"/><meta property="og:url" content="https://heaps.io/documentation/2d-camera.html"/><meta property="og:image" content="https://heaps.io//img/share.png"/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"/></head><body><a href="https://github.com/HeapsIO/" class="fork-button"><img src="img/fork-on-github.png" alt="Fork Heaps on GitHub"/></a><main><header class="header-page"><a class="mobileMenu" href="#"><img src="img/menu.png" alt="Menu"/> </a><nav class="top-nav"><a href="index.html" class="button ">Home</a><a href="about.html" class="button ">About</a><a href="samples/" class="button ">Samples</a><a href="documentation/" class="button disabled">Documentation</a><a href="api/" class="button">API</a><a href="https://community.heaps.io/" class="button" target="_blank">Community</a></nav><div class="logo"><a href="./"><img src="img/logo.svg"/></a></div></header> <div class="row container"><nav class="col-4 sidebar"><ul class="unstyled"><li><a href="documentation/home.html">Home</a></li><li><a href="documentation/getting-started.html">Getting Started</a><ul><li><a href="documentation/installation.html">Installation</a></li><li><a href="documentation/hello-world.html">Hello World</a></li><li><a href="documentation/hello-hashlink.html">Hello Hashlink</a></li><li><a href="documentation/first-outlook.html">First outlook</a></li></ul></li><li><a href="documentation/h2d.html">H2D</a><ul><li><a href="documentation/h2d-introduction.html">Introduction</a></li><li><a href="documentation/objects.html">Object</a><ul><li><a href="documentation/object-trees.html">Object trees</a></li></ul></li><li><a href="documentation/scenes.html">Scenes</a><ul><li><a href="documentation/layers.html">Layers</a></li><li class="active"><a href="documentation/2d-camera.html" class="current">2D Camera</a></li></ul></li><li><a href="documentation/h2d-events-and-interactivity.html">Events and interaction</a></li><li><a href="documentation/drawable.html">Drawable</a><ul><li><a href="documentation/text.html">Displaying text</a></li><li><a href="documentation/graphics.html">Drawing Graphics</a></li><li><a href="documentation/animation.html">Animation</a></li><li><a href="documentation/h2d-interactive.html">H2D Interactive</a></li></ul></li><li><a href="documentation/graphical-surfaces.html">Graphical surfaces</a></li><li><a href="documentation/drawing-tiles.html">Drawing Tiles</a></li><li><a href="documentation/optimizing-bitmap-usage.html">Optimizing bitmaps</a></li><li><a href="documentation/filters.html">Filters</a></li><li><a href="documentation/h2d-shaders.html">Shaders</a></li><li><a href="documentation/flow.html">Flow</a></li><li><a href="documentation/simple-sprites.html">Creating simple sprites</a></li></ul></li><li><a href="documentation/h3d.html">H3D</a><ul><li><a href="documentation/h3d-events-and-interactivity.html">Events and interaction</a></li><li><a href="documentation/fbx-models.html">FBX Models</a></li><li><a href="documentation/gpu-particles.html">GPU Particles</a></li><li><a href="documentation/lights.html">Lights</a></li><li><a href="documentation/materials.html">Material Basics</a></li><li><a href="documentation/pbr-materials.html">PBR Materials</a></li><li><a href="documentation/shadows.html">Shadows</a></li><li><a href="documentation/world-batching.html">World Batching</a></li><li><a href="documentation/render-target.html">Render Target</a></li></ul></li><li><a href="documentation/hxd.html">HXD</a><ul><li><a href="documentation/resource-management.html">Resource management</a></li><li><a href="documentation/resource-baking.html">Resource Baking</a></li><li><a href="documentation/sound.html">Sound</a></li></ul></li><li><a href="documentation/flags.html">Flags</a></li><li><a href="documentation/shaders.html">Shaders</a><ul><li><a href="documentation/hxsl.html">Hxsl</a></li></ul></li><li><a href="documentation/target-platforms.html">Target platforms</a><ul><li><a href="documentation/hashlink.html">HashLink</a></li><li><a href="documentation/html5.html">HTML5</a></li></ul></li><li><a href="documentation/tools.html">Tools</a><ul><li><a href="documentation/castle-db.html">Castle DB</a></li><li><a href="documentation/domkit.html">Using Heaps Components</a></li><li><a href="documentation/hide.html">Hide</a></li><li><a href="documentation/ldtk.html">LDtk</a></li><li><a href="documentation/external-libraries.html">External libraries</a><ul><li><a href="documentation/demo-of-slide.html">Demo of Slide</a></li><li><a href="documentation/haxeui.html">HaxeUI</a></li></ul></li></ul></li><li><a href="documentation/jam-games.html">Jam games</a><ul><li><a href="documentation/jammers.html">Jammers</a></li></ul></li><li><a href="documentation/sample-games-for-learning.html">Sample games for learning</a><ul><li><a href="documentation/copy-&amp;-paste-game-templates.html">Copy &amp; paste game templates</a><ul><li><a href="documentation/breakout.html">Breakout</a></li><li><a href="documentation/platform-game.html">Platform game</a></li><li><a href="documentation/rogue.html">Rogue</a></li></ul></li><li><a href="documentation/sample-games-with-resources.html">Sample games with resources</a></li></ul></li><li><a href="documentation/development.html">Development</a></li></ul></nav><article class="col-8 documentation"><div class="content"><h1><span>2D Camera</span></h1><p>In 2D the camera is implemented as <a href="https://heaps.io/api/h2d/Camera.html"><code>h2d.Camera</code></a>. This object is by default part of any <code>h2d.Scene</code> and can be accessed via <code>camera</code> as well as <code>cameras</code> which saves the whole array of cameras available to the current scene.</p>
<meta property="og:title" content="2D Camera - Heaps.io Game Engine"/><meta property="og:description" content="In 2D the camera is implemented as h2d.Camera. This object is by default part of any h2d.Scene and can be accessed via camera as well as cameras which saves the whole array of cameras available to the current scene."/><meta property="og:type" content="website"/><meta property="og:url" content="https://heaps.io/documentation/2d-camera.html"/><meta property="og:image" content="https://heaps.io//img/share.png"/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"/></head><body><a href="https://github.com/HeapsIO/" class="fork-button"><img src="img/fork-on-github.png" alt="Fork Heaps on GitHub"/></a><main><header class="header-page"><a class="mobileMenu" href="#"><img src="img/menu.png" alt="Menu"/> </a><nav class="top-nav"><a href="index.html" class="button ">Home</a><a href="about.html" class="button ">About</a><a href="samples/" class="button ">Samples</a><a href="documentation/" class="button disabled">Documentation</a><a href="api/" class="button">API</a><a href="https://community.heaps.io/" class="button" target="_blank">Community</a></nav><div class="logo"><a href="./"><img src="img/logo.svg"/></a></div></header> <div class="row container"><nav class="col-4 sidebar"><ul class="unstyled"><li><a href="documentation/home.html">Home</a></li><li><a href="documentation/getting-started.html">Getting Started</a><ul><li><a href="documentation/installation.html">Installation</a></li><li><a href="documentation/hello-world.html">Hello World</a></li><li><a href="documentation/hello-hashlink.html">Hello Hashlink</a></li><li><a href="documentation/first-outlook.html">First outlook</a></li></ul></li><li><a href="documentation/h2d.html">H2D</a><ul><li><a href="documentation/h2d-introduction.html">Introduction</a></li><li><a href="documentation/objects.html">Object</a><ul><li><a href="documentation/object-trees.html">Object trees</a></li></ul></li><li><a href="documentation/scenes.html">Scenes</a><ul><li><a href="documentation/layers.html">Layers</a></li><li class="active"><a href="documentation/2d-camera.html" class="current">2D Camera</a></li></ul></li><li><a href="documentation/h2d-events-and-interactivity.html">Events and interaction</a></li><li><a href="documentation/drawable.html">Drawable</a><ul><li><a href="documentation/text.html">Displaying text</a></li><li><a href="documentation/graphics.html">Drawing Graphics</a></li><li><a href="documentation/animation.html">Animation</a></li><li><a href="documentation/h2d-interactive.html">H2D Interactive</a></li></ul></li><li><a href="documentation/graphical-surfaces.html">Graphical surfaces</a></li><li><a href="documentation/drawing-tiles.html">Drawing Tiles</a></li><li><a href="documentation/optimizing-bitmap-usage.html">Optimizing bitmaps</a></li><li><a href="documentation/filters.html">Filters</a></li><li><a href="documentation/h2d-shaders.html">Shaders</a></li><li><a href="documentation/flow.html">Flow</a></li><li><a href="documentation/simple-sprites.html">Creating simple sprites</a></li></ul></li><li><a href="documentation/h3d.html">H3D</a><ul><li><a href="documentation/h3d-events-and-interactivity.html">Events and interaction</a></li><li><a href="documentation/fbx-models.html">FBX Models</a></li><li><a href="documentation/gpu-particles.html">GPU Particles</a></li><li><a href="documentation/lights.html">Lights</a></li><li><a href="documentation/materials.html">Material Basics</a></li><li><a href="documentation/pbr-materials.html">PBR Materials</a></li><li><a href="documentation/shadows.html">Shadows</a></li><li><a href="documentation/world-batching.html">World Batching</a></li><li><a href="documentation/render-target.html">Render Target</a></li></ul></li><li><a href="documentation/hxd.html">HXD</a><ul><li><a href="documentation/resource-management.html">Resource management</a></li><li><a href="documentation/resource-baking.html">Resource Baking</a></li><li><a href="documentation/sound.html">Sound</a></li></ul></li><li><a href="documentation/flags.html">Flags</a></li><li><a href="documentation/shaders.html">Shaders</a><ul><li><a href="documentation/hxsl.html">Hxsl</a></li></ul></li><li><a href="documentation/target-platforms.html">Target platforms</a><ul><li><a href="documentation/hashlink.html">HashLink</a></li><li><a href="documentation/html5.html">HTML5</a></li></ul></li><li><a href="documentation/tools.html">Tools</a><ul><li><a href="documentation/castle-db.html">Castle DB</a></li><li><a href="documentation/domkit.html">Using Heaps Components</a></li><li><a href="documentation/hide.html">Hide</a></li><li><a href="documentation/ldtk.html">LDtk</a></li><li><a href="documentation/external-libraries.html">External libraries</a><ul><li><a href="documentation/demo-of-slide.html">Demo of Slide</a></li><li><a href="documentation/haxeui.html">HaxeUI</a></li></ul></li></ul></li><li><a href="documentation/jam-games.html">Jam games</a></li><li><a href="documentation/sample-games-for-learning.html">Sample games for learning</a><ul><li><a href="documentation/copy-&amp;-paste-game-templates.html">Copy &amp; paste game templates</a><ul><li><a href="documentation/breakout.html">Breakout</a></li><li><a href="documentation/platform-game.html">Platform game</a></li><li><a href="documentation/rogue.html">Rogue</a></li></ul></li><li><a href="documentation/sample-games-with-resources.html">Sample games with resources</a></li></ul></li><li><a href="documentation/development.html">Development</a></li></ul></nav><article class="col-8 documentation"><div class="content"><h1><span>2D Camera</span></h1><p>In 2D the camera is implemented as <a href="https://heaps.io/api/h2d/Camera.html"><code>h2d.Camera</code></a>. This object is by default part of any <code>h2d.Scene</code> and can be accessed via <code>camera</code> as well as <code>cameras</code> which saves the whole array of cameras available to the current scene.</p>
<h2>Sample</h2>
<p>A sample that explains the <code>h2d.Camera</code> functionality in detail can be found in the github repository:</p>
<p><a href="https://github.com/HeapsIO/heaps/blob/master/samples/Camera2D.hx">https://github.com/HeapsIO/heaps/blob/master/samples/Camera2D.hx</a></p>
Expand Down
Loading

0 comments on commit 7edb100

Please sign in to comment.