HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div id="world"></div>
html,
body {
background: black;
}
body {
height: 100vh;
display: flex;
justify-content: center;
}
#world {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
cursor: move;
opacity: 0;
animation: fadein 1s ease-out 3s forwards;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/*
* The purpose is to easily create building structures. The building style was inspired by the Monument Valley game https://www.monumentvalleygame.com/mv2
*
* Floorplan coordinates and building settings are at the very bottom of the page.
*/
import { OrbitControls } from 'https://unpkg.com/three@0.112/examples/jsm/controls/OrbitControls.js'
// import LegacyJSONLoader from 'https://assets.codepen.io/1290466/LegacyJSONLoader.js'
let scene,
renderer,
controls,
camera,
floorplan,
settings,
light,
grid,
monumentSquareSize,
monumentHeight,
container
const width = window.innerWidth
const height = window.innerHeight
const aspectRatio = width/height
const fieldOfView = 25
const nearView = 1
const farView = 10000
const assetPath = 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/1290466'
const blockSize = 20 // Value need to remain 20 in order to match assets ratio exported from Blender
window.addEventListener('load', () => {
settings = data.settings
document.body.style.background = `rgb(${settings.background})`
floorplan = data.floorplan
init()
animate()
})
function init() {
grid = floorplan[0][0].length
monumentSquareSize = blockSize * grid
monumentHeight = blockSize * floorplan.length
// Scene Setting
renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true })
renderer.setPixelRatio(window.devicePixelRatio)
renderer.setSize(width, height)
renderer.shadowMap.enabled = true
renderer.shadowMap.type = THREE.PCFSoftShadowMap
// Create the scene.
scene = new THREE.Scene()
// Camera Setting
if (settings.perspectiveCamera) {
// Perspective Camera
camera = new THREE.PerspectiveCamera(fieldOfView, aspectRatio, nearView, farView)
camera.position.set(800, -800, 800)
camera.up = new THREE.Vector3(0, 0, 1)
} else {
// Orthographic Camera
camera = new THREE.OrthographicCamera(width / - 2, width / 2, height / 2, height / - 2, -1000, 5000)
camera.position.set(20, -20, 20)
camera.up = new THREE.Vector3(0, 0, 1)
}
// Point Light Setting
light = new THREE.PointLight(`rgb(${settings.globalLight})`, 12, 1000)
light.position.set(600, -200, 250 + monumentHeight)
light.castShadow = true
scene.add(light, new THREE.AmbientLight(`rgb(${settings.ambientLight})`))
// Floor Setting
// const floorGeometry = new THREE.CircleGeometry(600, 600)
// floorGeometry.translate(0, 0, -200)
// const floorMaterial = new THREE.MeshLambertMaterial({
// color: `rgb(${settings.floor})`
// })
// const floor = new THREE.Mesh(floorGeometry, floorMaterial)
// floor.receiveShadow = true;
// scene.add(floor)
// Mouse Interaction Setting
// controls = new THREE.OrbitControls(camera, renderer.domElement)
controls = new OrbitControls(camera, renderer.domElement)
controls.minPolarAngle = Math.PI/2 - 0.5
controls.maxPolarAngle = Math.PI/2 - 0.5
controls.autoRotate = settings.autoRotate
controls.autoRotateSpeed = settings.rotationSpeed
controls.zoomSpeed = 0.3
controls.minZoom = 0.5
controls.maxZoom = 2.5
controls.enableDamping = true
controls.dampingFactor = 0.15
// Add the Renderer to the DOM, in the world div.
container = document.getElementById('world')
container.appendChild(renderer.domElement)
floorplanRenderer()
//RESPONSIVE LISTENER
window.addEventListener('resize', onWindowResize, false)
}
function floorplanRenderer() {
 let zPos = -monumentSquareSize - settings.offsetY, yPos = 0, xPos = 0
for(let z = 0; z < floorplan.length; z++) {
let reversedZ = floorplan.length - (z + 1)
  zPos += blockSize
  xPos = monumentSquareSize/2
for(let x = 0; x < floorplan[reversedZ].length; x++) {
let reversedX = floorplan[reversedZ].length - (x + 1)
   xPos -= blockSize
   yPos = monumentSquareSize/2
for(let y = 0; y < floorplan[reversedZ][reversedX].length; y++) {
let reversedY = floorplan[reversedZ][reversedX].length - (y + 1)
let cell = floorplan[reversedZ][reversedX][reversedY]
let shape = null
    yPos -= blockSize
switch (cell) {
case 1:
shape = new Cube(xPos, yPos, zPos, `rgb(${settings.cube})`,
blockSize
)
break
case 2:
shape = new Shape(xPos, yPos, zPos, `rgb(${settings.tale})`, `${assetPath}/tail1.json`,
1
)
break
case 3:
shape = new Shape(xPos, yPos, zPos, `rgb(${settings.stairs})`, `${assetPath}/stairs1.json`,
1,
7.855
)
break
case 4:
shape = new Light(xPos, yPos, zPos, `rgb(${settings.pointLight})`,
settings.pointLightScale
)
break
case 5:
shape = new Shape(xPos, yPos, zPos, `rgb(${settings.pillar})`,
`${assetPath}/pillar1.json`,
1
)
break
}
if (shape !== null) shape.render()
}
}
}
}
function onWindowResize() {
camera.left = window.innerWidth / - 2
camera.right = window.innerWidth / 2
camera.top = window.innerHeight / 2
camera.bottom = window.innerHeight / - 2
camera.updateProjectionMatrix()
renderer.setSize(window.innerWidth, window.innerHeight)
}
function renderView() {
// let time = Date.now() * 0.0005
// firefly.position.set(0, 0, Math.sin(time*3)*10)
renderer.render(scene, camera)
}
function animate() {
requestAnimationFrame(animate)
controls.update()
renderView()
}
class Cube {
constructor(x, y, z, color, size, rotate = 0) {
this.x = x
this.y = y
this.z = z
this.color = color
this.size = size
this.rotate = rotate
}
render() {
let boxGeometry = new THREE.BoxGeometry(this.size, this.size, this.size)
let lambertMaterial = new THREE.MeshLambertMaterial({
color: this.color,
// overdraw: 1,
})
let mesh = new THREE.Mesh(boxGeometry, lambertMaterial)
mesh.position.x = this.x
mesh.position.y = this.y
mesh.position.z = this.z
mesh.rotation.y = this.rotate
scene.add(mesh)
}
}
class Shape {
constructor(x, y, z, color, source, scale = 1, rotate = 0) {
this.x = x
this.y = y
this.z = z
this.color = color
this.source = source
this.scale = scale
this.rotate = rotate
}
render() {
let loader = new THREE.LegacyJSONLoader()
loader.load(this.source, geometry => {
let mesh = new THREE.Mesh(geometry, new THREE.MeshLambertMaterial({
color: this.color,
// overdraw: 1
}))
mesh.position.x = this.x
mesh.position.y = this.y
mesh.position.z = this.z
mesh.rotation.x = Math.PI / 2
mesh.rotation.y = this.rotate
mesh.scale.set(this.scale, this.scale, this.scale)
scene.add(mesh)
}
)}
}
class Light {
constructor(x, y, z, color, size = 0) {
this.x = x
this.y = y
this.z = z
this.color = color
this.size = size
}
render() {
let pointLight = new THREE.PointLight(this.color, 1.1, 100)
if (this.size !== 0) {
let sphereGeometry = new THREE.SphereGeometry(this.size, 50, 50)
let basicMaterial = new THREE.MeshBasicMaterial({color: this.color})
let lightBulbe = new THREE.Mesh(sphereGeometry, basicMaterial)
pointLight.add(lightBulbe)
}
let time = Date.now() * 0.0005
// firefly.position.set(0, 0, Math.sin(time*3)*10)
pointLight.position.set(this.x, this.y, this.z + Math.sin(time*3)*10)
pointLight.castShadow = true
scene.add(pointLight)
}
}
/*
* block = 1
* tile = 2
* staircase = 3
* firefly = 4
* 4 pillar = 5
*/
let data = {
"settings": {
"perspectiveCamera": false,
"autoRotate": true,
"rotationSpeed": 0.25,
"offsetY": -30,
"background": "0, 0, 16",
"globalLight": "255, 255, 255",
"ambientLight": "0, 0, 32",
"cube": "107, 126, 127",
"tale": "81, 91, 95",
"stairs": "107, 126, 127",
"pointLight": "255, 255, 255",
"pointLightScale": 2,
"pillar": "107, 126, 127"
},
"floorplan": [
[
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[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