User Tools

Site Tools


create_custom_game_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
create_custom_game_tutorial [2017/10/26 12:18] justincreate_custom_game_tutorial [2017/10/26 13:21] justin
Line 1: Line 1:
-======Creating a Custom Game from Scratch======+======Creating Your Own Game from Scratch======
 ---- ----
  
Line 72: Line 72:
 {{:wiki:select_sand_tile.png?nolink|}} {{:wiki:select_sand_tile.png?nolink|}}
  
-Place some sand [[tile|tiles]] to form a small square as the initial base for the [[map]]. You can toggle the "Randomize Rotation" button on the [[Map Editor]] toolbar when placing [[tile|tiles]] or [[object|objects]] to add variety to the placement, or right-click to rotate the pending resource to a specific angle before placing. Then, place some of the road [[tile|tiles]] down the width of the map and scatter several of the "sand with rock" [[tile|tiles]] around as desired. For more details on the usage of the [[Map Editor]], check out the [[Map Editor]] page.+Place some sand [[tile|tiles]] to form a small square as the initial base for the [[map]]. You can toggle the "Randomize Rotation" button ({{:wiki:arrow_switch.png?nolink|}}) on the [[Map Editor]] toolbar when placing [[tile|tiles]] or [[object|objects]] to add variety to the placement, or right-click to rotate the pending resource to a specific angle before placing. Then, place some of the road [[tile|tiles]] down the width of the map and scatter several of the "sand with rock" [[tile|tiles]] around as desired. For more details on the usage of the [[Map Editor]], check out the [[Map Editor]] page.
  
 {{:wiki:desert_map_place_tiles.png?nolink|}} {{:wiki:desert_map_place_tiles.png?nolink|}}
Line 80: Line 80:
 {{:wiki:cactus_not_passable.png?nolink|}} {{:wiki:cactus_not_passable.png?nolink|}}
  
-Add a bunch of cactuses and a few rocks around the sandy parts of the [[map]], then use the "Save" button ({{:wiki:disk.png?nolink|}}) on the [[Map Editor]] toolbar to save the [[map]]. To achieve the appearance of the desert below, I also went into the [[Map Properties]] panel and made a few [[lighting]] adjustments. I chose a dark grey for the [[ambient light]] color and a bright yellow for the [[directional light]] color. Shadows were also enabled under the [[directional light]] section. Don't be afraid to experiment! The lighting can make a lot of difference in the visual style of your [[map]].+Add a bunch of cactuses and a few rocks around the sandy parts of the [[map]], then use the "Save" button ({{:wiki:disk.png?nolink|}}) on the [[Map Editor]] toolbar to save the [[map]]. To achieve the appearance of the desert below, I also went into the [[Map Properties]] panel and made a few lighting adjustments. I chose a dark grey for the [[ambient light]] color and a bright yellow for the [[directional light]] color. Shadows were also enabled under the [[directional light]] section. Don't be afraid to experiment! The lighting can make a lot of difference in the visual style of your [[map]].
  
 {{:wiki:desert_map.png?nolink|}} {{:wiki:desert_map.png?nolink|}}
Line 95: Line 95:
 {{:wiki:quad_bike_front.png?nolink|}} {{:wiki:quad_bike_back.png?nolink|}} {{:wiki:quad_bike_front.png?nolink|}} {{:wiki:quad_bike_back.png?nolink|}}
  
-In order to give the appearance of motion when the player is driving around, let's create a simple [[animation]] for the model. Click the "Duplicate Current Frame" button ({{:wiki:duplicate_frame.png?nolink|}}) on the [[animation]] toolbar (located below the 3D view of the [[Voxel Editor]]) four times to create four new frames identical to the original frame. As shown in the four images below, I changed one of the [[voxel|voxels]] in each tire to a lighter color in frames 2 through 5 so the tires will appear to spin. I also made the red brake light at the back of the bike a brighter red in frame 1 so the brake light will appear to come on when the player is stopped.+In order to give the appearance of motion when the player is driving around, let's create a simple [[animation]] for the model. Click the "Duplicate Current Frame" button ({{:wiki:film_duplicate.png?nolink|}}) on the [[animation]] toolbar (located below the 3D view of the [[Voxel Editor]]) four times to create four new frames identical to the original frame. As shown in the four images below, I changed one of the [[voxel|voxels]] in each tire to a lighter color in frames 2 through 5 so the tires will appear to spin. I also made the red brake light at the back of the bike a brighter red in frame 1 so the brake light will appear to come on when the player is stopped.
  
 {{:wiki:duplicate_frame.png?nolink|}} {{:wiki:duplicate_frame.png?nolink|}}
Line 122: Line 122:
 {{:wiki:new_script.png?nolink|}} {{:wiki:new_script.png?nolink|}}
  
-The [[Script Editor]] will open your new [[script]], which initially will only contain a "Start" node. In this guide, we will simply add a [[Load Map]] node to the [[script]]. This function will, as its name implies, load a [[map]]. This is all we will need to get the game started. To do this, double-click on [[Load Map]] in the list to add a node for that function into your [[script]]. It will then appear in the visual script graph. Ensure that the "desert" [[map]] is selected in the "Map Name" dropdown. With this function, you can also specify the starting [[tile coordinate]] that the player will start on as well as the direction the player will be initially facing. You can leave these values as is (unless you happened to have placed a cactus on [[coordinate]] (0,0,0), in which case you'll want to specify a different [[tile]] [[coordinate]]).+The [[Script Editor]] will open your new [[script]], which initially will only contain a "Start" node. In this guide, we will simply add a [[Load Map]] node to the [[script]]. This function will, as its name implies, load a [[map]]. This is all we will need to get the game started. To do this, double-click on [[Load Map]] in the list to add a node for that function into your [[script]]. It will then appear in the visual script graph. Ensure that the "desert" [[map]] is selected in the "Map Name" dropdown. With this function, you can also specify the starting [[tile]] [[coordinate]] that the player will start on as well as the direction the player will be initially facing. You can leave these values as is (unless you happened to have placed a cactus on [[coordinate]] (0,0,0), in which case you'll want to specify a different [[tile]] [[coordinate]]).
  
 {{:wiki:startup_script_load_map_01.png?nolink|}} {{:wiki:startup_script_load_map_01.png?nolink|}}
create_custom_game_tutorial.txt · Last modified: 2017/10/26 14:14 by justin