Skip to content

Commit

Permalink
Updated to version 0.1.2-a
Browse files Browse the repository at this point in the history
  • Loading branch information
MyXoToD committed Sep 8, 2014
1 parent 601760e commit cfc68f1
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 19 deletions.
10 changes: 8 additions & 2 deletions README.md
Expand Up @@ -4,10 +4,12 @@ Shitclick is a very simple but fun game. It is all about clicking and collecting

The game was created by [Max Boll aka MyXoToD](http://myxotod.com) but is currently developed by his very own [Bullgit team](http://bullg.it).

![Current Version](http://img.shields.io/badge/Version-v0.1.1--a-red.svg)<br />
![Latest Version](http://img.shields.io/badge/Version-v0.1.2--a-red.svg)<br />
![Release Date](http://img.shields.io/badge/Release%20Date-TBA-red.svg)<br />
![Powered by](http://img.shields.io/badge/Powered%20by-Bullg.it-blue.svg)

Once the game is finished it will be available for desktop, android and firefox OS


### To-Do List

Expand All @@ -22,11 +24,15 @@ The game was created by [Max Boll aka MyXoToD](http://myxotod.com) but is curren
- Replace compass with gulp.js for SASS and Coffee precompiling
- Prevent collecting cookies when app is closed/standby
- Add shit miltiplier on fast click-rate
- Add "Durchfall"-Mode every 5 minutes for X seconds
- Format click number

### Changelog

- **v0.1.2-a** (08 Sep. 2014):
- Added "diarrhea-mode" every 5 minutes for 20 seconds (multiplier 10)
- Changed upgrade-box animation and size
- Added label for current multiplier

- **v0.1.1-a** (27 Aug. 2014):
- Added auto-save script every 5 seconds (better performance)
- Increased auto-collecting speed
Expand Down
37 changes: 33 additions & 4 deletions assets/javascripts/application.coffee
Expand Up @@ -4,6 +4,7 @@ $(document).ready ->

app =
save_interval: ""
diarrhea_mode: false
game:
shit_amount: 0
spc: 1
Expand Down Expand Up @@ -70,20 +71,27 @@ app =
init: ->
@bind_events()
@load_upgrades()
@diarrhea()
@load_game()
@autosave()

bind_events: ->
$(document).on "click", ".btn-shit", (e) ->
app.add_shit(app.game.spc)
app.show_amount_added(e, app.game.spc)
amount_to_add = app.game.spc
if app.diarrhea_mode is true
amount_to_add *= 10
app.add_shit(amount_to_add)
app.show_amount_added(e, amount_to_add)

$(document).on "click", ".btn-upgrades", (e) ->
app.toggle_upgrades()

$(document).on "click", ".btn-buy-upgrade", (e) ->
app.buy_upgrade $(this).data "upgrade"

$(document).on "click", ".btn-scores, .btn-settings", (e) ->
alert "These features are coming soon!"

save_game: ->
localStorage["shitclick_savegame"] = btoa(JSON.stringify(@game))

Expand Down Expand Up @@ -115,16 +123,33 @@ app =
console.log "SHITCLICK: Game saved!"
), 5000

diarrhea: ->
$(".diarrhea-time").animate
width: "100%"
, 300000, ->
# Start Diarrhea Mode
console.log "SHITCLICK: Diarrhea Mode activated!"
app.diarrhea_mode = true
app.refresh_shit()
$(".diarrhea-time").animate
width: "0%"
, 20000, ->
# Reset Diarrhea Mode
console.log "SHITCLICK: Diarrhea Mode deactivated!"
app.diarrhea_mode = false
app.diarrhea()
app.refresh_shit()

toggle_upgrades: ->
$(".upgrades").stop()
$(".btn-upgrades").toggleClass("active")
if $(".upgrades").data("open") is "no"
$(".upgrades").animate
top: "0%"
left: "0"
$(".upgrades").data("open", "yes")
else
$(".upgrades").animate
top: "150%"
left: "-200%"
$(".upgrades").data("open", "no")

add_shit: (amount) ->
Expand All @@ -151,6 +176,10 @@ app =
shit = @format_number(@game.shit_amount)
$(".shit-amount").html(shit)
$(".sps").html(@format_number(@game.sps) + " Shit / Second")
if @diarrhea_mode
$(".multiplier").html("Multiplier &times;10")
else
$(".multiplier").html("Multiplier &times;0")
window.document.title = shit + " // Shitclick!"

format_number: (n) ->
Expand Down
42 changes: 37 additions & 5 deletions assets/javascripts/application.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/stylesheets/application.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 21 additions & 6 deletions assets/stylesheets/application.sass
Expand Up @@ -75,8 +75,22 @@ header
font-size: 15px
position: absolute
right: 20px
bottom: -30px
bottom: -38px
color: $blue
.multiplier
height: 30px
line-height: 30px
font-size: 15px
position: absolute
right: 20px
bottom: -68px
color: $blue
.diarrhea-time
width: 0%
height: 8px
position: absolute
bottom: -8px
background-color: $blue

.amount-added-info
position: absolute
Expand Down Expand Up @@ -136,17 +150,18 @@ footer
.upgrades
position: fixed
width: 50%
height: 50%
//height: 50%
padding: 0 20px
overflow-y: scroll
background-color: #fff
border: 5px solid $blue
box-shadow: 0 0 10px #000
//box-shadow: 0 0 10px #000
margin: auto
top: 150%
left: 0
top: 75px
left: -200%
right: 0
bottom: 0
bottom: 75px
z-index: 100
.upgrade
width: 100%
padding: 20px 0
Expand Down
2 changes: 1 addition & 1 deletion humans.txt
Expand Up @@ -11,7 +11,7 @@ Website: http://bullg.it


/* SITE */
Last update: 2014/08/29
Last update: 2014/09/08
Standards: HTML5, SASS, CoffeeScript, JavaScript, CSS3, Compass
Components: jQuery
Software: Ubuntu, Sublime Text 3, Intel XDK, Google Chrome
2 changes: 2 additions & 0 deletions index.html
Expand Up @@ -17,6 +17,8 @@
<header>
<div class="shit-amount">0</div>
<div class="sps">0 Shit / Second</div>
<div class="multiplier">Multiplier &times;0</div>
<div class="diarrhea-time"></div>
</header>

<div class="btn-shit"></div>
Expand Down

0 comments on commit cfc68f1

Please sign in to comment.