コード例 #1
0
ファイル: Gameplay.cs プロジェクト: Texxar/BOSSJam17
        public void Initialize(ContentManager content)
        {
            gameplayState = GamePlayState.Idle;
            book          = new Book(content);

            background = content.Load <Texture2D>("Environment\\bakgrund_color");
            bord       = content.Load <Texture2D>("Environment\\bord");
            font       = content.Load <BitmapFont>("Font\\OneFont");
            smallFont  = content.Load <BitmapFont>("Font\\FreePixel");

            happinessIcon = content.Load <Texture2D>("happinessIcon");
            moneyIcon     = content.Load <Texture2D>("moneyIcon");
            gameOverTex   = content.Load <Texture2D>("GameOver");
            gameWinTex    = content.Load <Texture2D>("GameOver");

            noteBoard = new NoteBoard(content);
            screen    = new Screen(content);

            stuff = new List <Interactable>();

            phone = new Phone(content); //Who dis?
            stuff.Add(phone);
            stuff.Add(book);

            activeCases = new List <Call>();
            computer    = new Computer(content);
            stuff.Add(computer);

            hand = new Hand(content, stuff);

            resource = new Resources();
        }
コード例 #2
0
 public Call(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString)
 {
     avatar = call.avatar;
     postIt = new PostIt(content, noteBoard, inString);
     stuff.Add(postIt);
     Initialzie();
 }
コード例 #3
0
ファイル: PostIt.cs プロジェクト: Texxar/BOSSJam17
        public PostIt(ContentManager content, NoteBoard noteBoard, string inText) : base()
        {
            tex = content.Load <Texture2D>("Environment\\Postit_2");
            Init();
            scale = 0.1f;

            rec            = new Rectangle(460, rec.Y, (int)(rec.Width * scale), (int)(rec.Height * scale));
            this.noteBoard = noteBoard;
            flavortext     = inText;
        }
コード例 #4
0
ファイル: FishermanCall.cs プロジェクト: Texxar/BOSSJam17
        public FishermanCall(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString) : base(call, content, noteBoard, stuff, inString)
        {
            caseIntensity = CaseIntensity.low;

            missionLocation = new Vector2(1, 1);

            failMessage  = "The fishes have dried out and are dead..";
            awardMessage = "THANK YOU FOR SAVING MY FISHIES";

            negativeHappiness = -3;
            negativeMoney     = 0;

            PositiveHappiness = 3;
            PositivteMoney    = 0;
        }
コード例 #5
0
        public GrannyCall(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString) : base(call, content, noteBoard, stuff, inString)
        {
            caseIntensity = CaseIntensity.low;

            failMessage  = "Grannys cat fell out and now its dead!";
            awardMessage = "Granny now has one more cat to bring home";

            missionLocation = new Vector2(15, 3);

            negativeHappiness = -2;
            negativeMoney     = 0;

            PositiveHappiness = 1;
            PositivteMoney    = 0;
        }
コード例 #6
0
        public HomeworkCall(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString) : base(call, content, noteBoard, stuff, inString)
        {
            caseIntensity = CaseIntensity.low;

            failMessage  = "The future just got darker";
            awardMessage = "You shouldn't have dropped out highschool";

            missionLocation = new Vector2(1, 1);

            negativeHappiness = -5;
            negativeMoney     = 0;

            PositiveHappiness = 2;
            PositivteMoney    = 1;
        }
コード例 #7
0
ファイル: GhostSightCall.cs プロジェクト: Texxar/BOSSJam17
        public GhostSightCall(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString) : base(call, content, noteBoard, stuff, inString)
        {
            caseIntensity = CaseIntensity.low;

            failMessage  = "A man was scared to death today....";
            awardMessage = "We can all sleep well tonight";

            missionLocation = new Vector2(6, 9);

            negativeHappiness = -3;
            negativeMoney     = 0;

            PositiveHappiness = 2;
            PositivteMoney    = 2;
        }
コード例 #8
0
ファイル: HumanSight.cs プロジェクト: Texxar/BOSSJam17
        public HumanSightCall(Call call, ContentManager content, NoteBoard noteBoard, List <Interactable> stuff, string inString) : base(call, content, noteBoard, stuff, inString)
        {
            caseIntensity = CaseIntensity.low;

            failMessage  = "A fight for the minority was lost";
            awardMessage = "Undead? Yes. Unperson? No!";

            missionLocation = new Vector2(8, 9);

            negativeHappiness = 0;
            negativeMoney     = -5;

            PositiveHappiness = 0;
            PositivteMoney    = 5;
        }
コード例 #9
0
ファイル: DonnyCall.cs プロジェクト: Texxar/BOSSJam17
        public DonnyCall(Call call, ContentManager content, NoteBoard noteBoard, List<Interactable> stuff, string inString)
            : base(call,content,noteBoard,stuff,inString)
        {
            caseIntensity = CaseIntensity.low;

            failMessage = "Where are they?";
            awardMessage = "Here are your donuts, guys!";

            missionLocation = new Vector2(1, 9);

            negativeHappiness = -5;
            negativeMoney = 2;

            PositiveHappiness = 5;
            PositivteMoney = -2;
        }
コード例 #10
0
ファイル: Phone.cs プロジェクト: Texxar/BOSSJam17
        public bool CallUpdate(GameTime gameTime, List <Call> activeCases, List <Interactable> stuff, NoteBoard noteBoard)
        {
            if (call.Update(gameTime) == true)
            {
                if (dialogueVec.Y > 540)
                {
                    dialogueVec.Y -= 2;
                }
            }
            else
            {
                if (dialogueVec.Y < 800)
                {
                    dialogueVec.Y += 2;
                }
                else
                {
                    writeNote = true;
                }
            }

            if (writeNote == true)
            {
                if (textInput.Update())
                {
                    active = false;
                    if (!call.hasBeenDealtWith)
                    {
                        if (call.GetType() == typeof(FishermanCall))
                        {
                            activeCases.Add(new FishermanCall(call, content, noteBoard, stuff, textInput.returnString));
                        }
                    }
                    if (call.GetType() == typeof(DonnyCall))
                    {
                        activeCases.Add(new DonnyCall(call, content, noteBoard, stuff, textInput.returnString));
                    }
                    if (call.GetType() == typeof(GrannyCall))
                    {
                        activeCases.Add(new GrannyCall(call, content, noteBoard, stuff, textInput.returnString));
                    }
                    if (call.GetType() == typeof(GhostSightCall))
                    {
                        activeCases.Add(new GhostSightCall(call, content, noteBoard, stuff, textInput.returnString));
                    }
                    if (call.GetType() == typeof(HumanSightCall))
                    {
                        activeCases.Add(new HumanSightCall(call, content, noteBoard, stuff, textInput.returnString));
                    }
                    if (call.GetType() == typeof(HomeworkCall))
                    {
                        activeCases.Add(new HomeworkCall(call, content, noteBoard, stuff, textInput.returnString));
                    }
                    textInput.Clear();
                    writeNote = false;
                    call      = null;
                    tex       = phonePlaced;
                    return(false);
                }
            }
            return(true);
        }