Hey guys,
So I might have made my game too complicated. I tried to make it so you had to unlock a password (Put in my code as levelkey so as not to be confused with password or level1passwords) that enables you to access that level.
This is my arrays and Game State stuff… n.n
//Game configuration data
string[] level1Passwords = { "carrot", "plum", "melon", "kale", "yam" };
string[] level2Passwords = { "chicken breast", "chick pea ", "pepperoni", "veal chops", "octopus" };
string[] level3Passwords = { "cholesterol", "malignant tumor", "genetic disease", "vaccination", "tuberculosis", "terminal illness", };
string[] levelkeys = { "intermediatepass", "i_luv4n4gr4ms", };
//Game State
int level;
enum Screen { MainMenu, Password, Win, LevelKey };
Screen currentScreen;
string password;
string levelkey;
I tried to make it so that when you’re on the mainmenu, if level = 2 or 3 (i.e. if the input is 2 or 3 from the main menu,) then you are directed to AskForLevelKey, and the screen is switched to Screen.LevelKey.
From here, I want there to be new prompts to the player to enter the levelkey, I put these prompts in AskForLevelKey.
My only compiler errors are:
Assets/Hacker.cs(130,28): error CS0103: The name leve1keys' does not exist in the current context Assets/Hacker.cs(133,28): error CS0103: The name
leve1keys’ does not exist in the current
Let me know if there’s any info/clarification needed!!!
Huge virtual hugs to anyone who can help me out!!!
Thank you so much
contextAna’s Gram 2 W_Level_Key.zip (8.8 MB)