using System;
var Tile=function(x, y) {
this.x=x:
this.y=y;
this.width=50;
};
var tiles = [];
var NUM_COLS = 5;
var NUM_ROWS = 4;
for (var i = 0; i < NUM_COLS; i++) {
for (var j = 0; j < NUM_ROWS; j++) {
var tileX = i * 24 + 5;
var tileY = j*24 + 10;
tiles.push(new Tile(tileX, tileY));
}
}
Tile.prototype.draw = function() {
fill(214, 247, 202);
strokeWeight (2);
rect(this.x, this.y, this.width, this.width, 5);
image(getImage("avatars/card back"),
this.x, this.y, this.width, this.width);
};
for (var i = 0; i<tiles.length; i++) {
tiles[i].draw();
}
var faces = [
getImage("avatars/club cow")
getImage("avatars/hearts")
getImage("avatars/diamond")
getImage("avatars/spade mug")
getImage("avatars/lemon curd")
getImage("avatars/strawberries")
getImage("avatars/henrietta hen")
getImage("avatars/whisper")
getImage("avatars/the fool")
getImage("avatars/the magician")
getImage("avatars/diamond horse")
];
var selected = [];
for (var i = 0; i < 10; i++) {
// Randomly pick one from the array of faces
var randomInd = floor(random(faces.length));
var face = faces[randomInd];
// Push 2 copies onto array
selected.push(face);
selected.push(face);
// Remove from faces array so we don't re-pick
faces.splice(randomInd, 1);
}
var shuffleArray = function(array) {
var counter = array.length;
// While there are elements in the array
while (counter > 0) {
// Pick a random index
var ind = Math.floor(Math.random() * counter);
// Decrease counter by 1
counter--;
// And swap the last element with it
var temp = array[counter];
array[counter] = array[ind];
array[ind] = temp;
}
};
shuffleArray(selected);
for (var i = 0; i < NUM_COLS; i++) {
for (var j = 0; j < NUM_ROWS; j++) {
var tileX = i * 24 + 5;
var tileY = j * 24 + 10;
var tileFace = selected.pop();
var tile = new Tile(tileX, tileY, tileFace);
tiles.push(tile);
}
}
Tile.prototype.draw = function() {
fill(214, 247, 202);
strokeWeight(2);
rect(this.x, this.y, this.width, this.width, 10);
if (this.isFaceUp) {
image(this.face, this.x, this.y,
this.width, this.width);
} else {
image(getImage("avatars/card back"),
this.x, this.y, this.width, this.width);
}
};
for (var i = 0; i < tiles.length; i++) {
tiles[i].isFaceUp = true;
tiles[i].draw();
}
draw = function() {
background(255, 255, 255);
for (var i = 0; i < tiles.length; i++) {
tiles[i].draw();
}
};
mouseClicked = function() {
// process click somehow
};
Tile.prototype.isUnderMouse = function(x, y) {
return x >= this.x && x <= this.x + this.width &&
y >= this.y && y <= this.y + this.width;
};
mouseClicked = function() {
for (var i = 0; i < tiles.length; i++) {
if (tiles[i].isUnderMouse(mouseX, mouseY)) {
tiles[i].isFaceUp = true;
}
}
};
var numFlipped = 0;
mouseClicked = function() {
for (var i = 0; i < tiles.length; i++) {
var tile = tiles[i];
if (tiles.isUnderMouse(mouseX, mouseY)) {
if (numFlipped < 2 && !tile.isFaceUp) {
tile.isFaceUp = true;
numFlipped++;
}
}
}
};
var numFlipped = 0;
var delayStartFC = null;
mouseClicked = function() {
for (var i = 0; i < tiles.length; i++) {
var tile = tiles[i];
if (tile.isUnderMouse(mouseX, mouseY)) {
if (numFlipped < 2 && !tile.isFaceUp) {
tile.isFaceUp = true;
numFlipped++;
if (numFlipped === 2) {
delayStartFC = frameCount;
}
loop();
}
}
}
};
draw = function() {
if (delayStartFC &&
(frameCount - delayStartFC) > 30) {
for (var i = 0; i < tiles.length; i++) {
tiles[i].isFaceUp = false;
}
numFlipped = 0;
delayStartFC = null;
noLoop();
}
background(255, 255, 255);
for (var i = 0; i < tiles.length; i++) {
tiles[i].draw();
}
};
if there are two tiles flipped over:
if first tile has same face as second tile:
keep the tiles face up
var flippedTiles = [];
var delayStartFC = null;
mouseClicked = function() {
for (var i = 0; i < tiles.length; i++) {
var tile = tiles[i];
if (tile.isUnderMouse(mouseX, mouseY)) {
if (flippedTiles.length < 2 && !tile.isFaceUp) {
tile.isFaceUp = true;
flippedTiles.push(tile);
if (flippedTiles.length === 2) {
delayStartFC = frameCount;
loop();
}
}
}
}
};
var face = possibleFaces[randomInd];
selected.push(face);
selected.push(face);
if (flippedTiles[0].face === flippedTiles[1].face) {
flippedTiles[0].isMatch = true;
flippedTiles[1].isMatch = true;
}
for (var i = 0; i < tiles.length; i++) {
var tile = tiles[i];
if (!tile.isMatch) {
tile.isFaceUp = false;
}
}
if (flippedTiles.length === 2) {
numTries++;
...
}
var numMatches = 0;
if (flippedTiles[0].face === flippedTiles[1].face) {
flippedTiles[0].isMatch = true;
flippedTiles[1].isMatch = true;
flippedTiles.length = 0;
numMatches++;
}
if (numMatches === tiles.length/2) {
fill(0, 0, 0);
text("You found them all in " + numTries + " tries",
20, 360);
}
<!DOCTYPE html>
<html>
<body>
<meta name="viewport" content="width=device-width, initial-scale=2.0">
<div style="background-color:lightskyblue;color:white;padding:2%;">
<h1>Welcome to the Portfolio of Kelsey Eaves</h1>
<p>Character Designs, Animations, and Storyboards</p>
<h2>Table of Contents</h2>
<ol>
<li><h2 id="#CD">Character Designs</h2></li>
<li><h2 id="#BS">Backgrounds and Settings</h2></li>
<li><h2 id="#A">Animations</h2></li>
<li><h2 id="#ATA">About The Artist</h2></li>
</ol>
<h2 id="#CD">Character Designs</h2>
<picture>
<img src="https://66.media.tumblr.com/6c5b2c9ff206031e53d9d4e72993a2ea/e5edf5b7ea3bf8aa-e1/s640x960/eba774d164d622b4c44a5d2de2a2c0ab0b231cd5.jpg" alt="Xiomara Model Sheet 2019 width="700" height="500">
<img src="https://justpeachyartistry.tumblr.com/image/189051069612">
<img src="https://66.media.tumblr.com/96096921121d80be45320dffe595847e/826396eb665696e1-26/s540x810/7598af9dd840917a3a5521569172a4a6d8b20c1f.jpg">
<img src="https://66.media.tumblr.com/22b5086dda0d84d8c1aa6d37d996f94e/d330fead73f81016-fb/s640x960/9ea5378b793ac54457678cc2b7da115c4b0da046.jpg">
<img src="https://66.media.tumblr.com/cfa6de7abdae1346cd485e73742a1752/5485d082ed6f26e0-e2/s640x960/66d87d9f5b4304a24ff1ebda025c765131a09e7e.jpg">
<img src="https://66.media.tumblr.com/a6f109e4345809171173f8ebc9978045/0145fb9108ceda9b-23/s640x960/725b9de5d85feac23e0820384dc8d7559f29db50.jpg">
<img src="https://66.media.tumblr.com/43f514cde833382378993bae6448baa4/tumblr_px40i2msio1vzfkiro1_1280.jpg">
<img src="https://66.media.tumblr.com/f0ec9e053d73b784d866aa66be8cfe2e/tumblr_py7yrmnQKC1vzfkiro1_1280.jpg">
<img src="https://scontent-atl3-1.xx.fbcdn.net/v/t1.0-0/p480x480/74795235_2461184630818761_17672755335921664_o.jpg?_nc_cat=100&_nc_oc=AQkESjLz86oz0kN3RkhJEg5diN2T341SZ5UWzcygvhJ41GOQCDcOhys-cSAuilQb_U4&_nc_ht=scontent-atl3-1.xx&oh=ccb787254ba3df6a500c72f5df3b4177&oe=5E6E212B">
<img src="https://66.media.tumblr.com/43465cb070c04889ba29d2b78ad24eb6/5ea02a0b8234d87c-b1/s540x810/a85b5d5b8ed5e613fb48c862795747e3f0afb47a.jpg">
<img src="https://66.media.tumblr.com/300319367ee803b24435b0d4cfeee4a7/5ea02a0b8234d87c-ae/s540x810/6061ca47fe7e28db44132e58c4f97abb49f4e4e3.jpg">
<img src="https://66.media.tumblr.com/0ac8d834b36e554a116fdb80065f365a/1d096720367c89b4-92/s1280x1920/f27c4fae58112ed75fcccb1dd4b47e1718e4c14a.jpg">
<img src="https://66.media.tumblr.com/138a91ca8e3ff4beecd1ca6ec0f7233d/tumblr_poikkuKdIG1vzfkiro1_1280.jpg">
<img src="https://scontent-atl3-1.xx.fbcdn.net/v/t1.0-0/p480x480/72547381_2458979134372644_274977721983959040_o.jpg?_nc_cat=107&_nc_oc=AQnjsDMlYRReUaEBgvAr0tpYr9WsoTDbK_LJZP6AsWX2rnpouV8Km6-8r7dniJxb3ds&_nc_ht=scontent-atl3-1.xx&oh=ce297a4dd4c566aea1da9e6436f53a17&oe=5EAD6175">
<img src="https://scontent-atl3-1.xx.fbcdn.net/v/t1.0-9/p960x960/69540036_2410501009220457_6259574268783230976_o.jpg?_nc_cat=106&_nc_oc=AQl6vBkc2lxL0LfGVdDjBkfnAvbozEzjq-OXR2slcQhi1y9H0q10EeJdsjLUIvFi2Js&_nc_ht=scontent-atl3-1.xx&oh=312f8a8ae30d63760bd2b835f7b9dd13&oe=5EAFBBBD">
</picture>
<marquee behavior="scroll" direction="left">The artist's work incorporates folklore, mythology and food into the storytelling.</marquee>
<h2 id="#BS">Backgrounds and Settings</h2>
<img src="https://66.media.tumblr.com/3f1b1e78e600ce8ca4ed60d46b9dd27b/tumblr_psk6nbzkXs1vzfkiro1_1280.jpg">
<img src="https://justpeachyartistry.tumblr.com/image/186935546717">
<img src="https://66.media.tumblr.com/7f38d02ce4f9dede7ea13b40b008f10a/tumblr_ppxheyteMp1uqrzjk_540.jpg">
<marquee behavior="scroll" direction="left">Fun Fact: Pieces of this background artwork were created for an art showcase in 2019!</marquee>
<h2 id="#A">Animations</h2>
<video><iframe width="420" height="315"
src="https://youtu.be/md0eoZ-OqYU">
</iframe></video>
<iframe width="1000" height="630"
src="https://www.youtube.com/watch?v=FgsjCwblPYw">
</iframe>
<iframe width="1000" height="630"
src="https://www.youtube.com/watch?v=RWMPuLPAlI8">
</iframe>
<iframe width="1000" height="630"
src="https://www.youtube.com/watch?v=4LodW_4HLFQ">
</iframe>
<h1 id="#ATA">About the Artist</h1>
<head>
<style>
table, th, td {
border: 2px solid black;
}
*{box-sizing:border-box;
}
.left {
background-color:008080;
padding:35px;
float:left;
Width:20%
.main {
background-color:00FFFF;
padding:35px;
float:left;
width:60%
.right {
background-color:008080;
padding:35px;
float:left;
width:20%
}
@media screen and (max-width:800px){
.left, .main, .right {
width:100%;
}
}
</style>
</head>
</div>
<div class="left">
<p>Words of Thanks</p>
</div>
<div class="main">
<p>Thank you so much for reading and reviewing my page. It was created with the blood,sweat and tears of an idealistic animator with large dreams who hopes to make them come true sooner rather than later</p>
</div>
<div class="right">
<p>Please wish me luck in my endeavors, and if you would like to show your support, please visit one of my linked pages. </p>
</div>
<table style="width:100%">
<tr>
<th>Full Name</th>
<th>Age</th>
<th>Hometown</th>
<th>Gender Identity</th>
<th>Ideal Career Position 1</th>
<th>Ideal Career Position 2</th>
<th>Ideal Career Position 3</th>
</tr>
<tr>
<td>Kelsey Alise Eaves</td>
<td>23</td>
<td>Charlotte, NC</td>
<td>Female</td>
<td>Character Animator</td>
<td>Storyboard Artist</td>
<td>Character Designer</td>
</tr>
</table>
<h2>List of Artistic/ Storytelling Influences</h2>
<ul style="list-style-type:square;">
<li>Warner Bros. Looney Tunes and Merry Melodies, Specifically Chuck Jones and Tex Avery's Directoral Styles </li>
<li>Naoko Takeuchi's Sailor Moon</li>
<li>Paul Dini's artwork</li>
<li>Ian Jones Quartey's Ok Ko! Let's Be Heroes</li>
<li>Rebecca Sugar's Steven Universe</li>
<li>Doc Hammer and Christopher Mcullough's The Venture Bros</li>
<li>The Works of Lauren Faust and Craig McCracken</li>
<li>Maxwell Atom's The Grim Adventures of Billy and Mandy</li>
</ul>
<h1>Artist's Statement</h1>
<style>
table, th,td {
border: 1px solid black;
border-collapse: collapse;
}
th {
text-align:left;
}
</style>
<th><p>When I was a young child, animated television productions
kept me entertained, comforted me in my lonliness
and gave me a glimpse of what art and ingenuity
can do to tell a story between 15 minutes to an hour.</th>
<td> Cartoons and animation
in general were looked down upon in my family and amongst my peers, who considered it
to be childish and demeaning. I choose now to see the medium as a gateway to an exciting
career path and an opportunity to make contacts and potential friends.
As you can probably tell, my artwork has a diverse number
of influences. My goal is to combine them into a working melting pot
that excites,entertains, and influences other artists and animators in the years
to come.</p></td>
<br>
</br>
<th><p>It has been my goal to create my own show for television broadcasting
ever since I was ten years old. The concept has definitely evolved in
the last thirteen years from a situational buddy comedy inspired by Living Single,
to an anthology of travels and stories led by strongly written female and male characters.
With the rise of web animation and the opportunities for creator led properties in this day and age,
I can honestly say that I feel confident about my ability to get at least one show off the ground.</th>
<td>Idealy, I would like to pitch a show to Cartoon Network, FXX, and or TVOne, as I feel that I would
have a greater amount of creator control. If it is not meant to be, I would easily settle
for helping to enhance another creator's project with an engaging crew and a career that I
wouldn't trade for the world.</p></td>
<h2>Follow The Artist's Accounts For Updates<h2>
<ul>
<ul><a href="https://www.instagram.com/magicalpeachinternet/">Instagram</a></ul>
<ul><a href="https://www.facebook.com/MagicalPeachInternet/">Facebook</a></ul>
<ul><a href="https://www.tumblr.com/blog/justpeachyartistry">Tumblr</a></ul>
<ul><a href="https://www.youtube.com/user/138veronica/featured?view_as=subscriber">Youtube</a></ul>
</ul>
<h2>Support The Artist</h2>
<a href="https://www.redbubble.com/people/PeachyArtMage">Redbubble</a>
<a href="https://www.deviantart.com/justpeachyartistry">DeviantArt</a>
<a href="https://www.patreon.com/MagicalPeachInternet">Patreon</a>
<a href="https://www.ko-fi.com/justpeachystudios">Ko-fi</a>
<h2>Congratulations for Reaching the Bottom!</h2>
<h3>Here's a riddle for your reward:</h3>
<pre>
<code>
x= FF0000
y= 0000FF
z= 000000
x+y+z=FF00FF
<p>What color in binanry code looks like a newspaper?</p>
</body>
</html>
My C# code was meant to run as a matching card game with sprite elements for the cards and timer. This is my first project that I used the C# programming language outside of Unity program tutorials, and I wrote it in Notepad ++ for easy sharing. The code has a rotation of 12 sprite designs, which were created by me, that it randomly chooses to appear for the player when the game starts. It's a race against the clock for the player to find all the matching pictures before it's too late.
This HTML Coding Sample was created to showcase my ability to edit and design a functional webpage to display my art portfolio. I have a longer amount of experience with HTML than any other programming language, and feel the most comfortable working with it.