From d73faf0f47553e00662cbdb31c506cd122211971 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 19 Feb 2022 15:16:08 +0200 Subject: Renamed mundus blog post folder name and updated titles on pages --- src/blog/mundus-first-game/basic-concepts.md | 98 --------------------- src/blog/mundus-first-game/img/boulder-tile.png | Bin 4339 -> 0 bytes src/blog/mundus-first-game/img/crafting-window.png | Bin 11154 -> 0 bytes src/blog/mundus-first-game/img/create-new-game.png | Bin 22621 -> 0 bytes src/blog/mundus-first-game/img/grass-tile.png | Bin 4339 -> 0 bytes src/blog/mundus-first-game/img/inventory-menu.png | Bin 2005727 -> 0 bytes src/blog/mundus-first-game/img/main-screen.png | Bin 11826 -> 0 bytes src/blog/mundus-first-game/img/map-menu.png | Bin 2008267 -> 0 bytes .../img/placeholder-grass-tile.jpg | Bin 2759 -> 0 bytes .../img/placeholder-rock-tile.jpg | Bin 2527 -> 0 bytes .../mundus-first-game/img/small-game-window.png | Bin 1181600 -> 0 bytes src/blog/mundus-first-game/img/tree-tile.png | Bin 4339 -> 0 bytes src/blog/mundus-first-game/index.md | 1 - src/blog/mundus-first-game/introduction.md | 50 ----------- src/blog/mundus-first-game/timeline.md | 63 ------------- src/blog/mundus-first-game/user-interface.md | 97 -------------------- .../mundus-first-shot-at-gamedev/basic-concepts.md | 98 +++++++++++++++++++++ .../img/boulder-tile.png | Bin 0 -> 4339 bytes .../img/crafting-window.png | Bin 0 -> 11154 bytes .../img/create-new-game.png | Bin 0 -> 22621 bytes .../img/grass-tile.png | Bin 0 -> 4339 bytes .../img/inventory-menu.png | Bin 0 -> 2005727 bytes .../img/main-screen.png | Bin 0 -> 11826 bytes .../mundus-first-shot-at-gamedev/img/map-menu.png | Bin 0 -> 2008267 bytes .../img/placeholder-grass-tile.jpg | Bin 0 -> 2759 bytes .../img/placeholder-rock-tile.jpg | Bin 0 -> 2527 bytes .../img/small-game-window.png | Bin 0 -> 1181600 bytes .../mundus-first-shot-at-gamedev/img/tree-tile.png | Bin 0 -> 4339 bytes src/blog/mundus-first-shot-at-gamedev/index.md | 1 + .../mundus-first-shot-at-gamedev/introduction.md | 50 +++++++++++ src/blog/mundus-first-shot-at-gamedev/timeline.md | 63 +++++++++++++ .../mundus-first-shot-at-gamedev/user-interface.md | 97 ++++++++++++++++++++ 32 files changed, 309 insertions(+), 309 deletions(-) delete mode 100644 src/blog/mundus-first-game/basic-concepts.md delete mode 100644 src/blog/mundus-first-game/img/boulder-tile.png delete mode 100644 src/blog/mundus-first-game/img/crafting-window.png delete mode 100644 src/blog/mundus-first-game/img/create-new-game.png delete mode 100644 src/blog/mundus-first-game/img/grass-tile.png delete mode 100644 src/blog/mundus-first-game/img/inventory-menu.png delete mode 100644 src/blog/mundus-first-game/img/main-screen.png delete mode 100644 src/blog/mundus-first-game/img/map-menu.png delete mode 100644 src/blog/mundus-first-game/img/placeholder-grass-tile.jpg delete mode 100644 src/blog/mundus-first-game/img/placeholder-rock-tile.jpg delete mode 100644 src/blog/mundus-first-game/img/small-game-window.png delete mode 100644 src/blog/mundus-first-game/img/tree-tile.png delete mode 120000 src/blog/mundus-first-game/index.md delete mode 100644 src/blog/mundus-first-game/introduction.md delete mode 100644 src/blog/mundus-first-game/timeline.md delete mode 100644 src/blog/mundus-first-game/user-interface.md create mode 100644 src/blog/mundus-first-shot-at-gamedev/basic-concepts.md create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/boulder-tile.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/crafting-window.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/create-new-game.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/grass-tile.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/inventory-menu.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/main-screen.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/map-menu.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/placeholder-grass-tile.jpg create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/placeholder-rock-tile.jpg create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/small-game-window.png create mode 100644 src/blog/mundus-first-shot-at-gamedev/img/tree-tile.png create mode 120000 src/blog/mundus-first-shot-at-gamedev/index.md create mode 100644 src/blog/mundus-first-shot-at-gamedev/introduction.md create mode 100644 src/blog/mundus-first-shot-at-gamedev/timeline.md create mode 100644 src/blog/mundus-first-shot-at-gamedev/user-interface.md (limited to 'src') diff --git a/src/blog/mundus-first-game/basic-concepts.md b/src/blog/mundus-first-game/basic-concepts.md deleted file mode 100644 index 2e8ea00..0000000 --- a/src/blog/mundus-first-game/basic-concepts.md +++ /dev/null @@ -1,98 +0,0 @@ -# Basic Concepts - Mundus - -[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/basic-concepts.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) -
- -## [*Due for rework*](/rework.html) -
- -**Created: 21 May 2020** || **Edited: 25 November 2020** - -[`<<`](./introduction.html) || [`< User Interface`](./user-interface.html) - ---- - -Even though the game is quite unfinished, there are still a fair bit of mechanics I've developed. - -## Contents -
- -1. [Tiles](#Tiles) -2. [Layers and superlayers](#Layers%20and%20superlayers) -3. [Inventory](#Inventory) -4. [Crafting](#Crafting) -5. [Event logs](#Event%20logs) - -## Tiles -[![🔗](/img/link-tabler.svg)](#Tiles) - -The in game world (map) is composed of squares, called tiles. Everything is a type of tile. There are two main categories of tiles: items and mobs. Mobs (mobile object for short) are the creatures in the game, while items are everything else, from the tools, to the trees. - -There is only one type of mob tile and that is `MobTiles`. All mobs, with the exception of the player, have the same functionality and properties: - -- health - if it drops to or below 0, they die - -- defence - reduces or completely negates certain amounts of damage - -- inventory - -- random movement qualifier - used for randomized movement around the world (does not apply to the player) - -- item that is dropped upon death - -- the superlayer they are currently in - -Items, however, are divided into: - -- Material tiles: primary used for crafting. Some of them are "consumable", meaning they can be consumed by the mob, which removes them from the inventory and changes a property of the mob. In your inventory they are surrounded in orange. - -- Gear tiles: something you equip (in your accessories and gear inventories) that modifies properties of the mob. In your inventory they are surrounded in purple. None are implemented. - -- Ground tiles: the tiles on the superlayer ground, like the grass tile. Mobs and structure tiles reside on top of them. They also separate the superlayers. - -- Structure tiles: tiles that can be placed in the world, like a tree. Some of them can be picked up, like a ladder, but most drop a different item each time they take damage. In your inventory they are surrounded in red. - -- Tool tiles: used for interacting (changing) the environment of the world. In your inventory they are surrounded in blue. There are four types, depending on their capabilities: - - - Shovels: you dig up (remove) ground tiles from ground layer - - - Axes: used to break (remove) wooden structures (trees, ladders, ...) - - - Pickaxes: used for breaking (removing) structures made from hard materials (rocks, boulders, ...) - - - Swords: used for damaging (killing) mobs - -## Layers and superlayers -[![🔗](/img/link-tabler.svg)](#Layers%20and%20superlayers) - -The in game world (map) is composed of superlayers. Superlayers represent each elevation level in the world. Conceptually, there are in total 5 superlayers: Space, Sky, Land, Underground and ???, although only Sky, Land and Underground are implemented. - -Each superlayer is composed of 3 layers: Structure, Mob and Ground. Each one of them contains a specific type of tiles, meaning structure tiles are only stored in "structure" layer, ground tiles only in "ground" layer and mob tiles only in "mob" layer. Even though, they are different layers, there are some rules for the interaction between them: - -- **Mobs cannot be on top of structures**, except if the structure is marked as "walkable" - -- **Structures cannot be placed on top of mobs**. "Walkable" structures can be placed below a mob. - -- **Structures cannot be placed on top of holes** (empty spots in the ground layer), **except if they are "climable"**, in which case they will be placed in the structure layer on the superlayer below. Mobs also cannot reside on top of holes (they fall to the superlayer below) - -## Inventory -[![🔗](/img/link-tabler.svg)](#Inventory) - -Each mob can store certain amount of item tiles. That is done in it's inventory. The inventory is comprised of 4 parts: - -- Hotbar: a place for having access to a small amount of items at all times. It can contain all item tiles, except groundtiles - -- Items: used for bulk storage, it can hold any type of item tile and is the largest part of the inventory - -- Accessories and Gear: used only for storing gear tiles - -## Crafting -[![🔗](/img/link-tabler.svg)](#Crafting) - -Creating new item tiles is done through crafting. Each craftable item requires one to five different materials in different quantities. The item tiles must be inside the "items" part of your inventory. - -## Event logs -[![🔗](/img/link-tabler.svg)](#Event%20logs) - -Certain actions you do in the game are stored in memory as messages (logs). They are also used to give you information that you couldn't get otherwise, for example, there is a log when you can't climb up a superlayer because a mob is blocking the way, or when you damage/kill a structure or mob. - diff --git a/src/blog/mundus-first-game/img/boulder-tile.png b/src/blog/mundus-first-game/img/boulder-tile.png deleted file mode 100644 index a5db10a..0000000 Binary files a/src/blog/mundus-first-game/img/boulder-tile.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/crafting-window.png b/src/blog/mundus-first-game/img/crafting-window.png deleted file mode 100644 index 61a7127..0000000 Binary files a/src/blog/mundus-first-game/img/crafting-window.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/create-new-game.png b/src/blog/mundus-first-game/img/create-new-game.png deleted file mode 100644 index fe8d672..0000000 Binary files a/src/blog/mundus-first-game/img/create-new-game.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/grass-tile.png b/src/blog/mundus-first-game/img/grass-tile.png deleted file mode 100644 index 06c38dd..0000000 Binary files a/src/blog/mundus-first-game/img/grass-tile.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/inventory-menu.png b/src/blog/mundus-first-game/img/inventory-menu.png deleted file mode 100644 index 297d408..0000000 Binary files a/src/blog/mundus-first-game/img/inventory-menu.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/main-screen.png b/src/blog/mundus-first-game/img/main-screen.png deleted file mode 100644 index bcf13c5..0000000 Binary files a/src/blog/mundus-first-game/img/main-screen.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/map-menu.png b/src/blog/mundus-first-game/img/map-menu.png deleted file mode 100644 index f640abb..0000000 Binary files a/src/blog/mundus-first-game/img/map-menu.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/placeholder-grass-tile.jpg b/src/blog/mundus-first-game/img/placeholder-grass-tile.jpg deleted file mode 100644 index 3a6baf0..0000000 Binary files a/src/blog/mundus-first-game/img/placeholder-grass-tile.jpg and /dev/null differ diff --git a/src/blog/mundus-first-game/img/placeholder-rock-tile.jpg b/src/blog/mundus-first-game/img/placeholder-rock-tile.jpg deleted file mode 100644 index 408b522..0000000 Binary files a/src/blog/mundus-first-game/img/placeholder-rock-tile.jpg and /dev/null differ diff --git a/src/blog/mundus-first-game/img/small-game-window.png b/src/blog/mundus-first-game/img/small-game-window.png deleted file mode 100644 index 8af9885..0000000 Binary files a/src/blog/mundus-first-game/img/small-game-window.png and /dev/null differ diff --git a/src/blog/mundus-first-game/img/tree-tile.png b/src/blog/mundus-first-game/img/tree-tile.png deleted file mode 100644 index fcfcadd..0000000 Binary files a/src/blog/mundus-first-game/img/tree-tile.png and /dev/null differ diff --git a/src/blog/mundus-first-game/index.md b/src/blog/mundus-first-game/index.md deleted file mode 120000 index 3caa883..0000000 --- a/src/blog/mundus-first-game/index.md +++ /dev/null @@ -1 +0,0 @@ -introduction.md \ No newline at end of file diff --git a/src/blog/mundus-first-game/introduction.md b/src/blog/mundus-first-game/introduction.md deleted file mode 100644 index 7f6e41d..0000000 --- a/src/blog/mundus-first-game/introduction.md +++ /dev/null @@ -1,50 +0,0 @@ -# Introduction - Mundus: My first shot at game development - -[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/introduction.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) -
-**Created: 20 May 2020** || **Edited: 18 February 2022** - -[`Timeline >`](./timeline.html) - ---- - -I have been toying with the idea of making a game ever since my first exposure to programming. The [earliest piece of code]() I ever wrote was about replicating a [computer boot up sequence]() from the video game [SOMA](). I developed it in 2015, solid 3 years before my first proper introduction to software development. - -Five years later, in early 2020, I had to make a project for an exam. I (initially) had about a month to complete it and the only requirements were technical: utilize a database with at least x tables, employ a specific design pattern, etc. Fairly quickly I decided upon making a "minecraftian" game: 2D sandbox where you could fight, craft, build, eat and explore. - -I called it [Mundus]() and it took me around 3 months to complete and consisted of more than 2000 lines of code. Although these metrics aren't very impressive in the real world, they were a monumental achievement for me. In the beginning I planned on developing it into a fully fledged game, but that never happened. - -Nevertheless, this journey was very important to me, hence writing this multi-page article. - -**Link to the source code**: [GitLab](https://gitlab.com/Syndamia/Mundus) - -## Contents -
- -[*Due for rework*](/rework.html) - -1. [Timeline](./timeline.html) -2. [User Interface](./user-interface.html) - 1. [Main screen](./user-interface.html#Main%20screen) - 2. [Create new game](./user-interface.html#Create%20new%20game) - 3. [Game Window](./user-interface.html#Game%20Window) - 4. [Map menu](./user-interface.html#Map%20menu) - 5. [Inventory menu](./user-interface.html#Inventory%20menu) - 6. [Crafting menu](./user-interface.html#Crafting%20menu) -3. [Basic Concepts](./basic-concepts.html) - 1. [Tiles](./basic-concepts.html#Tiles) - 2. [Layers and superlayers](./basic-concepts.html#Layers%20and%20superlayers) - 3. [Inventory](./basic-concepts.html#Inventory) - 4. [Crafting](./basic-concepts.html#Crafting) - 5. [Event logs](./basic-concepts.html#Event%20logs) - -## Screenshots -[![🔗](/img/link-tabler.svg)](#Screenshots) - -
- - - -
- -*Screenshots are made on Linux Mint Cinnamon with the Mint-Y theme* diff --git a/src/blog/mundus-first-game/timeline.md b/src/blog/mundus-first-game/timeline.md deleted file mode 100644 index 2cb61a2..0000000 --- a/src/blog/mundus-first-game/timeline.md +++ /dev/null @@ -1,63 +0,0 @@ -# History - Mundus - -[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/timeline.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) -
-**Created: 20 May 2020** || **Edited: 19 February 2022** - -[`< Introduction`](./introduction.html) || [`User Interface >`](./user-interface.html) - ---- - -As mentioned, I had big plans for Mundus, so I wanted to make sure it would be well planned. But at the same time, the project took too much energy and I often had holes of no development time. This is an overview of the development "cycle" I went through. - -> ***08.02.2020*** Day 0, Hour 0 - -At this point of time, I was still studying software development in a national program. On this exact day, we had the first lecture of a new module, where it was announced we would have to make a project for the exam. Up until this point of time, our exams constituted of predefined programming exercises for which we would be given a couple of hours to complete and would be checked by an online platform. - -I immediately began brainstorming and by the end of the day, I had decided upon the project I would be developing. - -> ***12.02.2020*** Day 4 - -Before Mundus I had experimented with making games, but mostly in the command line. This time was going to be different. Up until this day, I was only researching and trying out different technologies to make my game with. - -Initially I spent a lot of time with Unity, but the original time constraints and my lack of knowledge with the game engine discouraged me from continuing with it. Subsequently, I got discouraged from using any game engine and settled for `GtkSharp 2.0`. Now, this is widget toolkit, not even close to a game engine, but hey, it was much better than the command line, it was simple and shipped with the IDE I was using at the time. - -This decision proved to have been a mistake down the road, but the clock was ticking and I had no more time to waste. Besides, I also believed that in the end, moving it to something like Unity wouldn't pose too much trouble. - -Finally, it was time to plan the actual game. - -> ***27.02.2020*** Day 19 - -So far I have only done preparation but on this day, I started actual programming. The UI and most of the mechanics were completely sketched. - -Around a week later I also drew the first proper textures for the game world: a [tile of grass](https://gitlab.com/Syndamia/IT-kariera/-/blob/a100f71372496ba89e26fedc520edcefd2442848/Year%202/Software%20development/Mundus/Mundus/Icons/Land/Ground/grass.png) ![](./img/grass-tile.png) and a [tile of grass with a boulder on top](https://gitlab.com/Syndamia/IT-kariera/-/blob/a100f71372496ba89e26fedc520edcefd2442848/Year%202/Software%20development/Mundus/Mundus/Icons/Land/Ground/boulder.png) ![](./img/boulder-tile.png). These replaced the [grass](https://gitlab.com/Syndamia/IT-kariera/-/blob/7b2c8cbc1d6adb874ca6a41f2871ea1950866d70/Year%202/Software%20development/Project/Mundus/Mundus/Views/Icons/Land/Ground/grass.jpg) ![](./img/placeholder-grass-tile.jpg) and [rock](https://gitlab.com/Syndamia/IT-kariera/-/blob/7b2c8cbc1d6adb874ca6a41f2871ea1950866d70/Year%202/Software%20development/Project/Mundus/Mundus/Views/Icons/Land/Ground/rock.jpg) ![](./img/placeholder-rock-tile.jpg) placeholder textures I made on the 29th. - -Concerning the temporary textures, I just drew them in half an hour in GIMP, so I could test out some of the code. - -The proper textures, I believe, turned out fairly well, given that I've never been good at drawing and this is my very first time trying to draw pixel art. There is no magic behind the process, after scouring the internet for pixel art that looked kinda close to what I imagined, I tried to utilize and mix whatever I found fitting and then just messed around for hours. As you can imagine, this wasn't a very efficient process, and it took me around 1-2 days for both textures. - -> ***28.03.2020*** Day 49 - -Slowly and steadily I had been making fine progress, but a lot of issues started to surface. As it turns out, I hadn't thought everything completely through, so I mostly went back to the drawing board. - -But at the very least, I had some important systems in place, like breaking and placing stuff, proper movement through the map and using items. Also, I had drawn my favorite texture from the whole projects: [the tree](https://gitlab.com/Syndamia/Mundus/-/blob/c47a34847e52ef76361394dba2c4f524a56d1b92/Mundus/Icons/Land/Items/tree.png) ![](./img/tree-tile.png). - -> ***06.04.2020*** Day 58 - -Things started to take a turn for the better, I had planned everything I needed to plan and spring break had began. A solid week of no high-school made me more productive than ever. Some days I coded for 8 or even 10 hours straight, from morning to evening. Tools, multiple layers and climbing between them, new items and many bug improvements. - -And then, they extended the break for one more week, the productivity boost could've continued even further, but, alas, I was burned out. The productivity boost, as good as it was, it tired me out very fast. There were still a couple of days with progress, but this time I actually took a break. - -
- -However, remember how they extended the spring break by a week? Well, this was caused by the emergence of the COVID-19 pandemic in Europe and Bulgaria. Subsequently, after the break, we didn't go back to school. Due to the emergent situation, development on Mundus became increasingly sporadic and progress slowed down drastically. At least the exam got pushed back by a month/month and a half. - -
- -> ***23.05.2020*** Day 105 - -Finally, after so much time, and relative amount of hiccups, Mundus was finished. Or at least, finished enough so I could present it on the exam. And this happened just in the nick of time too, the exam date was in 8 days, on the 31st. - -I had done a lot, it had a randomly-ish generated world, it had animals, it had items, you could chop down trees and get branches and craft tools. But, well, you could do everything in about 3 minutes. The systems were in place, and mostly what it lacked was content: much more animals, much more layers, much more items. - -About the exam itself, I got an Excellent 6 grade, the highest possible grade. Even with it's drawbacks, Mundus was jam packed with features and extendability, unlike the other projects. diff --git a/src/blog/mundus-first-game/user-interface.md b/src/blog/mundus-first-game/user-interface.md deleted file mode 100644 index 9009bde..0000000 --- a/src/blog/mundus-first-game/user-interface.md +++ /dev/null @@ -1,97 +0,0 @@ -# User Interface - Mundus - -[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/user-interface.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) -
-**Created: 21 May 2020** || **Edited: 25 November 2020** - -## [*Due for rework*](/rework.html) -
- -[`<<`](./introduction.html) || [`< Timeline`](./timeline.html) || [`Basic Concepts >`](./basic-concepts.html) - ---- - -The user interface shows how unfinished the whole thing is, you can find many unimplemented options and features. Even then, there is a lot you can do. - -A lot of the topics covered are explained in more detail in [Basic Concepts](./basic-concepts.html). - -**Note:** all screenshots are made in Linux Mint Cinnamon with Mint-Y theme. - -## Contents -
- -1. [Main screen](#Main%20screen) -2. [Create new game](#Create%20new%20game) -3. [Game Window](#Game%20Window) -4. [Map menu](#Map%20menu) -5. [Inventory menu](#Inventory%20menu) -6. [Crafting menu](#Crafting%20menu) - -## Main screen -[![🔗](/img/link-tabler.svg)](#Main%20screen) - -![](./img/main-screen.png) - -We start off with the main screen. - -Only the `Create a new game` button is implemented, although the `Settings` one does open a blank window. - -## Create new game -[![🔗](/img/link-tabler.svg)](#Create%20new%20game) - -![](./img/create-new-game.png) - -Creating a game gives you a couple of options: - -`Game Mode` - Survival is the only implemented option, where you start with almost no items and have to gather food and materials. Creative was supposed to be the opposite, giving you access to all items and making you invincible. - -`Difficulty` - Higher the difficulty, the more your energy gets depleted and the less trees, boulders and mobs there are. - -`Screen & Inventory size` - The screen is where you navigate the in game world. The way the user interface works, both are linked. - -`Map size` - Map size (in survival mode) is determined by the Screen & Inventory size, the higher the size, the smaller the map. - -**Note:** all game window screenshots are made with the `Small Game Window`. - -## Game Window -[![🔗](/img/link-tabler.svg)](#Game%20Window) - -![](./img/small-game-window.png) - -After the world is generated, the game window opens. - -At the top you have your (game) screen. Here you interact with the in-game world. Navigation is done by clicking on a place you want to go to. If you want to alter the environment, first click on an item, that can modify the world and click the thing you want to alter. - -Below that is your energy bar. Each mob, including the player, has an energy bar. Each action you do takes energy. If your energy gets depleted, you start taking damage for everything you do. Eating meat from killing mobs is the only way to replenish it. - -Then you have your health. It represents how much life you have. If it drops to zero, you die, although no end screen is developed. - -Underneath that, there is your hotbar. It is a part of your inventory. - -After that, you have the `Event log` button and some of the most recent events. Clicking the button opens a window from which you can checkout everything that has happened. On the sides, you can find the `Map` and `Inv` toggle buttons and the `Pause` and `Music` menu buttons. The `Music` menu can only play and stop WAV files. - -## Map menu -[![🔗](/img/link-tabler.svg)](#Map%20menu) - -![](./img/map-menu.png) - -The Map menu is an extension (to the left) of the normal game window. It cannot be opened at the same time as the inventory menu. - -At the top, you can see the ground layer tiles. Below it you can find the name of the superlayer you're currently in and your coordinates. At the bottom there are the structure layer tiles and `There is a hole above player` field, where you can check whether you are able to ascent a superlayer. - -## Inventory menu -[![🔗](/img/link-tabler.svg)](#Inventory%20menu) - -![](./img/inventory-menu.png) - -The Inventory menu is an extension (to the right) of the normal game window. From here you can store your items, organize them, craft and see information about a given item. - -## Crafting window -[![🔗](/img/link-tabler.svg)](#Crafting%20window) - -![](./img/crafting-window.png) - -Every time you open the crafting menu, it automatically finds all items that you can craft using the items in your "Items inventory". - -At the top it shows you what items and how much of them you need to craft the currently selected item. Below that it shows the item that you can craft and the `Prev` and `Next` buttons for navigating available items to craft. Finally, there is the `Craft` button. Clicking it removes the required items and adds the crafted item to your inventory. - diff --git a/src/blog/mundus-first-shot-at-gamedev/basic-concepts.md b/src/blog/mundus-first-shot-at-gamedev/basic-concepts.md new file mode 100644 index 0000000..2232ac8 --- /dev/null +++ b/src/blog/mundus-first-shot-at-gamedev/basic-concepts.md @@ -0,0 +1,98 @@ +# Basic Concepts - Mundus: My first shot at game development + +[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/basic-concepts.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) +
+ +## [*Due for rework*](/rework.html) +
+ +**Created: 21 May 2020** || **Edited: 25 November 2020** + +[`<<`](./introduction.html) || [`< User Interface`](./user-interface.html) + +--- + +Even though the game is quite unfinished, there are still a fair bit of mechanics I've developed. + +## Contents +
+ +1. [Tiles](#Tiles) +2. [Layers and superlayers](#Layers%20and%20superlayers) +3. [Inventory](#Inventory) +4. [Crafting](#Crafting) +5. [Event logs](#Event%20logs) + +## Tiles +[![🔗](/img/link-tabler.svg)](#Tiles) + +The in game world (map) is composed of squares, called tiles. Everything is a type of tile. There are two main categories of tiles: items and mobs. Mobs (mobile object for short) are the creatures in the game, while items are everything else, from the tools, to the trees. + +There is only one type of mob tile and that is `MobTiles`. All mobs, with the exception of the player, have the same functionality and properties: + +- health - if it drops to or below 0, they die + +- defence - reduces or completely negates certain amounts of damage + +- inventory + +- random movement qualifier - used for randomized movement around the world (does not apply to the player) + +- item that is dropped upon death + +- the superlayer they are currently in + +Items, however, are divided into: + +- Material tiles: primary used for crafting. Some of them are "consumable", meaning they can be consumed by the mob, which removes them from the inventory and changes a property of the mob. In your inventory they are surrounded in orange. + +- Gear tiles: something you equip (in your accessories and gear inventories) that modifies properties of the mob. In your inventory they are surrounded in purple. None are implemented. + +- Ground tiles: the tiles on the superlayer ground, like the grass tile. Mobs and structure tiles reside on top of them. They also separate the superlayers. + +- Structure tiles: tiles that can be placed in the world, like a tree. Some of them can be picked up, like a ladder, but most drop a different item each time they take damage. In your inventory they are surrounded in red. + +- Tool tiles: used for interacting (changing) the environment of the world. In your inventory they are surrounded in blue. There are four types, depending on their capabilities: + + - Shovels: you dig up (remove) ground tiles from ground layer + + - Axes: used to break (remove) wooden structures (trees, ladders, ...) + + - Pickaxes: used for breaking (removing) structures made from hard materials (rocks, boulders, ...) + + - Swords: used for damaging (killing) mobs + +## Layers and superlayers +[![🔗](/img/link-tabler.svg)](#Layers%20and%20superlayers) + +The in game world (map) is composed of superlayers. Superlayers represent each elevation level in the world. Conceptually, there are in total 5 superlayers: Space, Sky, Land, Underground and ???, although only Sky, Land and Underground are implemented. + +Each superlayer is composed of 3 layers: Structure, Mob and Ground. Each one of them contains a specific type of tiles, meaning structure tiles are only stored in "structure" layer, ground tiles only in "ground" layer and mob tiles only in "mob" layer. Even though, they are different layers, there are some rules for the interaction between them: + +- **Mobs cannot be on top of structures**, except if the structure is marked as "walkable" + +- **Structures cannot be placed on top of mobs**. "Walkable" structures can be placed below a mob. + +- **Structures cannot be placed on top of holes** (empty spots in the ground layer), **except if they are "climable"**, in which case they will be placed in the structure layer on the superlayer below. Mobs also cannot reside on top of holes (they fall to the superlayer below) + +## Inventory +[![🔗](/img/link-tabler.svg)](#Inventory) + +Each mob can store certain amount of item tiles. That is done in it's inventory. The inventory is comprised of 4 parts: + +- Hotbar: a place for having access to a small amount of items at all times. It can contain all item tiles, except groundtiles + +- Items: used for bulk storage, it can hold any type of item tile and is the largest part of the inventory + +- Accessories and Gear: used only for storing gear tiles + +## Crafting +[![🔗](/img/link-tabler.svg)](#Crafting) + +Creating new item tiles is done through crafting. Each craftable item requires one to five different materials in different quantities. The item tiles must be inside the "items" part of your inventory. + +## Event logs +[![🔗](/img/link-tabler.svg)](#Event%20logs) + +Certain actions you do in the game are stored in memory as messages (logs). They are also used to give you information that you couldn't get otherwise, for example, there is a log when you can't climb up a superlayer because a mob is blocking the way, or when you damage/kill a structure or mob. + diff --git a/src/blog/mundus-first-shot-at-gamedev/img/boulder-tile.png b/src/blog/mundus-first-shot-at-gamedev/img/boulder-tile.png new file mode 100644 index 0000000..a5db10a Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/boulder-tile.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/crafting-window.png b/src/blog/mundus-first-shot-at-gamedev/img/crafting-window.png new file mode 100644 index 0000000..61a7127 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/crafting-window.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/create-new-game.png b/src/blog/mundus-first-shot-at-gamedev/img/create-new-game.png new file mode 100644 index 0000000..fe8d672 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/create-new-game.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/grass-tile.png b/src/blog/mundus-first-shot-at-gamedev/img/grass-tile.png new file mode 100644 index 0000000..06c38dd Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/grass-tile.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/inventory-menu.png b/src/blog/mundus-first-shot-at-gamedev/img/inventory-menu.png new file mode 100644 index 0000000..297d408 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/inventory-menu.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/main-screen.png b/src/blog/mundus-first-shot-at-gamedev/img/main-screen.png new file mode 100644 index 0000000..bcf13c5 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/main-screen.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/map-menu.png b/src/blog/mundus-first-shot-at-gamedev/img/map-menu.png new file mode 100644 index 0000000..f640abb Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/map-menu.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/placeholder-grass-tile.jpg b/src/blog/mundus-first-shot-at-gamedev/img/placeholder-grass-tile.jpg new file mode 100644 index 0000000..3a6baf0 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/placeholder-grass-tile.jpg differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/placeholder-rock-tile.jpg b/src/blog/mundus-first-shot-at-gamedev/img/placeholder-rock-tile.jpg new file mode 100644 index 0000000..408b522 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/placeholder-rock-tile.jpg differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/small-game-window.png b/src/blog/mundus-first-shot-at-gamedev/img/small-game-window.png new file mode 100644 index 0000000..8af9885 Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/small-game-window.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/img/tree-tile.png b/src/blog/mundus-first-shot-at-gamedev/img/tree-tile.png new file mode 100644 index 0000000..fcfcadd Binary files /dev/null and b/src/blog/mundus-first-shot-at-gamedev/img/tree-tile.png differ diff --git a/src/blog/mundus-first-shot-at-gamedev/index.md b/src/blog/mundus-first-shot-at-gamedev/index.md new file mode 120000 index 0000000..3caa883 --- /dev/null +++ b/src/blog/mundus-first-shot-at-gamedev/index.md @@ -0,0 +1 @@ +introduction.md \ No newline at end of file diff --git a/src/blog/mundus-first-shot-at-gamedev/introduction.md b/src/blog/mundus-first-shot-at-gamedev/introduction.md new file mode 100644 index 0000000..7f6e41d --- /dev/null +++ b/src/blog/mundus-first-shot-at-gamedev/introduction.md @@ -0,0 +1,50 @@ +# Introduction - Mundus: My first shot at game development + +[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/introduction.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) +
+**Created: 20 May 2020** || **Edited: 18 February 2022** + +[`Timeline >`](./timeline.html) + +--- + +I have been toying with the idea of making a game ever since my first exposure to programming. The [earliest piece of code]() I ever wrote was about replicating a [computer boot up sequence]() from the video game [SOMA](). I developed it in 2015, solid 3 years before my first proper introduction to software development. + +Five years later, in early 2020, I had to make a project for an exam. I (initially) had about a month to complete it and the only requirements were technical: utilize a database with at least x tables, employ a specific design pattern, etc. Fairly quickly I decided upon making a "minecraftian" game: 2D sandbox where you could fight, craft, build, eat and explore. + +I called it [Mundus]() and it took me around 3 months to complete and consisted of more than 2000 lines of code. Although these metrics aren't very impressive in the real world, they were a monumental achievement for me. In the beginning I planned on developing it into a fully fledged game, but that never happened. + +Nevertheless, this journey was very important to me, hence writing this multi-page article. + +**Link to the source code**: [GitLab](https://gitlab.com/Syndamia/Mundus) + +## Contents +
+ +[*Due for rework*](/rework.html) + +1. [Timeline](./timeline.html) +2. [User Interface](./user-interface.html) + 1. [Main screen](./user-interface.html#Main%20screen) + 2. [Create new game](./user-interface.html#Create%20new%20game) + 3. [Game Window](./user-interface.html#Game%20Window) + 4. [Map menu](./user-interface.html#Map%20menu) + 5. [Inventory menu](./user-interface.html#Inventory%20menu) + 6. [Crafting menu](./user-interface.html#Crafting%20menu) +3. [Basic Concepts](./basic-concepts.html) + 1. [Tiles](./basic-concepts.html#Tiles) + 2. [Layers and superlayers](./basic-concepts.html#Layers%20and%20superlayers) + 3. [Inventory](./basic-concepts.html#Inventory) + 4. [Crafting](./basic-concepts.html#Crafting) + 5. [Event logs](./basic-concepts.html#Event%20logs) + +## Screenshots +[![🔗](/img/link-tabler.svg)](#Screenshots) + +
+ + + +
+ +*Screenshots are made on Linux Mint Cinnamon with the Mint-Y theme* diff --git a/src/blog/mundus-first-shot-at-gamedev/timeline.md b/src/blog/mundus-first-shot-at-gamedev/timeline.md new file mode 100644 index 0000000..db242c5 --- /dev/null +++ b/src/blog/mundus-first-shot-at-gamedev/timeline.md @@ -0,0 +1,63 @@ +# History - Mundus: My first shot at game development + +[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/timeline.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) +
+**Created: 20 May 2020** || **Edited: 19 February 2022** + +[`< Introduction`](./introduction.html) || [`User Interface >`](./user-interface.html) + +--- + +As mentioned, I had big plans for Mundus, so I wanted to make sure it would be well planned. But at the same time, the project took too much energy and I often had holes of no development time. This is an overview of the development "cycle" I went through. + +> ***08.02.2020*** Day 0, Hour 0 + +At this point of time, I was still studying software development in a national program. On this exact day, we had the first lecture of a new module, where it was announced we would have to make a project for the exam. Up until this point of time, our exams constituted of predefined programming exercises for which we would be given a couple of hours to complete and would be checked by an online platform. + +I immediately began brainstorming and by the end of the day, I had decided upon the project I would be developing. + +> ***12.02.2020*** Day 4 + +Before Mundus I had experimented with making games, but mostly in the command line. This time was going to be different. Up until this day, I was only researching and trying out different technologies to make my game with. + +Initially I spent a lot of time with Unity, but the original time constraints and my lack of knowledge with the game engine discouraged me from continuing with it. Subsequently, I got discouraged from using any game engine and settled for `GtkSharp 2.0`. Now, this is widget toolkit, not even close to a game engine, but hey, it was much better than the command line, it was simple and shipped with the IDE I was using at the time. + +This decision proved to have been a mistake down the road, but the clock was ticking and I had no more time to waste. Besides, I also believed that in the end, moving it to something like Unity wouldn't pose too much trouble. + +Finally, it was time to plan the actual game. + +> ***27.02.2020*** Day 19 + +So far I have only done preparation but on this day, I started actual programming. The UI and most of the mechanics were completely sketched. + +Around a week later I also drew the first proper textures for the game world: a [tile of grass](https://gitlab.com/Syndamia/IT-kariera/-/blob/a100f71372496ba89e26fedc520edcefd2442848/Year%202/Software%20development/Mundus/Mundus/Icons/Land/Ground/grass.png) ![](./img/grass-tile.png) and a [tile of grass with a boulder on top](https://gitlab.com/Syndamia/IT-kariera/-/blob/a100f71372496ba89e26fedc520edcefd2442848/Year%202/Software%20development/Mundus/Mundus/Icons/Land/Ground/boulder.png) ![](./img/boulder-tile.png). These replaced the [grass](https://gitlab.com/Syndamia/IT-kariera/-/blob/7b2c8cbc1d6adb874ca6a41f2871ea1950866d70/Year%202/Software%20development/Project/Mundus/Mundus/Views/Icons/Land/Ground/grass.jpg) ![](./img/placeholder-grass-tile.jpg) and [rock](https://gitlab.com/Syndamia/IT-kariera/-/blob/7b2c8cbc1d6adb874ca6a41f2871ea1950866d70/Year%202/Software%20development/Project/Mundus/Mundus/Views/Icons/Land/Ground/rock.jpg) ![](./img/placeholder-rock-tile.jpg) placeholder textures I made on the 29th. + +Concerning the temporary textures, I just drew them in half an hour in GIMP, so I could test out some of the code. + +The proper textures, I believe, turned out fairly well, given that I've never been good at drawing and this is my very first time trying to draw pixel art. There is no magic behind the process, after scouring the internet for pixel art that looked kinda close to what I imagined, I tried to utilize and mix whatever I found fitting and then just messed around for hours. As you can imagine, this wasn't a very efficient process, and it took me around 1-2 days for both textures. + +> ***28.03.2020*** Day 49 + +Slowly and steadily I had been making fine progress, but a lot of issues started to surface. As it turns out, I hadn't thought everything completely through, so I mostly went back to the drawing board. + +But at the very least, I had some important systems in place, like breaking and placing stuff, proper movement through the map and using items. Also, I had drawn my favorite texture from the whole projects: [the tree](https://gitlab.com/Syndamia/Mundus/-/blob/c47a34847e52ef76361394dba2c4f524a56d1b92/Mundus/Icons/Land/Items/tree.png) ![](./img/tree-tile.png). + +> ***06.04.2020*** Day 58 + +Things started to take a turn for the better, I had planned everything I needed to plan and spring break had began. A solid week of no high-school made me more productive than ever. Some days I coded for 8 or even 10 hours straight, from morning to evening. Tools, multiple layers and climbing between them, new items and many bug improvements. + +And then, they extended the break for one more week, the productivity boost could've continued even further, but, alas, I was burned out. The productivity boost, as good as it was, it tired me out very fast. There were still a couple of days with progress, but this time I actually took a break. + +
+ +However, remember how they extended the spring break by a week? Well, this was caused by the emergence of the COVID-19 pandemic in Europe and Bulgaria. Subsequently, after the break, we didn't go back to school. Due to the emergent situation, development on Mundus became increasingly sporadic and progress slowed down drastically. At least the exam got pushed back by a month/month and a half. + +
+ +> ***23.05.2020*** Day 105 + +Finally, after so much time, and relative amount of hiccups, Mundus was finished. Or at least, finished enough so I could present it on the exam. And this happened just in the nick of time too, the exam date was in 8 days, on the 31st. + +I had done a lot, it had a randomly-ish generated world, it had animals, it had items, you could chop down trees and get branches and craft tools. But, well, you could do everything in about 3 minutes. The systems were in place, and mostly what it lacked was content: much more animals, much more layers, much more items. + +About the exam itself, I got an Excellent 6 grade, the highest possible grade. Even with it's drawbacks, Mundus was jam packed with features and extendability, unlike the other projects. diff --git a/src/blog/mundus-first-shot-at-gamedev/user-interface.md b/src/blog/mundus-first-shot-at-gamedev/user-interface.md new file mode 100644 index 0000000..ee86610 --- /dev/null +++ b/src/blog/mundus-first-shot-at-gamedev/user-interface.md @@ -0,0 +1,97 @@ +# User Interface - Mundus: My first shot at game development + +[**Article Source**](https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/projects/mundus/user-interface.md) || [**GitLab Discussion**](https://gitlab.com/Syndamia/syndamiadotcom/-/issues/1) +
+**Created: 21 May 2020** || **Edited: 25 November 2020** + +## [*Due for rework*](/rework.html) +
+ +[`<<`](./introduction.html) || [`< Timeline`](./timeline.html) || [`Basic Concepts >`](./basic-concepts.html) + +--- + +The user interface shows how unfinished the whole thing is, you can find many unimplemented options and features. Even then, there is a lot you can do. + +A lot of the topics covered are explained in more detail in [Basic Concepts](./basic-concepts.html). + +**Note:** all screenshots are made in Linux Mint Cinnamon with Mint-Y theme. + +## Contents +
+ +1. [Main screen](#Main%20screen) +2. [Create new game](#Create%20new%20game) +3. [Game Window](#Game%20Window) +4. [Map menu](#Map%20menu) +5. [Inventory menu](#Inventory%20menu) +6. [Crafting menu](#Crafting%20menu) + +## Main screen +[![🔗](/img/link-tabler.svg)](#Main%20screen) + +![](./img/main-screen.png) + +We start off with the main screen. + +Only the `Create a new game` button is implemented, although the `Settings` one does open a blank window. + +## Create new game +[![🔗](/img/link-tabler.svg)](#Create%20new%20game) + +![](./img/create-new-game.png) + +Creating a game gives you a couple of options: + +`Game Mode` - Survival is the only implemented option, where you start with almost no items and have to gather food and materials. Creative was supposed to be the opposite, giving you access to all items and making you invincible. + +`Difficulty` - Higher the difficulty, the more your energy gets depleted and the less trees, boulders and mobs there are. + +`Screen & Inventory size` - The screen is where you navigate the in game world. The way the user interface works, both are linked. + +`Map size` - Map size (in survival mode) is determined by the Screen & Inventory size, the higher the size, the smaller the map. + +**Note:** all game window screenshots are made with the `Small Game Window`. + +## Game Window +[![🔗](/img/link-tabler.svg)](#Game%20Window) + +![](./img/small-game-window.png) + +After the world is generated, the game window opens. + +At the top you have your (game) screen. Here you interact with the in-game world. Navigation is done by clicking on a place you want to go to. If you want to alter the environment, first click on an item, that can modify the world and click the thing you want to alter. + +Below that is your energy bar. Each mob, including the player, has an energy bar. Each action you do takes energy. If your energy gets depleted, you start taking damage for everything you do. Eating meat from killing mobs is the only way to replenish it. + +Then you have your health. It represents how much life you have. If it drops to zero, you die, although no end screen is developed. + +Underneath that, there is your hotbar. It is a part of your inventory. + +After that, you have the `Event log` button and some of the most recent events. Clicking the button opens a window from which you can checkout everything that has happened. On the sides, you can find the `Map` and `Inv` toggle buttons and the `Pause` and `Music` menu buttons. The `Music` menu can only play and stop WAV files. + +## Map menu +[![🔗](/img/link-tabler.svg)](#Map%20menu) + +![](./img/map-menu.png) + +The Map menu is an extension (to the left) of the normal game window. It cannot be opened at the same time as the inventory menu. + +At the top, you can see the ground layer tiles. Below it you can find the name of the superlayer you're currently in and your coordinates. At the bottom there are the structure layer tiles and `There is a hole above player` field, where you can check whether you are able to ascent a superlayer. + +## Inventory menu +[![🔗](/img/link-tabler.svg)](#Inventory%20menu) + +![](./img/inventory-menu.png) + +The Inventory menu is an extension (to the right) of the normal game window. From here you can store your items, organize them, craft and see information about a given item. + +## Crafting window +[![🔗](/img/link-tabler.svg)](#Crafting%20window) + +![](./img/crafting-window.png) + +Every time you open the crafting menu, it automatically finds all items that you can craft using the items in your "Items inventory". + +At the top it shows you what items and how much of them you need to craft the currently selected item. Below that it shows the item that you can craft and the `Prev` and `Next` buttons for navigating available items to craft. Finally, there is the `Craft` button. Clicking it removes the required items and adds the crafted item to your inventory. + -- cgit v1.3.1-26-gb76a