Tuesday, February 28, 2023

TextBasedAdventure game

 using System;




using System.Collections.Generic;




using System.Linq;




namespace textbasedgame




{




    class Program




    {




        static bool isRunning;




        static void _Init()




        {




            isRunning = true;


        }




        static void StartMenu()




        {




            Console.WriteLine("Welcome to the game!\n" + "Select an option:\n" + "1.Start the game \n" + "2. Exit");




            Console.Write(">");




            string choice = Console.ReadLine().ToLower();




            if (choice == "1" || choice == "start")




            {




                Room1();




            }


            else if (choice == "2" || choice == "exit")




            {




                isRunning = false;




            }


            else




            {




                Console.WriteLine("Incorrect Entry! Please press 1 or 2");




            }




        }




        static void Room1()




        {           //Start Room




            Console.WriteLine("You a trapped in a dungon eliminate all enemies to get out alive");




            Console.WriteLine("1. Do you go to the right?. \n" + "2. Do you go downwards?. \n");




            Console.Write(">");




            string choice = Console.ReadLine().ToLower();




            if (choice == "1")




            {




                Room2();




            }


            else if (choice == "2")




            {




                // choice //Room 1




                Console.WriteLine("There are two doors ahead of you do you take the left or the right?");




                Console.WriteLine("1.Right. \n" + "2.Left. \n");




                string choice1 = Console.ReadLine().ToLower();




                if (choice == "1")




                {




                    // choice 1




                    Console.WriteLine("You are dead");




                    Room1();




                }


                else if (choice == "2")


                {




                    // choice 2 //Room 2




                    Console.WriteLine("You Picked Correctly and are in a treasure room with a shop. \n");




                    Console.WriteLine("1.Continue on. \n" + "2. Shop for Items. \n ");




                    string choice6 = Console.ReadLine().ToLower();




                    if (choice == "1")




                        Room2();




                }


                else if (choice == "2")




                {




                    Console.WriteLine("You have 350 gold");




                    Console.WriteLine("1.upgrade sword to level 2 ($150) . \n" + "2.upgrade Bow to level 2 ($100) . \n");




                    string choice5 = Console.ReadLine().ToLower();




                    if (choice == "1")




                    {




                        // choice 1




                        Console.WriteLine("You now have sword level 2 .You have $200. \n");

                        Room3();




                    }


                    else if (choice == "2")




                    {




                        // choice 2




                        Console.WriteLine("You now have Bow level 2 . You have $250. \n");

                        Room3();







                    }




                    // choice //Room 3




                    Console.WriteLine("There are two doors ahead of you do you take the left or the right?");




                    Console.WriteLine("1.Right. \n" + "2.Left. \n");




                    string choice7 = Console.ReadLine().ToLower();




                    if (choice == "1")




                    {




                        // choice //Room 1




                        Console.WriteLine("There are ");




                        Console.WriteLine("1.Right. \n" + "2.Left. \n");






                    }




                }


                else if (choice == "2")




                { //Room4




                    Console.WriteLine("You have encountered an enemy what do you choose to do . \n");




                    Console.WriteLine("1. Do you use a sword?. \n" + "2. Do you use a bow?. \n");




                    string choice8 = Console.ReadLine().ToLower();




                    if (choice == "1")




                    {




                        // choice 1




                        Console.WriteLine("Your attack was very effective . \n");




                        Console.WriteLine("Your attack eliminated the monster . \n");




                        Room4();




                    }




                    else if (choice == "2")




                    {




                        //choice 2




                        Console.WriteLine("Your attack was not very effective what do you do now. \n");




                        Console.WriteLine("1.Attack again. \n" + "2. Defend . \n ");




                        if (choice == "1")




                        {




                            // choice 1




                            Console.WriteLine("Your attack was effective . \n");




                            Console.WriteLine("You were attacked and now badly hurt . \n");




                        }




                        else if (choice == "2")




                        {




                            // choice 2




                            Console.WriteLine("You Defended from a attack . \n");




                            Console.WriteLine("You are hurt but will be fine . \n");




                            Console.WriteLine("1.Attack again. \n" + "2. Defend . \n ");




                            if (choice == "1")




                            {




                                // choice 1




                                Console.WriteLine("Your attack was very effective . \n");




                                Console.WriteLine("Your attack eliminated the monster . \n");




                            }




                        }




                        else if (choice == "2")




                        {




                            Console.WriteLine("You Defended from a attack . \n");




                            Console.WriteLine("You couldnt deal with the pain and died");




                            Room1();




                        }




                    }




                }




            }




        }




