First of all, I’m really new to Unity.
I’m currently using latest Unity and C#. My goal is make Bomberman at any cost for learn Unity. Currently I made some progress. I uploaded it, you can test. And please answer some problems occurred there.
https://dl.dropboxusercontent.com/u/19063820/bomberman/Builds.html
- Move with WASD and try pass wall. When you try enough, you just strangely float into sky and lose you control, and Sphere (player) will fall to outer area.
- Make bomb with Spacebar while moving. Bomb will always push you their left side. Obviously I don’t want it. But I’ve no idea how to code it correctly.
- Spam your bombs. They also make you lose control and push you away screen. I think it’s because of Rigidbody’s physical effect. But if I remove Rigidbody component, my player passing through walls
- Current map is static drawn. But I want read it from file. ini file contains some symbols for wall, player position, non-destructible walls etc. Where to I start?
- Also If you have some time, please see my code and give some improvement helps
Player control: http://pastebin.com/4vvqPPLz
BombAI: http://pastebin.com/ci85krsB
GameAI (I attached it into main camera, not sure it’s good idea or not): http://pastebin.com/2AaU9xE4
This was the problem for me, adding
– jwaddilovejonesCursor.lockState = CursorLockMode.None;to the pause state of my script unlocked the mouse and fixed the issue.