« Mr.Digi »

Programmer/Developer

Survival Island – Devblog 7

This update brings a overhaul to the tile detection system, and also brings in the first look at a faming system. The farming system brings in alot of things to grow. First things added with this update is: Carrot and Wheat. Watering is not implemented yet, but it will be soon.

New item – Showel

The showel is added to be used for farming, you use the showel to dig a small hole where you place crops. The showel also has another purpose. Using the showel on grass will dig a hole the player can go into. Walking into this hole will generate a underground area where the player can mine stone, coal, metal etc. Currently the hole will not be created, it instead makes a dirtpath for crop holes. Will be changed later when a hoe is added.

Tile checking/detection

This might sound rather confusing, but the tile checking is basicly the check for objects under the placement square. A tile is a square in a grid. Before when the check happened, it would check for a object under the mouse, but it would only take the first item it hit. This led to me having to input each and every placeable item for its own placement rules. And it caused the bug where you could place something if you spammed and moved the mouse at the same time. With the new system, this is no longer possible. Now it takes all items it collides with and store them in a list. If the list is empty, or only contain objects the held item has whitelisted, then you can place.

Farming System

The farming system uses the same placement mechanic as the walls, but its tied to the showel currently. So when you dig, the showel will place farmland. The farmland will check its surroundings and adjust itself accordingly. Currently you can use the showel on farmland to get a crop hole. This will be changed later on. I will add a hoe tool that will be used to plow the ground, then you use the shower on the plowed ground to get a small hole.

New crop – Wheat

Wheat is the first crop added to the game, currently there are no use for wheat. uses for it will be added in funture updates.

New crop – Carrot

The carrot currently only have 1 use, it can be eaten. When its eaten, it will give the player a certain amount of health. Other uses will be added in the future.

New crop – Pumpkin

The pumpkin currently also have 1 use, can be eaten by the player. When eaten, it will give the player a certain amount of health. Other uses will be added in the future.

Bush

The bush is simply a way to currently get wheat seeds. It will be changed later on, but for now the bush will drop 2 wood and 1 wheat seed when destroyed.

Building part – Fence

With the new farming stuff added in this weeks devblog, i also added a fence. The fence it meant to protect crops against wild creatures. Currently creatures are no threat, but i will add a mechanic to enemies and animals that make them target crops if they are within the area. Enemies will attempt to destroy them, and animals will eat them. So be sure to protect your crops with a fence layer.

Smooth Camera

The camera used to be attached to the player, but that also means the camera will be destroyed when the player dies. This is not something that anyone wants. So the camera is no longer attached to the player, and will now instead follow the player smoothly. There is a damping variable on the camera making it now follow the player instantly.

Patch Notes – Devblog 7

Added:

  • Added new item – Showel
  • Added farmland, Use the showel on ground to make a dirt path, use again to make a crop hole.
  • Added crop – Wheat
  • Added crop – Carrot
  • Added crop – Pumpkin
  • Added a bush – Drops wheat seed when destroyed
  • Added new building item – Fence
  • Added smooth camera following

Changed:

  • Changed detection mechanic for tile checking. Is now based of lists instead of single objects.

Removed:

Existing bugs:

  • Skeleton enemy spins when attack animation is playing.

Fixed bugs:

  • Placement bug seemed to have been fixed with the new placement check mechanic.
« Mr.Digi », June 26, 2022

Leave a Reply

Theme made by Mr.Digi