        static void Room4()




        {


            //room 9




            Console.WriteLine("There seems to be a trap room with 2 options to live");


            Console.WriteLine("1.Run to the left . \n" + "2.Run to the right. \n");


            string choice = Console.ReadLine().ToLower();


            if (choice == "1")


            {


                Console.WriteLine("Spikes have shot up and shot right through you and you are dead");


                Room1();


            }


            else if (choice == "2")


            {


                Console.WriteLine("Spikes have shot up and you picked the correct side well done");

                

                

            }

            


        }




        static void Room2()


        {       //Room 4




            Console.WriteLine("There are two doors ahead of you do you take the left or the right?");




            Console.WriteLine("1.Right. \n" + "2.Left. \n");




            string choice = Console.ReadLine().ToLower();




            if (choice == "2")




            {




                // choice 1




                Console.WriteLine("You are dead");




                Room1();




            }




            else if (choice == "1")




                Room3();




        }




        static void Room3()




        {        //Room5




            Console.WriteLine("You Picked Correctly and are in a treasure room with a shop. \n");




            Console.WriteLine("1.Continue on. \n" + "2. Shop for Items. \n ");




            string choice = Console.ReadLine().ToLower();




            if (choice == "1")




            {




                //choice 1


                //room 6




                Console.WriteLine("1. Do you go to the right?. \n" + "2. Do you go downwards?. \n");




                string choice4 = Console.ReadLine().ToLower();




                if (choice == "1")




                { //Room 7




                    Console.WriteLine("You have encountered an enemy what do you choose to do . \n");




                    Console.WriteLine("1. Do you use a sword?. \n" + "2. Do you use a bow?. \n");




                    string choice5 = Console.ReadLine().ToLower();




                    if (choice == "1")




                    {


                        // choice 1




                        Console.WriteLine("The enemy has blocked the attack and hit you back, do you. \n");




                        Console.WriteLine("1.Attack again. \n" + "2. Defend . \n ");




                        string choice6 = Console.ReadLine().ToLower();




                        if (choice == "1")


                        {


                            Console.WriteLine("You hit a crit attack and the enemy has fallen well done. \n");

                            //final room

                            Room5();




                        }


                        else if (choice == "2")


                        {


                            Console.WriteLine("You have fallen and have surrendered. \n");


                            Room1();


                        }


                    }


                    else if (choice == "2")


                    {


                        Console.WriteLine("The enemy was to strong and the bow did nothing and he snapped your neck. \n");


                        Room1();




                    }






                }


                else if (choice == "2")


                {

                    //final room

                    Room5();




                }

                //final room

                static void Room5()


                {

                    Console.WriteLine("There seems to be a trap room with 2 options to live");


                    Console.WriteLine("1.Run to the left . \n" + "2.Run to the right. \n");


                    string choice = Console.ReadLine().ToLower();


                    if (choice == "1")

                    {

                        Console.WriteLine("The spikes are shooting up and the wall is srinking do you");

                        Console.WriteLine("1.stay to the left side and lay on the floor and hope . \n" + "2.Run to the right side and lay there instead. \n");


                        if (choice == "1")

                        {

                            Console.WriteLine("Well done you have won the game");

                            Room1();



                            

                        }

                        else if (choice == "2")

                        {

                            Console.WriteLine("You should have stayed and now you are dead");

                            Room1();

                        }

                    }

                    else if (choice == "2")

                    {

                        Console.WriteLine("You have died");

                        Room1();


                    }









                }






            }


            else if (choice == "2")




            {   //Room8




                Console.WriteLine("You have 350 gold");




                Console.WriteLine("1.upgrade sword to level 2 ($150) . \n" + "2.upgrade Bow to level 2 ($100) . \n");




                string choice5 = Console.ReadLine().ToLower();




                if (choice == "1")




                {




                    // choice 1




                    Console.WriteLine("You now have sword level 2 .You have $200. \n");




                }




                else if (choice == "2")




                {




                    // choice 2




                    Console.WriteLine("You now have Bow level 2 . You have $250. \n");










                }












            }




        }




