Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikwilkowski committed Oct 17, 2016
2 parents 799e52c + b6d9ba0 commit 09c364f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ TODO


## Release History
* 0.1.2 - Fixed error message
* 0.1.1 - Added level indicator, fixed lives display
* 0.1.0 - alpha release

Expand Down
8 changes: 6 additions & 2 deletions dev/999-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ BEAST.checkSize = () => {
if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) || CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {

if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) ) {
error = ` Your console is not wide enough for this game\n (It is ${CliSize().columns} wide but needs to be ${( BEAST.MINWIDTH + 4 )})\n`;
error = `\n Your console window is not wide enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}

if( CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {
error = ` Your console is not tall enough for this game\n (It is ${CliSize().rows} tall but needs to be ${( BEAST.MINHEIGHT + 1 )})\n`;
error = `\n Your console window is not tall enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}
}

Expand Down
8 changes: 6 additions & 2 deletions dev/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,15 @@ BEAST.checkSize = () => {
if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) || CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {

if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) ) {
error = ` Your console is not wide enough for this game\n (It is ${CliSize().columns} wide but needs to be ${( BEAST.MINWIDTH + 4 )})\n`;
error = `\n Your console window is not wide enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}

if( CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {
error = ` Your console is not tall enough for this game\n (It is ${CliSize().rows} tall but needs to be ${( BEAST.MINHEIGHT + 1 )})\n`;
error = `\n Your console window is not tall enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "beast.js",
"description": "ANSI Beast for node",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/dominikwilkowski/beast.js",
"author": {
"name": "Dominik Wilkowski",
Expand Down
8 changes: 6 additions & 2 deletions prod/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,15 @@ BEAST.checkSize = () => {
if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) || CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {

if( CliSize().columns < ( BEAST.MINWIDTH + 4 ) ) {
error = ` Your console is not wide enough for this game\n (It is ${CliSize().columns} wide but needs to be ${( BEAST.MINWIDTH + 4 )})\n`;
error = `\n Your console window is not wide enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}

if( CliSize().rows < ( BEAST.MINHEIGHT + 1 ) ) {
error = ` Your console is not tall enough for this game\n (It is ${CliSize().rows} tall but needs to be ${( BEAST.MINHEIGHT + 1 )})\n`;
error = `\n Your console window is not tall enough for this game\n` +
` Please resize your window to at least ${( BEAST.MINWIDTH + 4 )} x ${( BEAST.MINHEIGHT + 1 )}\n` +
` (It is ${CliSize().columns} x ${CliSize().rows})\n`;
}
}

Expand Down

0 comments on commit 09c364f

Please sign in to comment.