Skip to content

Commit

Permalink
Changes minimum distance to border for fair starting positions
Browse files Browse the repository at this point in the history
  • Loading branch information
maechler committed May 30, 2023
1 parent ed4f8e3 commit 02702ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h4>Choose players using your mouse or the keyboard and hit <strong>SPACE</stron
<span>&nbsp;&Iota;&nbsp;</span>
<a href='#' onclick='Kurve.Sound.onCreditsClicked();'>Credits</a>
<br>
<span><a href='https://github.com/maechler/kurve/tags' target='_blank'>v1.5.0</a> &Iota; Copyright &copy; 2014 </span>
<span><a href='https://github.com/maechler/kurve/tags' target='_blank'>v1.5.1</a> &Iota; Copyright &copy; 2014 </span>
<a href='http://markusmaechler.ch' target='_blank' rel='author'>Markus Mächler</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kurve",
"version": "1.5.0",
"version": "1.5.1",
"description": "Achtung, die Kurve HTML5 version",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/KurveField.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Kurve.Field = {
},

getRandomPosition: function(borderPadding) {
if ( borderPadding === undefined ) borderPadding = 25;
if ( borderPadding === undefined ) borderPadding = 80;

var posX = borderPadding + Math.round( (this.width - 2*borderPadding)*Math.random() );
var posY = borderPadding + Math.round( (this.height - 2*borderPadding)*Math.random() );
Expand Down

0 comments on commit 02702ad

Please sign in to comment.