This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2d_games [2023/02/03 18:01] – justin | 2d_games [2023/02/03 22:17] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Although RPG in a Box is primarily for creating 3D games, you can also create games that have a 2D appearance by making use of several different features. The Kenney Tiny Dungeon project template that comes with RPG in a Box is set up in this way and is a great reference | + | Although RPG in a Box is primarily for creating 3D games, you can also create games that have a 2D appearance by making use of several different features. The Kenney Tiny Dungeon project template that comes with RPG in a Box is set up in this way and is a great reference |
=====Camera===== | =====Camera===== | ||
- | Open the [[Game Configuration]] dialog and go to the **Gameplay** section. From the **Camera** tab, choose " | + | To set up the camera for a 2D game, open the [[Game Configuration]] dialog and go to the **Gameplay** section. From the **Camera** tab, choose " |
You'll also want to disable the **Allow Rotation** setting by toggling it off. This will prevent the player from rotating the camera. Optionally, you can also disable zooming and tweak the default zoom amount if you want your camera to remain at a fixed distance from the scene. | You'll also want to disable the **Allow Rotation** setting by toggling it off. This will prevent the player from rotating the camera. Optionally, you can also disable zooming and tweak the default zoom amount if you want your camera to remain at a fixed distance from the scene. | ||
Line 12: | Line 12: | ||
=====Tiles and Objects===== | =====Tiles and Objects===== | ||
- | When creating [[tile|tiles]] and [[object|objects]] for your game, keep in mind that they' | + | When creating [[tile|tiles]] and [[object|objects]] for your game, keep in mind that they' |
- | {{:2d_game_tile.png? | + | {{:2d_game_tile_front.png? |
- | (Top-Down camera | + | {{: |
+ | |||
+ | =====Maps===== | ||
+ | You'll build your maps in the [[Map Editor]] in the same way as a 3D game, however it's recommended to use the "Top-Down" | ||
{{: | {{: | ||
=====Characters===== | =====Characters===== | ||
- | (Same with characters, creating | + | Similar to [[tile|tiles]] and [[object|objects]], |
{{: | {{: | ||
- | Enable the " | + | Enable the " |
{{: | {{: | ||
In addition to the " | In addition to the " | ||
+ | |||
+ | {{: | ||
{{: | {{: | ||
Line 36: | Line 41: | ||
Since the camera in a 2D game has no perspective, | Since the camera in a 2D game has no perspective, | ||
- | In the example shown, the wall [[tile|tiles]] in the center are placed at a Z level high enough to allow the player character and their attached weapons to pass underneath without clipping through. In this specific case, the floor [[tile|tiles]] are at a Z level of 0, and the wall [[tile|tiles]] are at a Z level of 3. | + | In the example shown below, the wall [[tile|tiles]] in the center are placed at a Z level high enough to allow the player character and their attached weapons to pass underneath without clipping through. In this specific case, the floor [[tile|tiles]] are at a Z level of 0, and the wall [[tile|tiles]] are at a Z level of 3. |
{{: | {{: | ||
~~NOTOC~~ | ~~NOTOC~~ |