        static void Main(string[] args)




        {




            _Init();




            while (isRunning == true)




            {




                StartMenu();




            }




        }




    }




}

Thursday, February 23, 2023

MeetMat Challenge

 My MeetMat model (SquidGame)

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/squidgame%20(1).spp?csf=1&web=1&e=0iOdPN



For my meetmat model i went for the guards in squid game as they have a very easy and simple colour base to them

I started off by adding all the body parts like head, body and stand into its own folder for easier access and to make it look more neater then i added the base colours so black, white and red then i black/white masked them so i could do a specific area which i used the poly grid to allow me to choose exactly what areas i wanted with what colour i wanted and then once i was done with the base colours i used some extra effects like dirt and scratches with plastic to make a gloss look but to to shiny but enough to make it look like a jumpsuit and used the edges damage to make to look worn or old

3D Maya SpaceShip V2

 3D maya Spaceship V2

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/SpaceShipV2%20(1).mb?csf=1&web=1&e=MTgGKn



This is my spaceship V2 which has some similar properties like the sharp front but now there is only 1 booster but is more powerful with still a great distance to it, i also changed the wings so they are much bigger to make it more of the ship i wanted where it will scan its surroundings, then i added spikes for combat for things ahead of it to ram through it with its speed, next it has a spike at the bottom which is more of a motion sensor to make sure you could land or if you are too  close to the ground.

I also added some small finer details like a kind of shark fin to the top just to add some cooler look to the ship just for a better feel

I used the extrude tool

mesh(e.g. combine)

The mesh tools(e.g. connect, multi-cut)

The edit mesh tools(e.g. extrude, bevel tool)

The mesh display tools(e.g. soften/sharpen tool)

the rendering tool for the colour and sharpening


3D Maya SpaceShip V1

 My first design on my spaceship

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/SpaceShip.mb?csf=1&web=1&e=cLGP2p






This was my first design for my spaceship which has a sharp front for better acceleration lots of booster at the back and top for landing i also adding some lighting and some colour to make the ship look more better and show where everything is better.

I used the extrude tool

mesh(e.g. combine)

The mesh tools(e.g. connect, multi-cut)

The edit mesh tools(e.g. extrude, bevel tool)

The mesh display tools(e.g. soften/sharpen tool)

the rendering tool for the colour and sharpening

3D Maya Bracelet

 3D Maya Bracelet

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/CoolStuff.mb?csf=1&web=1&e=R8cKOO

This model start as me using the mash tool to see what i could make and was able to make lots of cool models but, this looked the best and looks like a bracelet therefore me keeping it and adding some finishing touches to it to make it look better.

For this model i used the MASH tool to make the shape circle around itself then i sharpened/softened the edges to give it a better look overall. This model has many shapes inside it like cubes, spheres cones and a torus therefore the poly count is high as they are all used in this one bracelet.

Low Poly Barrel

Low Poly Barrel

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/Low%20Poly%20Barrel.mb?csf=1&web=1&e=F73wig 


The low poly barrels was also a pretty easy model except the little grey barrier around the barrel as i had a few attempt where some was sized to big or the shape was odd but the cylinder was used to make the overall whole model with mostly the extrude tool being more useful in this model 

I used tools from the Deform tools and Mesh Edit Mesh and Mesh Display

