Skip to content

Commit

Permalink
BigNumber replaced by Decimal
Browse files Browse the repository at this point in the history
Since this game only requires limited precision, Decimal is more
suitable. It gives a HUGE boost in performance. Now it is possible to go
up to the maximum value, 9.999...e+9000000000000000
  • Loading branch information
angarg12 committed Dec 25, 2014
1 parent a50d352 commit f6a69c3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<body ng-app="incremental">
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/exponential.js"></script>
<script type="text/javascript" src="js/bignumber.min.js"></script>
<script type="text/javascript" src="js/decimal.min.js"></script>
<div ng-controller="IncCtrl">
<h1>True exponential v0.2</h1>
<h1>True exponential v0.3</h1>
<h2>Cash multiplier: {{(1+multiplier).toFixed(4)}}</h2>
<hr>
<button ng-click="click()">Generate cash ${{cashPerClick}}</button>
Expand Down
2 changes: 0 additions & 2 deletions js/bignumber.min.js

This file was deleted.

Loading

0 comments on commit f6a69c3

Please sign in to comment.