Advertisement
Guest User

CS2D Mapping Tutorial: Part II

a guest
Dec 14th, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 8.44 KB | None | 0 0
  1. <div class="c3">
  2.     <div class="rc">
  3.         <h1>Tutorial: Mapping</h1>
  4.         <h2>Parts</h2>
  5.         <h3>Beginner</h3>
  6.         <ul class="ulink">
  7.             <li><a href="help_mapping.php?part=1">Part I: The Map Editor</a></li>
  8.             <li><a href="help_mapping.php?part=2">Part II: My First Map</a></li>
  9.             <li><a href="help_mapping.php?part=3">Part III: Mapping Guidelines</a></li>
  10.         </ul>
  11.         <h3>Advanced</h3>
  12.         <ul class="ulink">
  13.             <li><a href="help_mapping.php?part=4">Part IV: The Trigger System</a></li>
  14.             <li><a href="help_mapping.php?part=5">Part V: Doors and Bridges</a></li>
  15.         </ul>
  16.     </div>
  17.     <div class="spacer"></div>
  18.     <div class="rc">
  19.         <h1>Mapping - Part II: My First Map</h1>
  20.         Okay! Now let us start with our first map!
  21.         <ul class="udo">
  22.             <li>Start CS2D</li>
  23.             <li>Click the 'Editor'-button</li>
  24.         </ul>
  25.         Again you'll see the editor with a new blank map! That's the point where many mappers simply start to place tiles on the map - which is NOT a good idea!
  26.         <br>Of course you can do it and it will work but you did not specify a size or a tileset or a background for your map! The size is very important so you should do that first:
  27.         <ul class="udo">
  28.             <li>Click the 'New Map'-button</li>
  29.         </ul>
  30.         This opens the following menu! (Don't be confused! I changed the values on the following screen!)
  31.         <br><img src="img/tut/mapping09.jpg" style="padding:5px;">
  32.         <br>Selecting the right size is important for the minimap. Your minimap will look pretty stupid when you have large unused areas in your map! Moreover it's a waste of space and memory to make a map bigger than necessary!
  33.         <br>Our first map will be pretty small. We use a 10x10 tiles map with scrolling water as background and the 'aztec.bmp' tileset.
  34.         <br>
  35.         <ul class="udo">
  36.             <li>Enter 10x10 as size</li>
  37.             <li>Click the 'Tileset'-field and select 'aztec.bmp'</li>
  38.             <li>Click the 'Background Image'-field and select 'water1.jpg'</li>
  39.             <li>Enter 1x1 for scrolling speed</li>
  40.             <li>Check the 'Scroll background like tiles'-checkbox</li>
  41.         </ul>
  42.         Note that the size is defined in tiles. One screen (640x480) can display a map area of 20x15 tiles (640/32 x 480/32)!
  43.         <br>'Tileset' and 'Background Image' are both simple image files. A tileset has to be selected but the background image is not necessary.
  44.         <br>You can also select a background color. This color is only visible if you do not use a background image. The default background color is black.
  45.         <br>
  46.         <br>Moreover there are some scrolling options. They allow you to scroll your background image. Of course it doesn't make sense to enter something here when you do not even use a background image!
  47.         <br>The two numbers define how fast and in which direction your background will be scrolled:
  48.         <br>1. Value: X axis for horizontal scrolling. Positive values: scroll to the right, negative values: scroll to the left
  49.         <br>2. Value: Y axis for vertical scrolling. Positive values: scroll to downwards, negative values: scroll upwards
  50.         <br>
  51.         <br>The checkbox 'Scroll background like tiles' connects the backgrounds with the tiles. This means your background will be scrolled as well when you scroll the map.
  52.         <br>Hint: It's hard to see the difference with a scrolling background in the editor so you should test this option in-game at the next opportunity!
  53.         <br>
  54.         <br>Enough about these settings! Let's click 'Create' to generate a new map!
  55.         <ul class="udo">
  56.             <li>Click the 'Create'-button</li>
  57.         </ul>
  58.         You should now see something like that:
  59.         <img src="img/tut/mapping10.jpg" style="padding:5px;">
  60.         <br>Note that there is a new background (which scrolls!) and that the tileset has changed! You also have a very tiny minimap now.
  61.         <br>The area without grid is 'outside' your map. You can't set tiles in this area but you are allowed to create entities there.
  62.         <br>
  63.         <br>Let's scroll to the center!
  64.         <br>
  65.         <ul class="udo">
  66.             <li>Use the arrow keys or W/A/S/D to scroll to the center of your map</li>
  67.             <li><b>OR</b> Try to click at the center of your map</li>
  68.         </ul>
  69.         You should now see the whole map surrounded by water without grid! If not: Try again and make sure that your map has a size of 10x10 tiles!
  70.         <br>
  71.         <br>Now we will set our first tiles!
  72.         <ul class="udo">
  73.             <li>Click the 'Edit Tiles'-button</li>
  74.             <li>Click at 'Tile #1, Wall' in the tiles list</li>
  75.             <li>Click the 'Draw Tile by Tile'-button (Pen Tool)</li>
  76.         </ul>
  77.         Hint: Point at a tile in the list for a short while to see it's number + it's properties!
  78.         <br>
  79.         <br>Now Draw a row of tiles as you can see it on the screen! Keep one tile free at each border. You should do that on each map. It avoids problems with map shadows and makes your minimap look better!
  80.         <br>
  81.         <ul class="udo">
  82.             <li>Click + Drag in the map area to draw the tile</li>
  83.         </ul>
  84.         <img src="img/tut/mapping11.jpg" style="float:left; padding:5px;">
  85.         <br>That's how it should look like!
  86.         <br>
  87.         <br>Did it work? If you 'painted' a wrong tile:
  88.         <br>Rightclick a tile without wall to select this tile and afterwards correct wrong tiles by left-clicking them!
  89.         <br>
  90.         <br>
  91.         <br>It's not that easy to draw rectangles with the pen tools. Therefore we have the rectangle tool. It works this way: 1. click: define the first point/corner of the rectangle
  92.         <br>2. click: define the second point/corner of the rectangle
  93.         <br>
  94.         <br>The rectangle will be created in the area between those two points. You can cancel the process with a right click.
  95.         <br>After setting the first point you will see the size of the rectangle at the top of the screen. Moreover the area which will be changed is highlighted.
  96.         <br>
  97.         <br>We will now test the rectangle tool! Use it to create the missing three walls!
  98.         <br>
  99.         <br>
  100.         <ul class="udo">
  101.             <li>Click the 'Draw Rect of Tiles'-button (Rectangle Tool)</li>
  102.             <li>Draw the three missing walls with 3 rectangles</li>
  103.         </ul>
  104.         <div align="center">
  105.             <img src="img/tut/mapping12.jpg" style="padding:5px;">
  106.         </div>
  107.         Does your map look like the one on the screen? Good job!
  108.         <br>Note that you see your big rectangle on the minimap as well!
  109.         <br>
  110.         <br>Two tools used. One tool left! Select the fill tool and a floor tile and afterwards fill the area in our rectangle!
  111.         <br>
  112.         <ul class="udo">
  113.             <li>Click the 'Fill Area with Tiles'-button (Fill Tool)</li>
  114.             <li>Click at 'Tile #16, Floor - Step' in the tiles list</li>
  115.             <li>Click into the center of your map to fill it!</li>
  116.         </ul>
  117.         This is what your result should look like:
  118.         <br>
  119.         <div align="center">
  120.             <img src="img/tut/mapping13.jpg" style="padding:5px;">
  121.         </div>
  122.         <br>This is the principle of setting tiles. It's really easy as you see!
  123.         <br>
  124.         <br>However we are not ready yet! CS2D can't work with this map because it does not know where to spawn players!
  125.         <br>That's the point where we have to take a look at entities! Entities are used to specify certain places and areas or to put cool stuff and effects in a map.
  126.         <br>
  127.         <ul class="udo">
  128.             <li>Click the 'Edit Entities'-button (light bulb)</li>
  129.         </ul>
  130.         You will now see a long list of entities. For our map we just need two of them: Info_T and Info_CT! They are used to tell CS2D where it can spawn players.
  131.         <br>You can set as many of these both entities as you like - but be careful: You should place them on floor tiles inside your map only!
  132.         <br>
  133.         <ul class="udo">
  134.             <li>Click at 'Info_T'</li>
  135.             <li>Click into the top left corner of your map with a floor tile</li>
  136.         </ul>
  137.         That's our spawn for the bad guys! We also need some police forces to fight against them:
  138.         <ul class="udo">
  139.             <li>Click at 'Info_CT'</li>
  140.             <li>Click into the bottom right corner of your map with a floor tile</li>
  141.         </ul>
  142.         Now we created both spawns. Congratulations! Our first map is ready and functional!
  143.         <br>Note: If you point at one of the spawns you will see a yellow highlighted area. This area is buy zone where you can buy stuff!
  144.         <br>
  145.         <div align="center">
  146.             <img src="img/tut/mapping14.jpg" style="padding:5px;">
  147.         </div>All you need to do now is to save your map!
  148.         <ul class="udo">
  149.             <li>Click the 'Save Map'-button (ATTENTION: SAVE! NOT LOAD!)</li>
  150.             <li>Enter a name like 'dm_myfirstmap'</li>
  151.             <li>Click the 'Save'-button</li>
  152.         </ul>
  153.         Done! Your map has now been saved and can be tested! Have much fun playing it!
  154.         <br>Hint: Use the prefix 'dm_' for 'Deathmatch' if your map does not contain a special goal (bombspot/hostages/VIP/flags etc.)!
  155.         <br>
  156.         <a href="help_mapping.php?part=3">Continue!</a>
  157.     </div>
  158. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement