Deforestation gamedev log
Intro

I like chill games. I feel there is a need for couch multiplayer games
Roadmap
- [x] Movement for 1 player
- [x] Creating sprites (for trees)
- [x] Update sprites and number of logs on trees
- [x] Grow back one log in tree 10sec after cutting: Invoke
Invoke("growTree", Random.Range(10.0f,20.0f));
- [x] Making it a 2 player game
- [x] Adding movement controls for 2 players : Edit > Project Settings > Input Manager
- [x] Adding scores for both players
- [x] Sorting layer to hide player behind trees
- [x] Fixing movement script to fix speed in which player ran in diagonal
void FixedUpdate(){
float moveSpeed = 7;
float horizontalInput = Input.GetAxis("Horizontal");
float verticalInput = Input.GetAxis("Vertical");
// Fix diagonal speed
if(verticalInput!=0 && horizontalInput!=0){
float theta = Mathf.Abs(Mathf.Atan(verticalInput/horizontalInput));
horizontalInput = horizontalInput * Mathf.Cos(theta);
verticalInput = verticalInput * Mathf.Sin(theta);
}
transform.Translate(new Vector3(horizontalInput, verticalInput, 0 ) * moveSpeed * Time.deltaTime);
}
- [ ] Check if the player has been standing on tree for 2sec to cut the tree
- 1. Cutting trees
- 2. Hiding among trees
- 3. (Potential) Swapping logs on contact with another player
- 4. (Potential) Setting traps to steal logs from other players
1. Overcooked style
Goal: Try to beat the game (star mechanic?) with best score possible
Challenge: Game throws environmental challenges
Gameplay:Level based Coop
2. Stealth, skill based
Goal: Try to beat the other player
Challenge: Outwit the other player
Gameplay: Stealth (Hide in the trees) and stealing (Swap) , traps ?
Last Updated: 25-Apr-2021