Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Jan 22, 2020
0 parents commit 01c393d
Show file tree
Hide file tree
Showing 58 changed files with 7,849 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 160
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Yannick Deubel (https://github.com/yandeu)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Empty file added README.md
Empty file.
Binary file added assets/fbx/BodyJabCross.fbx
Binary file not shown.
Binary file added assets/fbx/HipHopDancing.fbx
Binary file not shown.
Binary file added assets/fbx/Idle.fbx
Binary file not shown.
Binary file added assets/fbx/Jumping.fbx
Binary file not shown.
Binary file added assets/fbx/LookingAround.fbx
Binary file not shown.
Binary file added assets/fbx/Running.fbx
Binary file not shown.
Binary file added assets/fbx/Walking.fbx
Binary file not shown.
Binary file added assets/glb/box_man.glb
Binary file not shown.
Binary file added assets/heightmap/heightmap-island.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/heightmap/heightmap-simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/grass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/img/grass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Textures from:
http://opengameart.org/
http://opengameart.org/content/dark-grass

Licensed under a Creative Commons Attribution 3.0 Unported License:
http://creativecommons.org/licenses/by/3.0/

Copied from:
https://github.com/mrdoob/three.js/tree/master/examples/textures/terrain
62 changes: 62 additions & 0 deletions assets/svg/bridge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions css/examples.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
* {
margin: 0;
padding: 0;
font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica, Arial,
sans-serif;
}

body {
color: #1b1b1b;
overflow: hidden;
}

div#info-text {
position: relative;
justify-content: center;
font-size: 18px;
height: 0;
top: 36px;
z-index: 1;
margin: 0px 48px;
text-align: center;
}

div#link-to-github {
position: absolute;
background: white;
bottom: 36px;
right: 36px;
width: 60px;
height: 60px;
border-radius: 50%;
cursor: pointer;

-webkit-box-shadow: 5px 5px 5px 0px rgb(0, 0, 0, 0.1);
-moz-box-shadow: 5px 5px 5px 0px rgb(0, 0, 0, 0.1);
box-shadow: 5px 5px 5px 0px rgb(0, 0, 0, 0.1);
}

div#link-to-github div {
color: #464646;
font-size: 24px;
width: 60px;
height: 60px;
position: relative;
top: 14px;
left: 10px;
}
61 changes: 61 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
* {
margin: 0;
padding: 0;
font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica, Arial,
sans-serif;
color: #363636;
}

section,
footer {
padding: 2em 3em;
}

header {
padding: 0em 1em;
-webkit-box-shadow: 0px 10px 10px 0px rgba(235, 235, 235, 1);
-moz-box-shadow: 0px 10px 10px 0px rgba(235, 235, 235, 1);
box-shadow: 0px 10px 10px 0px rgba(235, 235, 235, 1);
}

section {
min-height: calc(100vh - 280px);
}

footer {
background-color: #f4f4f4;
min-height: 5em;
text-align: center;
}

#logo img {
max-width: 250px;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
margin-bottom: 1em;
}

a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.content a:before {
content: '\1F517';
}

ul {
list-style-type: none;
}

li {
line-height: 2.5;
}
128 changes: 128 additions & 0 deletions examples.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>enable3d • 3D extension for Phaser 3</title>
<meta name="description" content="3D game framework on top of Three.js and Ammo.js (bullet3) which integrates perfectly with Phaser 3." />
<link rel="stylesheet" href="/css/style.css" />
</head>

<body>
<header>
<a href="/">
<div id="logo"><img src="/img/enable3d-logo.png" /></div>
</a>
</header>
<section class="content">
<h2>Examples</h2>
<ul>
<li>
<a href="./examples/simple-setup.html">Simple Setup</a>
</li>
<li>
<a href="./examples/custom-setup.html">Custom Setup</a>
</li>
<li>
<a href="./examples/collision-detection.html">Collision Detection</a>
</li>
<li>
<a href="./examples/load-and-use-textures.html">Load and Use Textures</a>
</li>
<li>
<a href="./examples/fbx-loader-and-animations.html">FBX Loader and Animations</a>
</li>
<li>
<a href="./examples/shape-showcase.html">Shape Showcase</a>
</li>
<li>
<a href="./examples/material-showcase.html">Material Showcase</a>
</li>
<li>
<a href="./examples/enemy-patrols-on-platform.html">Enemy Patrols on Platform</a>
</li>
<li>
<a href="./examples/constructive-solid-geometry.html">Constructive Solid Geometry (CSG)</a>
</li>
<li>
<a href="./examples/constructive-solid-geometry-physics.html">Constructive Solid Geometry (CSG) with Physics</a>
</li>
<li>
<a href="./examples/constructive-solid-geometry-physics-and-breakable.html">Constructive Solid Geometry (CSG) with Physics & Breakable</a>
</li>
<li>
<a href="./examples/debug-bodies.html">Debug Bodies</a>
</li>
<li>
<a href="./examples/dash-and-blast-prototype.html">Dash and Blast Prototype</a>
</li>
<li>
<a href="./examples/kinematic-body-orbiting-around-sun.html">Kinematic Body Orbiting around Sun</a>
</li>
<li>
<a href="./examples/create-3d-geometry-from-2d-path.html">Create 3D Geometry from 2D Path</a>
</li>
<li>
<a href="./examples/create-3d-geometry-from-svg-file.html">Create 3D Geometry from SVG file</a>
</li>
<li>
<a href="./examples/create-3d-geometry-from-png-file.html">Create 3D Geometry from PNG file (heightmap)</a>
</li>
<li>
<a href="./examples/camera-lerping-and-player-controls.html">Camera Lerping and Player Controls</a>
</li>
<li>
<a href="./examples/3rd-person-camera.html">3rd Person Camera</a>
</li>
<li>
<a href="./examples/virtual-reality.html">Virtual Reality</a>
</li>
<li>
<a href="./examples/convex-objects-breaking.html">Convex Objects Breaking</a>
</li>
<li>
<a href="./examples/use-native-three-code.html">Use "native" three.js code</a>
</li>
<li>
<a href="./examples/work-with-objects-factory.html">Work with Objects Factory</a>
</li>
<li>
<a href="./examples/heightmap-with-color-scale.html">Heightmap with Color Scale</a>
</li>
<li>
<a href="./examples/water.html">Water</a>
</li>
</ul>
</section>
<footer>
<a href="https://github.com/yandeu/enable3d#readme">
github.com/yandeu/enable3d
</a>
<div style="margin-top:16px;">
<a
class="github-button"
href="https://github.com/yandeu"
data-color-scheme="no-preference: dark; light: dark; dark: dark;"
data-size="large"
data-show-count="true"
aria-label="Follow @yandeu on GitHub"
>
Follow @yandeu
</a>
<a
class="github-button"
href="https://github.com/yandeu/enable3d"
data-color-scheme="no-preference: dark; light: dark; dark: dark;"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star yandeu/enable3d on GitHub"
>
Star
</a>
</div>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</footer>
</body>
</html>
Loading

0 comments on commit 01c393d

Please sign in to comment.