I did reduce the poly count of the shape at the start 

Used the lattice tool

soften/harden edges tool

transform tool

Chamfer Vertices 

Combine tool

Connect tool

Extrude

3D Maya Low Poly Fence

Low Poly Fence

 https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/Low%20Poly%20Fence.mb?csf=1&web=1&e=QPV4NT


The fence was quite a difficult but great model as it has some better and finer details like the broken pieces of wood and the nails however, this came with more difficult uses on the chamfer vertices and some deform tools like the lattice tool which give the little broken pieces of wood and the chamfer vertices helped to bend the wood to give it a more realistic look

I used tools from the Deform tools and Mesh Edit Mesh and Mesh Display

I did reduce the poly count of the shape at the start 

Used the lattice tool

soften/harden edges tool

transform tool

Chamfer Vertices 

Combine tool

Connect tool

Extrude

3D Low Poly Rock

 Low Poly Rock

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/3D%20Maya/Low%20Poly%20Rock.mb?csf=1&web=1&e=S1QTD0


The low poly rocks were more easier as the were just circles that
are just edged more expanded, shrunk and have sharper edges that some others making this 3d model much more easier that some of the others and shown in the picture is the rocks together and apart

I used tools from the Deform tools and Mesh Edit Mesh and Mesh Display

I did reduce the poly count of the shape at the start 

Used the lattice tool

soften/harden edges tool

transform tool

Chamfer Vertices 

Combine tool

Connect tool

Extrude


3D Low poly tree

Low Poly Tree

 https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/Low%20Poly%20Tree.mb?csf=1&web=1&e=oWVTdk


I used tools from the Deform tools and Mesh Edit Mesh and Mesh Display

I did reduce the poly count of the shape at the start 

Used the lattice tool

soften/harden edges tool

transform tool

Chamfer Vertices 

Combine tool

Connect tool

Extrude

Difficulties was the chamfer vertices as it would often make my actual tree part fizz out and look too spiky i overcame this by reducing the amount of chamfers 

Substance Painter DeadPool

This is my deadpool meetmat model

 For this to be easier for me as used each body part like head body etc and put them into its own folder to make for an easier way to design it without adding to the wrong part

i used a grid system to allow me paint only what i wanted to be painted then i would paint the best i could to make it look like deadpool added white/black masks with some dirt effects on the face with scratches

3D Maya Energy sword

Energy sword

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/Swords02.mb?csf=1&web=1&e=NJESSZ





3D Maya Doom

 Doom sword

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/Swords02.mb?csf=1&web=1&e=NJESSZ



This is my semi doom sword and i used the connect tool to connect some deleted pieces together then i also used the extrude tool to try and make the correct edges and the sword

Difficulties currently is some extra spikes on the handle of the sword and on the actual blade of the sword

3d Maya Lightsaber

 Lightsaber

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/Swords02.mb?csf=1&web=1&e=NJESSZ



For the Lightsaber i used the connect and extrude tool again for the handle design to make it look like obi-wans lightsaber as best as i can


The Difficulties was the lightsaber beam part of make the curve at the top of the saber instead of just a spike

Tuesday, February 21, 2023

Programming a Combat Cycle

 



using System;

 

public class CombatCycle
{
    private int _playerHealth;
    private int _enemyHealth;
    private bool _isPlayerTurn;
    
    public CombatCycle(int playerHealth, int enemyHealth)
    {
        _playerHealth = playerHealth;
        _enemyHealth = enemyHealth;
        _isPlayerTurn = true;
    }
    
