You are browsing as a guest. Sign up (or log in) to start making projects!

niklas_089

@niklas_089

Joined July 7th, 2026

  • 2Devlogs
  • 2Projects
  • 0Ships
  • 0Votes
15 years old
hobby game dev and photographer from germany
Open comments for this post

9h 4m 56s logged

Driftpocalypse DevLog #002 - Enemy and more

Added:

  1. Enemy
    Added a basic Zombie Enemy that moves towards the player and tries to attack them. It will deal half its current health left as damage, if it contacts the player from in front or if the player is going below a certain speed.

  2. Collision Logic
    When the player and an enemy collide, the code checks whether the player is going fast enough and hitting the enemy from an angle. If either one are not fulfilled, the player takes damage as described earlier and gets significantly slowed down.
    Otherwise if the player is going fast enough and at an appropriate angle the enemy will be catapulted back depending on how fast the player was going. The Enemy will also take damage that is calculated using the following formula I made up on the fly while coding:
    The combined speed of the player and the enemy to the power of 2 multiplied with the magnitude difference between player and enemy all divided by 12.5.
    I do not know why but this formula feels quite intuitive while playing.

  3. Death Logic
    Pretty obvious. If an enemy reaches 0 HP or below it gets deleted (will add death animation in the future). If the player reaches 0 HP the game stops (will add menus later)

  4. Environment
    Added a City Map using free assets from the Unity Asset Store. I will be using it for first testing and later improve for the final level designs.

  5. Drift Tracks
    When you drift, tracks appear under your wheels. They last for a coupe of seconds before disppearing.

  6. Headlights
    Toggleable using the v key. Toggles Point Lights on the front of the car. Added for potential night / fog levels.

  7. Animation
    Animated the wheels actually spinning while driving and gave the enemy a walking animation

Improvements:

  1. Controls
    Improved controls and made them feel smoother, more intuitive and more realistic by adjusting the sideways friction while drifting and making it so drifting has a transition instead of just intantly toggling

  2. Shadows
    Shadows of the player looked erratic and uncontrolled. Fixed by changing Rigidbody interpolation to none.

ToDo for next time:

  1. Add Sounds
    Add Engine sounds, enemy idle, attack and death sounds + collision sounds

  2. Add particle effects
    For drifting, crashing, driving in rain and ramming enemies.

  3. Add rounds, shop and money
    For upgrades between runs, and temporary buffs. Also add general rougelike elements

That will be it for today. Please comment any suggestions/ideas you have. I am always open for feedback.

See you next time :)
-Niklas

0
0
6
Open comments for this post

2h 32m logged

Driftpocalypse DevLog #001 – Basic Car Controls

SETUP:
Since it is the first day I this Project existing, I started by setting up my workspace, organizing my files and adding my free assets from the Unity Asset Store.

IDEA:
My plan was to make a first draft of a script that lets the user controll the car using WASD as well as SPACE to drift. Second plan was to add a first draft of a script that makes the camera follow the player.

ISSUES:
1)
At first I had some issues with the car flying around completly without a chance of trying to control it. Then noticed a part of the Hitbox was glitched into the floor causing the car to be catapulted upwards. Fixed That issue by moving the Car 1 unit upwards in the scene.
2)
While trying to animate the wheels, they were moving in unplanned ways e.g laying parallell to the floor or being mirrorred to have the rims on the inside due to the right hand wheels having been just copied from the left side and flipped. Fixed it by checking whether the wheel being controlled is on the right side and flipping it back if that is the case.

TO DO:
Tomorrow I will start working on a rudementary Zombie AI.

Good Bye! See you in the next DevLog

0
0
32

Followers

Loading…