Game
The Wanderer - Bloodbath
6 years ago

https://www.youtube.com/watch?v=HgRg7kU81Cc

The Wanderer : Bloodbath - Map Creation and Character Movement


YouTube
https://www.youtube.com/watch?v=HgRg7kU81Cc
youtube.com

We initially designed the floor as 32px tiles(squares) that seam with themselves and with each other, and when we imported it into Unity we found the tilemap component, which fits perfectly with the tiles.

With the tile palette tool is super easy to paint tiles with a brush, can even change the brush size.

5d091c9ba732c.png

With just 32 unique tiles, we can already create decently sized environments that look ok. And can always add more types of tiles.

From the tilemap, we generate a mesh that we use for the navmesh, which we use for pathinding and AI. We use Unity’s default navmesh that needs a 3d mesh.

“The way I generated the mesh at first, wasn’t very performant.

I started out by finding the position of the tiles in the tilemap, then spawned 1x1 cubes in every position. Then i changed the cubes into planes; that optimized it a lot. About 6 times less vertices.
From there the next step was to merge all the planes into one big mesh. It was still huge for big maps, multiple chunks of over 60k vertices.
I searched for ways to simplify the merged mesh, could hardly find anything but finally came up to this nifty little script:

http://wiki.unity3d.com/index.php/Mesh_simplification_(for_MeshCollider,_lossless)
by Fredrik Ludvigsen

Which after some tweaks reduced the mesh drastically. Now for a huge map the whole mesh is ~6k vertices.

—PPreda, Programmer”

5d091c9c689a6.png

So we made a huge map and tested it out:

5d091c9d24ce0.gif
5d091c9f0cc71.png

We tried maps 10-20 times bigger with no problems. Feels good having almost no restraints.

The characters can rotate in 8 directions, so there are 8 versions for each animation. But its actually 5, we could save some time by mirroring some of them.

That’s it for now, stay tuned!



0 comments

Loading...

Next up

Lurking rat.

Jared, the main character rotations.

[GIF] Jared's default attack animation. This is how you attack when you don't have any weapons equipped.

The rats are taking a stand.

Meet Grom, the dwarf scavenger.

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

Bandana Dee the Dream Friend

Chiaki Nanami!

Shadow The Hedgehog X pixel art

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).