Google Play Chicken
About this app
A fun and addictive game where you control a chicken and collect coins on Google Play.
Google Play Chicken Google Play Chicken 0
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Google Play Chicken</title>
<meta name="description" content="A fun and addictive game where you control a chicken and collect coins on Google Play.">
<meta name="keywords" content="Google Play, Chicken, Coins, Game">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
const chicken = document.getElementById("chicken");
const coins = document.getElementsByClassName("coin");
let score = 0;
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Add event listeners to coins
for (let i = 0; i < coins.length; i++) {
coins[i].addEventListener("click", collectCoin);
}
});
function collectCoin() {
score++;
this.style.display = "none";
updateScore();
}
function updateScore() {
const scoreElement = document.getElementById("score");
scoreElement.textContent = score;
}
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f8f9fa;
font-family: 'Roboto', sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
h1 {
text-align: center;
color: #ff8c00;
margin-bottom: 40px;
}
#chicken {
display: block;
margin: 0 auto;
font-size: 80px;
color: #ff8c00;
text-align: center;
transition: transform 0.2s;
}
.coin {
display: inline-block;
font-size: 40px;
color: #ffd700;
margin: 10px;
cursor: pointer;
transition: transform 0.2s;
}
.coin:hover {
transform: scale(1.2);
}
#score {
text-align: center;
font-size: 24px;
color: #ff8c00;
margin-top: 40px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Google Play Chicken</h1>
<div id="chicken" class="fa fa-chicken"></div>
<div>
<i class="coin fa fa-bitcoin"></i>
<i class="coin fa fa-bitcoin"></i>
<i class="coin fa fa-bitcoin"></i>
<i class="coin fa fa-bitcoin"></i>
<i class="coin fa fa-bitcoin"></i>
<i class="coin fa fa-bitcoin"></i>
</div>
<div id="score">0</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!