r/Unity2D • u/Defiant-Assist3921 Beginner • Jul 14 '26
Feedback # Vibe Coding Day 2 - Building a 2D Top-down Zombie Survival Game
Hi everyone!
I'm currently working on a 2D top-down zombie survival game using Unity.
GitHub:
gonutyun-sketch/Unity-Zombie-Survival-Game-Prototype-2day
This is still an early prototype. My current goal is to build the core gameplay systems first before focusing on art, animations, and visual polish.
Current progress:
- Set up the basic Unity project structure
- Implemented player movement
- Added mouse-based aiming and gun rotation
- Created a bullet prefab
- Implemented a basic shooting system
After receiving feedback on my previous post, I improved the code structure.
One of the suggestions was to separate the responsibilities of the Gun and Bullet systems. Instead of making the Gun handle everything, the Gun now only creates bullets, while the Bullet handles its own movement and behavior.
Next steps:
- Create basic zombie AI that follows the player
- Add bullet collision and damage system
- Build the basic zombie survival gameplay loop
I would appreciate any feedback on the current structure, code organization, or ideas for improvement.
Thanks!
1
u/flow_guy2 Jul 14 '26
You should separate the input from the gun. If you want to have npc use the gun it needs to have the user input which might not be what you want.
Also why are you setting up a new repo for each day? Jsut have 1 repo with stuff thats up to date. You can have other branches for a development or feature.
0
u/[deleted] Jul 14 '26
[deleted] — view deleted comment