One solution to the Drag and Drop Succulent Garden - Project Outline posted for the Creative Coding Club.
A Pen by Nat Cooper on CodePen.
One solution to the Drag and Drop Succulent Garden - Project Outline posted for the Creative Coding Club.
A Pen by Nat Cooper on CodePen.
How to play: Drag cub to star, Drag grid to rotate.
Also available at cubnpup.com
This is a proof-of-concept for a game. Basic art, no sound, no options, no polish. But the core game-play is there. It's more of a mobile game, focused on dragging — inspired by Threes. I'm looking to see if its any fun. Let me know!
I've always wanted to make a video game. This could be the one. My previous attempts never got past isolated demos because they were aiming for bigger ideas. They grew complex and unwieldy. So this game is designed to be simple. A game that I can actually make.
doctype html | |
canvas#canvas |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Untitled benchmark #jsbench #jsperf</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
Math.rand = function(a , b) { | |
if (b === undefined) | |
[a, b] = [0, a]; | |
if (a > b) | |
[a, b] = [b, a]; | |
return Math.floor(a + Math.random() * (Math.abs(b - a) + 1)); | |
}; | |
Array.prototype.rand = function() { | |
return this[Math.floor(Math.random() * this.length)]; |