    public void StartCombat()
    {
        while (_playerHealth > 0 && _enemyHealth > 0)
        {
            if (_isPlayerTurn)
            {
                Console.WriteLine("Player's turn.");
                Console.WriteLine("Choose an action:");
                Console.WriteLine("1. Attack");
                Console.WriteLine("2. Defend");
                int choice = int.Parse(Console.ReadLine());
                if (choice == 1)
                {
                    int damage = RollDice(6);
                    Console.WriteLine($"Player attacks and deals {damage} damage to the enemy.");
                    _enemyHealth -= damage;
                }
                else if (choice == 2)
                {
                    Console.WriteLine("Player defends and takes no damage this turn.");
                }
                _isPlayerTurn = false;
            }
            else
            {
                Console.WriteLine("Enemy's turn.");
                int damage = RollDice(6);
                Console.WriteLine($"Enemy attacks and deals {damage} damage to the player.");
                _playerHealth -= damage;
                _isPlayerTurn = true;
            }
            Console.WriteLine($"Player health: {_playerHealth}");
            Console.WriteLine($"Enemy health: {_enemyHealth}");
        }
        if (_playerHealth <= 0)
        {
            Console.WriteLine("Player has been defeated!");
        }
        else if (_enemyHealth <= 0)
        {
            Console.WriteLine("Enemy has been defeated!");
        }
    }
    
    private int RollDice(int sides)
    {
        Random random = new Random();
        return random.Next(1, sides + 1);
    }
}

 

class Program
{
    static void Main(string[] args)
    {
        CombatCycle combat = new CombatCycle(20, 20);
        combat.StartCombat();
    }
}

TextBasedAdventure Predesign

 My design for my actual textbbasedadventure game



Monday, February 20, 2023

Weapon Modeling Challenge

 This is my weapon model which is a sword from a game called Halo

which has a Energy Sword shown bellow which s what I wanted to choose



For my model I used the extrude tool to make the actual sword pieces with its different length and size. Then I used the soften/Harden tool to give it the sharp edges around the sword part and soften the handle.

Weapons for the lightsabers and doom sword

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r/personal/40185484_hcuc_ac_uk/Documents/Swords02.mb?csf=1&web=1&e=NJESSZ





Sunday, February 19, 2023

MiniGame2

 This minigame 2 will be a dodge minigame where the player has to avoid touching the falling objects before the timer runs out to win the game

This is just the gameplay for the game of how the game works as the tiles fall you dodge them simple.

This is the step event programming for how the tile drops straight down then destroys itself 

Difficulties: finding out how to make the walls fall straight and not fall sideways or randomly start moving around the place instead of its one way path

This is the create event programming for the bad wall with just some properties of what it will have e.g hsp and vsp.

Friday, February 3, 2023

TextBasedAdventure

 My current text for my textbasedadventure game currently in progress



https://uxbridgecollegeacuk-my.sharepoint.com/:t:/g/personal/40185484_hcuc_ac_uk/EQwqklqSsGZGv3n3GMGCdIwBqSsc8Pof94tpWHFROWg6mA


using System;
using System.Collections.Generic;
using System.Linq;
namespace textbasedgame
{
    class Program
    {
        static bool isRunning;
        static List<string> Inventory = new List<string>();

 

        public struct Entity
        {
            public int health;
        }

 

        static Entity player = new Entity();
        static Entity ogre = new Entity();

 

