(x: number, y: number)
| 43 | |
| 44 | // Private methods |
| 45 | private drawAbout(x: number, y: number): void{ |
| 46 | // The title |
| 47 | this.renderArea.drawArray(Database.getAscii("text/About"), x + 34, y); |
| 48 | |
| 49 | // Who? |
| 50 | this.renderArea.drawString("Who?", x + 2, y + 7); |
| 51 | this.renderArea.addBold(x+2, x+6, y+7); |
| 52 | |
| 53 | // Who... |
| 54 | this.renderArea.drawString("Ideas, game design & code by aniwey.", x + 4, y + 9); |
| 55 | this.renderArea.drawString("Ascii art by Tobias Nordqvist, GodsTurf, dixsept, Dani \"Deinol\" Gómez and aniwey.", x + 4, y + 10); |
| 56 | |
| 57 | // License? |
| 58 | this.renderArea.drawString("License?", x + 2, y + 13); |
| 59 | this.renderArea.addBold(x+2, x+10, y+13); |
| 60 | |
| 61 | // License... |
| 62 | this.renderArea.drawString("The game source code is published under the GPLv3 license. This means you are free to modify and", x + 4, y + 15); |
| 63 | this.renderArea.drawString("redistribute the game, even for commercial purposes, under some conditions.", x, y + 16); |
| 64 | this.renderArea.addHtmlLink(x + 76, y + 16, "source_code.html", "Learn more."); |
| 65 | |
| 66 | this.renderArea.drawString("The ascii art is published under the CC-BY-SA license, which means that you can reuse it if you", x + 4, y + 18); |
| 67 | this.renderArea.drawString("credit the artist who made the art and share your modifications under the same license.", x, y + 19); |
| 68 | this.renderArea.addHtmlLink(x + 88, y + 19, "ascii_art.html", "Learn more."); |
| 69 | |
| 70 | // Aything else? |
| 71 | this.renderArea.drawString("Anything else?", x + 2, y + 22); |
| 72 | this.renderArea.addBold(x+2, x+16, y+22); |
| 73 | |
| 74 | // Contact |
| 75 | this.renderArea.drawString("Feel free to contact me at aniwey@gmail.com if you have any comments or questions :)", x + 4, y + 24); |
| 76 | } |
| 77 | |
| 78 | private drawCfgInvertColors(x: number, y: number): void{ |
| 79 | // Text |
no test coverage detected