Skip to content

Commit 775c493

Browse files
committed
Adding rubix cube WIP
1 parent a1940c1 commit 775c493

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

_layouts/post_embed.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<br>
7+
<header class="post-header">
8+
<h1 class="post-title">{{ page.title }}</h1>
9+
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
10+
</header>
11+
12+
<center>
13+
<script src="../../../../../P5/p5.min.js"></script>
14+
<script src="../../../../../P5/priority-queue.js"></script>
15+
<script src="../../../../../P5/p5.dom.min.js"></script>
16+
<!-- <script src="../../../../../P5/p5.sound.min.js"></script>
17+
-->
18+
<div class="page-drawing" id="iframe">
19+
{{ page.iframe }}
20+
</div>
21+
</center>
22+
<br><br>
23+
24+
<article class="post-content">
25+
{{ content }}
26+
</article>
27+
28+
</div>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post_embed
3+
title: "Rubix Cube - WIP"
4+
date: 2019-02-18 22:30:00
5+
categories: jekyll update
6+
iframe: <iframe src="https://editor.p5js.org/SourKream/embed/SkkBljWom" style="border:none;" width=700 height=520></iframe>
7+
---
8+
9+
You can use these keys to interact with the game,
10+
11+
- `E` : Enter edit mode.
12+
- `A` `S` `D` : Rotate planes while in edit mode.
13+
- `UP_ARROW` `DOWN_ARROW` : Shift selected edit planes.
14+
15+
You can also use the mouse to rotate the cube around. Scroll to zoom.
16+

0 commit comments

Comments
 (0)