games
parent
b09365dd91
commit
7432c039d1
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<title>textadventureaglaia</title>
|
||||
<style>
|
||||
code{white-space: pre-wrap;}
|
||||
span.smallcaps{font-variant: small-caps;}
|
||||
div.columns{display: flex; gap: min(4vw, 1.5em);}
|
||||
div.column{flex: auto; overflow-x: auto;}
|
||||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
||||
ul.task-list{list-style: none;}
|
||||
ul.task-list li input[type="checkbox"] {
|
||||
width: 0.8em;
|
||||
margin: 0 0.8em 0.2em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="the-superstructure-text-adventure-game"></h1>click-click, the clicking game a matter of accumulation</h1><br>
|
||||
<p>I wasn't aware about the existence of the clicking games a couple of months ago. When I played for the first time, I couldn't understand why people are intrigued enough in order to devote themselves in clicking . I still struggle a little bit to understand. My main intention was to create a clicking game that would highlight the act of clicking to the player through the interface of the screen. People would see a hand clicking in their screen and then at the next stage a person in front of a screen (with a hand clicking) clicking etc. My poor java script skills didn't allow me to materialise my initial idea, so eventually I came up with really simple version of the click_click game. People click on the click button that makes a "click" sound. Every time they click, a new button is generated. The aim is to click so as to accumulate bricks. A repetitive performance. You click you gain. The end of the game is when you full your screen and build a wall out of click buttons. Then the screen clears automatically and a small victory message appears. What happens when the only function to be performed is clicking? Nothing I guess</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>click</title>
|
||||
<link rel="stylesheet" type="text/css" href="graduation.css">
|
||||
|
||||
<body>
|
||||
|
||||
<span id = "parentbutton"><button onclick = "addbutton1()">click</button></span>
|
||||
|
||||
|
||||
|
||||
<!-- script to create new button -->
|
||||
<script>
|
||||
|
||||
var countclicks = 0;
|
||||
function addbutton1() {
|
||||
|
||||
var myspan = document.getElementById("parentbutton");
|
||||
|
||||
// creating button element
|
||||
var newbutton = document.createElement('BUTTON');
|
||||
|
||||
// creating text to be
|
||||
//displayed on button
|
||||
var text = document.createTextNode("click");
|
||||
|
||||
// appending text to button
|
||||
newbutton.appendChild(text);
|
||||
|
||||
// appending button to div
|
||||
myspan.appendChild(newbutton);
|
||||
|
||||
// giving the button a click attribute
|
||||
newbutton.setAttribute("onclick","addbutton1()");
|
||||
|
||||
// add click sound to buttons
|
||||
const audio = new Audio("https://www.fesliyanstudios.com/play-mp3/387");
|
||||
audio.play();
|
||||
|
||||
|
||||
|
||||
// total sum of clicks and cleaning of the screen frim buttons
|
||||
countclicks = countclicks + 1;
|
||||
console.log("countclicks", countclicks);
|
||||
|
||||
if (countclicks >= 406){
|
||||
|
||||
document.body.innerHTML = "";
|
||||
|
||||
alert("Congratulations buddy! You clicked 406 times and you built an entire wall out of clicks. What a productive day!");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</head>
|
||||
|
||||
|
||||
</html>
|
@ -0,0 +1,18 @@
|
||||
body{
|
||||
background-color: rgb(179, 107, 179);
|
||||
color: rgb(232, 243, 247);
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
padding: 0,2em;
|
||||
}
|
||||
button{
|
||||
color: rgb(94, 46, 139);
|
||||
width: 2.55cm;
|
||||
background-color: rgb(179, 107, 179);
|
||||
border-color: rgb(204, 127, 204);
|
||||
padding: 1px;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
}
|
||||
button:hover{
|
||||
text-shadow: 3px 3px 5px red, 0 0 1em rgb(221, 6, 24), 0 0 0.2em blue;
|
||||
|
||||
}
|
@ -1 +0,0 @@
|
||||
# the superstructure text adventure game
|
Loading…
Reference in New Issue