-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
529 additions
and
363 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Clone Clicker | ||
Daniel will write this JavaScript game. | ||
|
||
The aim is to click a button to deal some amount of damage to an enemy on the screen. | ||
|
||
Each enemy defeated (hit points reduced to zero) yields gold, based on the enemy level. | ||
|
||
The faster you click, the more enemies you defeat, the faster you can increase your power. | ||
|
||
Gold can be spent on upgrades, bigger and better weapons, or hiring helpers to fight for you. | ||
|
||
Here is a bare bones version you can already test: | ||
<http://static.3ice.hu/button-click-counter.htm> | ||
|
||
And cheats! | ||
<http://forum.3ice.hu/viewtopic.php?t=634> | ||
|
||
Footer: Daniel Berezvai, Aparajita Chowdhury, Arjun Venkatakrishnan, and Krishna Bagale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- swrodman Authored by Aparajita Chowdhury --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<!--<img id="target" src=""img11.png"," width="107" height="98" />--> | ||
<a onclick="mute(); changeImage(this)" id="mute"> | ||
<img src="http://krishnabagale.com/wp-content/uploads/2017/03/img11.png" id="play" /> | ||
<img src="http://krishnabagale.com/wp-content/uploads/2017/03/img22.png" id="pause" /> | ||
</a> | ||
|
||
<style> | ||
#mute #pause { | ||
display: none; | ||
} | ||
#mute.playing #pause { | ||
display: block; | ||
} | ||
#mute.playing #play { | ||
display: none; | ||
} | ||
</style> | ||
<script> | ||
function mute() {} | ||
|
||
function changeImage(obj) { | ||
obj.classList.toggle('playing'); | ||
setTimeout(function(){ | ||
obj.classList = [] | ||
}, 1000) | ||
} | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- Click Attack button and change image then reset to original-working Authored by Krishna Bagale --> | ||
<!DOCTYPE html> | ||
<html> | ||
<title>JavaScript Game</title> | ||
<head> | ||
<script> | ||
|
||
function clickMeHandler(){ | ||
document.getElementById("imageObject").src="http://krishnabagale.com/wp-content/uploads/2017/03/img22.png"; | ||
setTimeout(function(){ | ||
document.getElementById("imageObject").src="http://krishnabagale.com/wp-content/uploads/2017/03/img11.png"; | ||
}, 1000); | ||
} | ||
|
||
|
||
</script> | ||
</head> | ||
<body> | ||
<input type="button" id="clickme" value="Attack" onClick="clickMeHandler();"> | ||
<a onclick="changeImage(this)" id="mute"> | ||
<img src="http://krishnabagale.com/wp-content/uploads/2017/03/img11.png" id="imageObject" /> | ||
</a> | ||
<style> | ||
#mute #pause { | ||
display: none; | ||
} | ||
#mute.playing #pause { | ||
display: block; | ||
} | ||
#mute.playing #play { | ||
display: none; | ||
} | ||
</style> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.