The game was created using Unity 3D. The maze itself was built in Blender 2.61 using a textured cube, creating a 16×16 array then cutting out faces for the maze. The maze was then exported using the fbx plugin – took most of the time!

The game movement script is essentially the one that Gabriel Williams describes in his “Unity: Creating a Game in 30mins” tutorial.

Special thanks also to Patrick Boelens for helping me get my head around the scripting process – well at least partially ;-)

You can try the game out here (I know it is not perfect – but it is my first attempt) :

http://www.3dworlds.ca/unity/

Use the arrow keys to move as in Gabriel Williams tutorial.

TY to all at Blender and Unity Cookie.

gryff :)

Discussion

6 Responses to “My First Unity Game”
  1. Posts: 6

    I like the controls; very dungeon crawler. But, the collisions are very flawed. The character wouldn’t stop spinning. I don’t know how you made the walls, but there is something wrong with them.

    #
    1
    Feb 4, 2012 at 1:53 pm
  2. Posts: 31

    TY for the comment Therealnoz.

    And yes, I know there is a problem with the collisions – as I said it is not pefect ;-)

    The walls are imported and as an fbx from Blender and a “mesh collider” is added on import (otherwise you will run right through the walls).

    If you go through Gabriel Williams’s tutorial there was a similar collision problem and I used his “fix” in my game too. Unfortunately that “fix” does not apply to the left-right rotations. I am going to try a couple of “quick fixes” and see if I can create some kind of scripting solution – but need more experience with the script process.

    There is also some “drift” on movement. Again you will see that in Gabriel Williams’s tutorial.

    I will be tinkering that too.

    If anyone has any solutions – please post here. I will be happy to acknowledge contributions.

    gryff :)

    #
    2
    Feb 4, 2012 at 2:14 pm
  3. Posts: 8

    I don’t like the “drift”, it is like walking on ice :-)
    But nice first “game”.

    #
    3
    Feb 4, 2012 at 3:51 pm
  4. Posts: 24

    i also get the spin effect sometimes and havent found out how to fix it so if you find out feel free to pass it on

    #
    4
    Feb 5, 2012 at 5:12 pm
  5. Posts: 3

    Hey, if you walk against the walls you can see trough them, i think you could fix that by using cubes instead.

    #
    5
    Feb 8, 2012 at 10:59 am
    • Posts: 31

      I think I have fixed both that (penetrating the walls) and the spinning. A little more testing and tweaking – hope to publish a second version.

      The reason I want to use an imported mesh is that I want to try and get away from a basic box structure though right now I’m playing with a script to generate the maze.

      cheers

      gryff :)

      #
      5.1
      Feb 8, 2012 at 3:14 pm

Leave a Comment