Add new clothing system
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / NewGameScreen.as
blobeffe475d36bfac76dfdc9c78c298a67f0902e0c0
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 import org.sevenchan.dongs.creature.Bova;
8 /**
9 * ...
10 * @author Harbinger
12 public class NewGameScreen extends Screen
14 private var stage:int = -1;
15 private var text:String = "";
17 [Embed(source="txt/bsd-license.txt",mimeType="application/octet-stream")]
18 private var License:Class;
20 [Embed(source="txt/intro.txt",mimeType="application/octet-stream")]
21 private var Introduction:Class;
23 public function NewGameScreen()
25 this.appearanceButton = false;
26 this.debugMenuButton = true;
27 this.exportGameButton = false;
28 this.loadOrSaveButton = false;
29 this.newGameButton = false;
30 this.importGameButton = true;
32 this.clearButtons();
33 this.setButton(NEXT_BUTTON, "Next");
36 override public function processButtonPress(id:int):Boolean
38 var done:Boolean = false;
39 switch(stage) {
40 case -1: // License
41 stage = 0;
42 text = new License();
43 this.clearButtons();
44 this.setButton(NEXT_BUTTON, "Next");
45 updateScreen();
46 break;
47 case 0: // Species selection
48 this.stage = 1;
49 this.clearButtons();
50 setButton(0, "Human");
51 setButton(1, "Bova");
52 setButton(2, "Demon");
53 text = "<h2>Species</h2><p>Select whatever the hell you want to be. Note that this list is very incomplete.</p>";
54 updateScreen();
55 break;
56 case 1: // Gender selection
57 this.stage = 2;
58 text = "<h2>Gender Selection</h2>";
59 switch(id) {
60 case 0:
61 main.player.setBaseType(new Human());
62 text += "<p>As a simple human, you can either be male or female as you start out.</p>";
63 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>";
64 text += "<p>Humans also get randomly colored skin, hair, and eyes.</p>";
65 clearButtons();
66 setButton(0, "Male");
67 setButton(2, "Female");
68 break;
69 case 1:
70 main.player.setBaseType(new Bova());
71 text += "<p>You are a Bova, a race of cow-girls that was once enslaved by man. Throwing off their shackles, they formed their own nation after a bloody war.</p>";
72 text += "<p>Bovae can be Male or Female.</p>";
73 text += "<p>Males (bulls) are very strong, yet not very smart.</p>";
74 text += "<p>Females are more cunning, yet they need their bulls for protection.</p>";
75 clearButtons();
76 setButton(0, "Male");
77 setButton(2, "Female");
78 break;
79 case 2:
80 main.player.setBaseType(new Demon());
81 text += "<p>You have chosen to become a Demon. Demons can infect other creatures with an STD that eventually changes them into demons, as well.</p>";
82 text += "<p>Demons can be any gender except asexual.</p>";
83 clearButtons();
84 setButton(0, "Male");
85 setButton(1, "Hermophrodite");
86 setButton(2, "Female");
87 break;
89 updateScreen();
90 break;
91 case 2: // Profile
92 switch(id) {
93 case 0:
94 main.player.gender = Gender.MALE;
95 break;
96 case 1:
97 main.player.gender = Gender.HERM;
98 break;
99 case 2:
100 main.player.gender = Gender.FEMALE;
101 break;
103 main.player.initialGenderSetup();
104 this.stage = 3;
105 clearButtons();
106 text = "<h2>Class Selection</h2>";
107 text += "<p>Here, you choose your initial startup benefits and weapons.</p>";
108 text += "<ul>";
109 setButton(0, "Avg. Joe");
110 text += "<li>Avg. Joe - Just go in with the clothes on your back. (1 STR, 1 INT, 1 SPD)</li>";
111 setButton(1, "Soldier");
112 text += "<li>Soldier - You spent more time on swordplay than books. This lets you dive right into the combat. (+3 STR, Cheap Sword, Leather Armor)</li>";
113 setButton(2, "Bookworm");
114 text += "<li>Bookworm - You read a lot of scrolls as a kid, and paid attention in class. Strength, however, is not your forte. (+3 INT, Glasses, Daemonology Book)</li>";
116 text += "</ul>";
117 updateScreen();
118 break;
119 case 3:
120 stage = 4;
121 switch(id) {
122 case 0:
123 main.player.strength += 1;
124 main.player.speed += 1;
125 main.player.intellect += 1;
126 break;
127 case 1:
128 main.player.strength += 3;
129 break;
130 case 2:
131 main.player.intellect += 2;
132 main.player.speed += 1;
133 break;
134 case 3:
135 main.player.balls.push(main.player.balls[0]);
136 main.player.strength += 1;
137 main.player.speed += 1;
138 break;
141 text = new Introduction();
142 clearButtons();
143 main.setupStatsPanel();
144 setButton(NEXT_BUTTON, "Next");
145 updateScreen();
146 done = false;
147 break;
148 case 4:
149 return true;
151 trace(id,stage,done);
152 return done;
155 override public function getScreenText():String
157 return text;