Sarah is a girl with super powers, trapped in an evil villain's secret complex. In Sarah's run, any surface could potentially be the floor at some point, but there is only one way to escape, you'll have to warp your mind to as well as gravity to figure out how to get there!

Image RSS Feed Latest Screens
Unity Pro trial fancy lighting test RoboSarah Animated RoboSarah Model, Baked Ambient Occlusion
Blog RSS Feed Report abuse Latest News: How I make levels

About Sarah's Run: Escape from Capital Evil with 9 comments by SophieH on Jul 13th, 2010


One of the most frequent questions I get is how I go about making levels for Sarah’s Run, so I shall share!

first of all, there has to be an idea for what I want in the level, either in my head or on paper, making it up as I go is possible but it takes a little while and its very likely I lose my train of thought before I get anywhere. so, have a plan, you can come up with one of these anywhere, I was at a train station yesterday, killing time, when I drew this:


sure it’s messy, but it’s enough that I can recognise what I was going for with it and could get on with the level making once I got back to my PC.

First up, TILES!


I made these and set the texture co-ordinates in Blender a while back, if they are unwrapped at this point it saves time later on when I tweak the texture co-ordinates.

Tiles are pretty sweet for a number of reasons, firstly they are super fast to make levels with, and because I can put them together in Unity itself, I can test the level as I make it really quickly, rather than building the level in another 3D app, and exporting then importing and tweaking settings every time I want to see if a ledge is the right height or a gap is wide enough.

The downside to tiles in unity is that they *can* be very inefficient, especially with how many are in many of the levels in Sarah’s Run, hence why I place them all inside a ‘LevelMesh’ game object that combines all the seperate 3D models for each tile into a single mesh, meaning that whilst I’m testing drawing the level takes only one draw call, and not about 3000 (I had 7000 draw calls per frame sometimes before I decided I should fix that lol)


so what follows is lots of adding, testing, tweaking until the level is playable;
 


So, I can play the level, but it’s not easy to ‘read’. that is, you cant look at the level and quickly see what form the level has, it’s pretty messy. So we need to juice up the graphics a bit with some lighting (the best way to give a 2D image form IMO) and also make the textures more… good :).

So, we export the level and take it into Blender (the export script Iuse is found here for you unity junkies)first up we tidy the mesh and clear out any faces that wont be seen, and also use a more recent texture atlas:


Once that is done, I go around and move the UVs (texture co-ordinates) for different faces so details like the floor borders look right:


So that’s what folks call the ‘diffuse’ (unlit) texture sorted out, but in Sarahs run my environments have both a diffuse texture and a ‘lightmap’ texture that describes the light in the level. so first step for making a lightmap is I put in some meshes I want to act as ‘lights’ set them to emit and get blender to calculate ‘radiosity’. it sounds complicated but mostly I click ‘go’ and play some guitar hero until it’s finished.


once the ‘light’ has been calculated, I ‘bake’ it onto a texture (that means I get one mesh to copy whatever the lighting is on each face to the relevant part of a texture map). you can see the baked texture on the right of this pic:


here’s what the level looks like when we take it back into unity, with both texture working together (after a little tweaking the brightness):


and just adding the deadly floor and the level is complete!


You can also play the level here if you like. This is where I say the level is ‘done’ but that isn’t really the case, if this level was going into the game I would have to make quite a few tweaks, such as offsetting the two ledges, especially if it appears earlier in the game, and I’d need to adjust the size of the gap, how high the electric ceiling is etc. I’d also like to test if it works better as a 2.5D level (like level 5 in the preview) I suspect it would.

Anyway, hope you enjoyed that. :D

Media RSS Feed Latest Video
Post comment Comments  (0 - 10 of 16)
WarHedd
WarHedd Oct 20 2011, 12:47am says:

come on man..i'm always online playing this game.i just want to download it to have forever after im late on internet bills...sarah and her alter ego dressed side are awsome.the speed is good.cartooned perfectly.i enjoy this game alot..make it a download im begging <='D

+1 vote     reply to comment
JohnnyMaverik
JohnnyMaverik Jan 20 2011, 6:12pm says:

For everyone wondering if it's dead or not, apparently not, because a preview build just got released, and can be found here:

Kongregate.com

I guess she just doesn't update the indiedb page anymore, which is a shame but much rather that than a dead project. The preview is pretty cool as well so I definitely recommend giving it a go.

+2 votes     reply to comment
TheUnabridgedGamer
TheUnabridgedGamer Jun 24 2011, 2:38am replied:

Saddening...

I actually was very eager about this game. Looked good.

+1 vote     reply to comment
hermesdavidms
hermesdavidms Nov 24 2010, 7:05pm says:

i hope this project isnt dead,there havent been updates in so long, it was quite cool

+1 vote     reply to comment
TheGameSquid
TheGameSquid Oct 1 2010, 10:30am says:

Looking pretty sweet so far! Definitely tracking!

+1 vote     reply to comment
DaKutzy
DaKutzy Sep 7 2010, 11:47am says:

Is this project dead? I hope it's not.

+1 vote     reply to comment
thunderising
thunderising Jul 11 2010, 8:34am says:

Looks cool, god whats' with the sudden spurt of UNITY based games, and some of them being soo friggin awesome

TRACKING

+2 votes     reply to comment
SophieH
SophieH Jul 12 2010, 11:21am replied:

I think the reason there are more and more unity games is since unity went free last year, since then enough time has passed for word to spread and for folks to get to grips with it, I think we can expect much more too :D

+1 vote     reply to comment
hermesdavidms
hermesdavidms Jun 29 2010, 1:58pm says:

i played the game, its was a lot of fun, i like this kind of games..the controls were smooth, and i loved the possibility to play it with my 360 game pad

level 10 took me quite a while to complete, i definitely would get this game when the full version comes out

+1 vote     reply to comment
Threvlin
Threvlin Jun 23 2010, 1:22am says:

Played the preview, was a ton of fun. Can't wait to see more, though I did get stuck on 10 :D. Will be tracking.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Sarah's Run: Escape from Capital Evil
Platforms
Windows, Mac
Developed By
SophieH
Engine
Unity
Contact
Send Message
Release Date
TBD
Game Watch
Track this game
Share
Style
Genre
Platformer
Theme
Fantasy
Players
Single Player
Project
AAA
Embed Buttons

Promote Sarah's Run: Escape from Capital Evil on your homepage or blog by selecting a button and using the HTML code provided (more).

Sarah's Run: Escape from Capital Evil
Sarah's Run: Escape from Capital Evil
Statistics
Rank
14,014 of 24,101
Last Update
4 years ago
Watchers
97 members
News
2