This is a basic implementation of the NES game Bomberman, but it's missing a few things intentionally and they're left as further exploration for the reader.
- Player death
- The player should die when it is hit by an explosion from a bomb
convert("one hundred five"); // "105" | |
convert("six hundred and fifty three"); // "653" | |
convert("zero zero one two three"); // "123" | |
convert("twelve o three"); // "1203" | |
convert("thirteen zero nine"); // "1309" | |
convert("fifteen sixteen"); // "1516" | |
convert("fourteen ninety two"); // "1492" | |
convert("nineteen ten"); // "1910" | |
convert("twelve hundred"); // "1200" | |
convert("twenty three hundred"); // "2300" |
<script language='javascript' runat='server'> | |
Platform.Load('Core', '1'); | |
// Arrays of allowed values for both Sender Address and Sender Origin | |
// Sender Address is the from address when you send an email, make sure your expected from address is included in the list | |
// Sender Origin represents the domain originating the request | |
// The Marketing Cloud origin is in place to allow testing in Subscriber Preview, update that value to match your stack | |
var isAllowed = { | |
senderAddress:[ | |
'amp@gmail.dev' |
<!-- {{={< >}=}} --> | |
<!doctype html> | |
<html ⚡4email data-css-strict> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script> | |
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script> | |
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script> | |
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> |
This is a basic implementation of the Atari Breakout game, but it's missing a few things intentionally and they're left as further exploration for the reader.
WEBGL // p5 WEBGL rendering mode. | |
createCanvas(w, h, renderer) // Creates a 3D canvas (if renderer is WEBGL). | |
// Primitives | |
plane(width, height) // Creates a plane in 3D space. Equivalent to rect() in the default rendering mode. | |
plane(width, height, detailX, detailY) // Creates a plane in 3D space with the number of triangle subdivisions specified. | |
box(width) // Creates a cube in 3D space. | |
box(width, height, depth) // Creates a cuboid in 3D space. | |
box(width, height, depth, detailX, detailY) // Creates a cuboid in 3D space with triangle subdivisions. | |
sphere(radius) // Creates a sphere in 3D space. |
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);