Lineal-GameBase

Link to repository on GitHub

Investigation project

Hello everyone. In this blog entry I want to share with you my research project that I did during the first quarter of the degree Cross-platform application development major. It is a linear game made with the Java console, that is, a game that runs in the terminal and has no graphics or sound.

¿Qué es un juego lineal?

Profesor Layton

A linear game is one that has a predefined story and that the player must follow without be able to change it or choose other options. For example, graphic adventure games or Narrative games are usually linear, since the single player can advance through the scenes that the developer has created.

In my case, I wanted to create a linear game with the Java console because it seemed like a challenge. interesting and a way to practice the programming concepts you learned during the cursor Also, I really like the science fiction genre and wanted to create a story set in a dystopian future.

How does the Project work?

The project consists of several scenarios connected to each other by means of commands that the player must enter into the console. Each scenario has a description and options possible to interact with it. The player can move from one scenario to another by following directions given or exploring on your own.

The objective of the project was to create an Inventory for the player, as well as move between scenarios and store items in the scenarios. in short accounts create the mechanics of a future project

What technologies have I used?

bundabergnow.com

To develop this Project I have used 100% Java, without no external library or framework. I have used the basic language classes like String, Scanner or ArrayList to handle the game data. I have also used concepts like inheritance, polymorphism or exceptions to better organize the code and avoid errors.

I have divided the code into several classes according to their function: a main class (Main) that contains the main method and is responsible for starting the game; a Game class that manages the game logic; a Scenario class that represents each location Where does the action develop; an Items class that represents each item with which you can interact; and a Controller class that interprets what the player inputs into the console among other.

I have followed good programming practices like comment code, use meaningful names for variables and methods, indent correctly or use constants to avoid magic numbers.