Maze game beginner questions

Hello,
I’m currently CS student from Poland (apologies for my English), and I’m working on school project.

I was tasked to design and implement in java game similar to this one - http://www.youtube.com/watch?v=IyCFOMvgsdw

As I’m new in game programming and it’s first time I’m using any graphic/physics engine I’d be very grateful if you’d find time to explain to me whether:

  • maze should be build from walls similar to bricks from “hellophysics” tutorial or is it better to import maze prepared in blender?
  • how to prevent ball from going over the walls?
  • what’s the best way to implement tilting?

Thanks!
Matthew

1 Like

I can answer a few of these, as I’ve made something like this myself.

Create the maze, either in blender, or with a heightmap (others may have better ideas)
Set it to kinematic
Create an invisible layer above the maze (which moves with it), to prevent the ball jumping in the air.
You should move the maze in world rotation (nice beginner math challenge for you there), else it will get all twisted moving it around the local axes.

You will want it to be 1 solid geometry/rigidbody (not like hello physics bricks)

1 Like

Congratulations for your English. You really have no need to apologize for it !
For your questions, I agree totally with wezrule.

I would probably choose the heightmap, because it’s so easy to provide a new level : a simple bitmap will fit. However you need it to be square and a power of 2 (+1).
Plus it has LOD built in, which is nice.

Yep, you are asking exactly the right questions. You are already a long way ahead of some of the people we see asking about similar projects :wink: