Initial commit (r9)
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / NewGameScreen.as
blob120b51ac4b04da0c245f4800ee803ddb233148fc
1 package org.sevenchan.dongs.screens
3 import flash.utils.ByteArray;
4 import org.sevenchan.dongs.creature.*;
5 import org.sevenchan.dongs.bodyparts.*;
6 import org.sevenchan.dongs.*;
7 /**
8 * ...
9 * @author N3X15
11 public class NewGameScreen extends Screen
13 private var stage:int = -1;
14 private var text:String = "";
16 [Embed(source="txt/bsd-license.txt",mimeType="application/octet-stream")]
17 private var License:Class;
19 [Embed(source="txt/intro.txt",mimeType="application/octet-stream")]
20 private var Introduction:Class;
22 public function NewGameScreen()
24 this.appearanceButton = false;
25 this.debugMenuButton = true;
26 this.exportGameButton = false;
27 this.loadOrSaveButton = false;
28 this.newGameButton = false;
29 this.selectPerkButton = false;
31 this.clearButtons();
32 this.setButton(NEXT_BUTTON, "Next");
35 override public function processButtonPress(id:int):Boolean
37 var done:Boolean = false;
38 switch(stage) {
39 case -1: // License
40 stage = 0;
41 text = new License();
42 this.clearButtons();
43 this.setButton(NEXT_BUTTON, "Next");
44 updateScreen();
45 break;
46 case 0: // Species selection
47 this.stage = 1;
48 this.clearButtons();
49 setButton(0, "Human");
50 text = "<h2>Species</h2><p>Select whatever the hell you want to be. Note that this list is very incomplete.</p>";
51 updateScreen();
52 break;
53 case 1: // Gender selection
54 this.stage = 2;
55 text = "<h2>Gender Selection</h2>";
56 switch(id) {
57 case 0:
58 main.player.setBaseType(new Human());
59 text += "<p>As a simple human, you can either be male or female as you start out.</p>";
60 text += "<ul><li><b>Male</b> - You gain a dick and a couple of balls.</li><li><b>Female</b> - A vagina and randomly-sized boobs.</li></ul>";
61 text += "<p>Humans also get randomly colored skin, hair, and eyes [Once they're implemented...].</p>";
62 clearButtons();
63 setButton(0, "Male");
64 setButton(2, "Female");
65 break;
67 updateScreen();
68 break;
69 case 2: // Profile
70 switch(id) {
71 case 0:
72 main.player.gender = Gender.MALE;
73 break;
74 case 2:
75 main.player.gender = Gender.FEMALE;
76 break;
78 main.player.initialGenderSetup();
79 this.stage = 3;
80 clearButtons();
81 text = "<h2>Class Selection</h2>";
82 text += "<p>Here, you choose your initial startup benefits. These aren't classes in the traditional sense, they merely boost your initial stats.</p>";
83 text += "<ul>";
84 setButton(0, "Balanced");
85 text += "<li>Balanced - You trained all of your skills. (+1 STR, +1 SPD, +1 INT).</li>";
86 setButton(1, "Brute");
87 text += "<li>Brute - You excel in brute strength, and can benchpress a horse. However, you're not too fast, and not too smart. (+3 STR)</li>";
88 setButton(2, "Bookworm");
89 text += "<li>Bookworm - You read a lot of scrolls as a kid, and paid attention in class. Unfortunately, the other village kids beat the crap out of you. (+2 INT, +1 SPD)</li>";
90 if(main.player.gender == Gender.MALE) {
91 text += "<li>Freak - You were cursed at birth with a third testicle, which gives you more volume and lust, but it reduced your muscle development, despite the extra testosterone. (+1 TESTICLE, +1 STR, +1 SPD)</li>";
92 setButton(3, "Freak");
94 text += "</ul>";
95 updateScreen();
96 break;
97 case 3:
98 stage = 4;
99 switch(id) {
100 case 0:
101 main.player.strength += 1;
102 main.player.speed += 1;
103 main.player.intellect += 1;
104 break;
105 case 1:
106 main.player.strength += 3;
107 break;
108 case 2:
109 main.player.intellect += 2;
110 main.player.speed += 1;
111 break;
112 case 3:
113 main.player.balls.push(main.player.balls[0]);
114 main.player.strength += 1;
115 main.player.speed += 1;
116 break;
119 text = new Introduction();
120 clearButtons();
121 main.setupStatsPanel();
122 setButton(NEXT_BUTTON, "Next");
123 updateScreen();
124 done = false;
125 break;
126 case 4:
127 return true;
129 trace(id,stage,done);
130 return done;
133 override public function getScreenText():String
135 return text;