        static void _Init()
        {
            isRunning = true;

 


            player.health = 15;
            ogre.health = 10;
        }
        static void StartMenu()
        {
            Console.WriteLine("Welcome to the game!\n" + "Select an option:\n" + "1.Start the game \n" + "2. Exit");
            Console.Write(">");
            string choice = Console.ReadLine().ToLower();
            if (choice == "1" || choice == "start")
            {
                Room1();
            }
            else if (choice == "2" || choice == "exit")
            {
                isRunning = false;
            }
            else
            {
                Console.WriteLine("Incorrect Entry! Please press 1 or 2");
            }
        }
        static void Room1()
        {           //Room1
            Console.WriteLine("You a trapped in a dungon eliminate all enemies to get out alive");
            Console.WriteLine("1. Do you go to the right?. \n" + "2. Do you go downwards?. \n");
            Console.Write(">");
            string choice = Console.ReadLine().ToLower();
            if (choice == "1")
            {
                Room2();
            }
            else if (choice == "2")
            {
                // choice //Room 2
                Console.WriteLine("There are two doors ahead of you do you take the left or the right?");
                Console.WriteLine("1.Right. \n" + "2.Left. \n");
                string choice1 = Console.ReadLine().ToLower();
                if (choice == "1")
                {
                    // choice 2
                    Console.WriteLine("You are dead");
                    Room1();
                }
                else if (choice == "2")
                {
                    Room2();
                }
                {
                    // choice 1
                    Console.WriteLine("You Picked Correctly and are in a treasure room with a shop. \n");
                    Console.WriteLine("1.Continue on. \n" + "2. Shop for Items. \n ");

 

                }
            }
        }
        static void Room2()
        {       //Room3
            Console.WriteLine("There are two doors ahead of you do you take the left or the right?");
            Console.WriteLine("1.Right. \n" + "2.Left. \n");
            string choice = Console.ReadLine().ToLower();
            if (choice == "2")
            {
                // choice 1
                Console.WriteLine("You are dead");
                Room1();
            }
            else if (choice == "1")
            {
                // choice 2
                Console.WriteLine("You Picked Correctly and are in a treasure room with a shop. \n");
                Console.WriteLine("1.Continue on. \n" + "2. Shop for Items. \n ");
            }
        }
        static void Room3()
        {        //Room4
            Console.WriteLine("You Picked Correctly and are in a treasure room with a shop. \n");
            Console.WriteLine("1.Continue on. \n" + "2. Shop for Items. \n ");
            string choice = Console.ReadLine().ToLower();
            if (choice == "1")
            {
                //choice 1
                Console.WriteLine("1. Do you go to the right?. \n" + "2. Do you go downwards?. \n");
                string choice4 = Console.ReadLine().ToLower();
                if (choice == "1")
                {
                 Console.WriteLine("You have encountered . \n");

 


                }
            }
            else if (choice == "2")
            {
                Console.WriteLine("You have 350 gold");
                Console.WriteLine("1.upgrade sword to level 2 ($150) . \n" + "2.upgrade Bow to level 2 ($100) . \n");
                string choice5 = Console.ReadLine().ToLower();

 


            }
        }
        static void Main(string[] args)
        {
            _Init();
            while (isRunning == true)
            {
                StartMenu();
            }
        }
    }
}

GameJam afterpost

 My gamejam after post

https://uxbridgecollegeacuk-my.sharepoint.com/:w:/r/personal/40185484_hcuc_ac_uk/Documents/GameJam%20Afterpost.docx?d=we2a1b847bc87472cbb4f1dc96682da1a&csf=1&web=1&e=AoMq5i

This was my gamejam afterpost for my first gamejam which was my robot invasion based game


The main struggle was the animation for my player and some of the enemies in the game although I did not fix this issue I did fix many other issues like the movement as I wanted to used W A S D and not the arrow keys I also added a gun which was to kill the enemies however, I removed this as I also wanted to add many other features along side this like a player and enemy health bar with damage intake depending on the enemy therefore, I removed this to allow my to be able to send a finished product on time





MiniGame1

 My first minigame of game maker is a rope swinging game where it has a sort of spiderman swinging game where you must reach the other side without the timer running out

https://uxbridgecollegeacuk-my.sharepoint.com/:u:/r
/personal/40185484_hcuc_ac_uk/Documents/WarioWare_Engine_V005MartialG1.yyz?csf=1&web=1&e=5Z1u2o

This is the menu for the game with sort of theme going to it.
This is the map for the game with things to swing onto to get to the other side to win
This was the script for the approach command to be able to let approach become a working command with an error


This is the create event for my player with extra values for my swinging code





All of the code seen above is the step event which has how I made the swinging code work with an actual web thing that will attach to an object like a wall once the player has clicked onto the wall and the webs will disappear once clicked onto a different wall.

3D Maya Themed Diorama

This is my themed diorama work I did a campsite kind of thing with a caravan, a tent, bushes, rocks, trees and fences. I wanted to this mode...