Farming Sim banner

Farming Sim

5 devlogs
4h 37m 15s

A farming 2D sim game.

vikram26

This is what i have done so far:

  1. added a new interactive object that is rock you can mine it and get stone from it.
  2. Added a func to collect the wood that falls off after chopping.
    3.added another func t collect stone that falls off after mining(it you look close enough you mine with axe not pickaxe as there is no sprite animation for it)
    4.Added a tree shader which shakes the tree when hit.

I should have made the function common like node manager so i can use the same script again and again now i am just writing the same code for every interactable in the next project i will try to learn and use node manager

Attachment
0
vikram26

Just made these things:

  1. Added tree to the game when chopped drops a log
  2. Made axe hitbox so that when player swing the axe it will collide with tree to deal damage
    3.Updating of player’s axe hitbox to different direction and co-or using the position and offset.

Now need to add a function to pick up the dropped log and add it to inventory.

Attachment
0
vikram26

Just added a door with animation to the game so when ever the player collision collides with the door collision the animation starts to play. This is how it works when player first enters the collision i play the opening animation if the player exits the body of the door i play the closing animation i will await until the animation ends and then i will default it to closed animation which is just a frame.

Attachment
0
vikram26

Just made this map this took so long to make as i animated the water and drew grass using a different method than what i did before it is something called bitmap which allowed me to draw whatever shape i want sometimes a minor adjustments but overall easy to draw.

Attachment
0
vikram26

Added a player and it’s animation so when player moves around the animation will start to play and for now added a collision shape 2d to it a rect covering the entire body maybe in future when adding rest of the map elements i will shrink the shape to fit the lower half so player don’t bump with objects with head.

Attachment
0