Initial commit

This commit is contained in:
Linus Probert 2017-11-30 21:00:47 +01:00
commit a7d5aa90e1
140 changed files with 1380 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/build/
/tags

3
.vimrc Normal file
View File

@ -0,0 +1,3 @@
nnoremap <F1> :Make -C build --no-print-directory -l<cr>
set makeprg=make\ -C\ build\ --no-print-directory\ -l
let g:syntastic_c_include_dirs = [ 'linkedlist' ]

35
CMakeLists.txt Normal file
View File

@ -0,0 +1,35 @@
cmake_minimum_required (VERSION 3.2.0)
SET(CMAKE_COLOR_MAKEFILE ON)
project(breakhack C)
add_subdirectory(linkedlist)
include_directories(linkedlist)
add_definitions("-Wall")
# PROGRAMS:
add_executable(rpgfight
src/main
src/texture
src/screenresolution
src/sprite
src/util
src/player
)
target_link_libraries(rpgfight
linkedlist
-lSDL2
-lSDL2_image
-lSDL2_mixer
-lSDL2_ttf
-lX11
)
# TESTS:
enable_testing()
add_executable(test_util test/check_util src/util)
target_link_libraries(test_util -lcheck)
add_test(test_util test_util)

22
LICENSE.txt Normal file
View File

@ -0,0 +1,22 @@
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

14
README.md Normal file
View File

@ -0,0 +1,14 @@
Something in the ways of NETHACK
================================
A simple nethack similar game written in C using SDL2.
Idea
----
Randomly generated maps/rooms. Leveling system, permadeath,
multiple classes. Casual and fun for 10-15 minutes during a break
from regular work/play.
I wanted to practice C and I'm comfortable using SDL2. The assets
are graciously taken from the web. More info in the README in the
assets folder.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
assets/Characters/Cat0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
assets/Characters/Cat1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
assets/Characters/Dog0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
assets/Characters/Dog1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
assets/Characters/Misc0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
assets/Characters/Misc1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
assets/Characters/Pest0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
assets/Characters/Pest1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/Commissions/Mage.ase Normal file

Binary file not shown.

BIN
assets/Commissions/Mage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

59
assets/Examples/Blank.tmx Normal file
View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="432"/>
</tileset>
<tileset firstgid="541" name="Floor" tilewidth="16" tileheight="16">
<image source="../Objects/Floor.png" width="336" height="432"/>
</tileset>
<tileset firstgid="1108" name="Pit0" tilewidth="16" tileheight="16">
<image source="../Objects/Pit0.png" width="128" height="352"/>
</tileset>
<tileset firstgid="1284" name="Door0" tilewidth="16" tileheight="16">
<image source="../Objects/Door0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="1324" name="Decor0" tilewidth="16" tileheight="16">
<image source="../Objects/Decor0.png" width="128" height="288"/>
</tileset>
<tileset firstgid="1468" name="Ground0" tilewidth="16" tileheight="16">
<image source="../Objects/Ground0.png" width="128" height="48"/>
</tileset>
<layer name="Tiles" width="20" height="15">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<layer name="Sprites" width="20" height="15">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
</map>

BIN
assets/Examples/Dungeon.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="816"/>
</tileset>
<tileset firstgid="1021" name="Floor" tilewidth="16" tileheight="16">
<image source="../Objects/Floor.png" width="336" height="624"/>
</tileset>
<tileset firstgid="1840" name="Pit0" tilewidth="16" tileheight="16">
<image source="../Objects/Pit0.png" width="128" height="512"/>
</tileset>
<tileset firstgid="2096" name="Door0" tilewidth="16" tileheight="16">
<image source="../Objects/Door0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="2136" name="Decor0" tilewidth="16" tileheight="16">
<image source="../Objects/Decor0.png" width="128" height="352"/>
</tileset>
<tileset firstgid="2312" name="Ground0" tilewidth="16" tileheight="16">
<image source="../Objects/Ground0.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2368" name="Player0" tilewidth="16" tileheight="16">
<image source="../Characters/Player0.png" width="128" height="240"/>
</tileset>
<tileset firstgid="2488" name="Pest0" tilewidth="16" tileheight="16">
<image source="../Characters/Pest0.png" width="128" height="176"/>
</tileset>
<tileset firstgid="2576" name="Rodent0" tilewidth="16" tileheight="16">
<image source="../Characters/Rodent0.png" width="128" height="64"/>
</tileset>
<tileset firstgid="2608" name="Undead0" tilewidth="16" tileheight="16">
<image source="../Characters/Undead0.png" width="128" height="160"/>
</tileset>
<tileset firstgid="2688" name="Money" tilewidth="16" tileheight="16">
<image source="../Items/Money.png" width="128" height="128"/>
</tileset>
<tileset firstgid="2752" name="Chest0" tilewidth="16" tileheight="16">
<image source="../Items/Chest0.png" width="128" height="48"/>
</tileset>
<layer name="Tiles" width="20" height="15">
<data encoding="csv">
1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,1031,
1031,181,182,182,182,182,182,182,182,182,182,182,182,182,182,182,182,183,1031,1031,
1031,201,1210,1211,1211,1211,1212,1232,1235,1236,1236,1236,1236,1236,1236,1236,1212,201,1031,1031,
1031,201,1231,1232,1232,1232,1233,181,182,182,182,182,182,182,182,183,1234,201,1031,1031,
1031,201,1231,1232,1232,1232,1233,223,1031,1031,1031,1031,1031,1031,1031,201,1234,201,1031,1031,
1031,201,1231,1232,1462,1463,1464,381,1031,181,182,182,182,182,182,182,1255,182,183,1031,
1031,201,1252,1253,1483,1484,1506,381,1031,201,1856,1857,1857,1857,1857,1857,1556,1858,201,1031,
1031,221,182,182,363,1506,361,403,1031,201,1864,1865,1865,1865,1865,1865,1556,1866,201,1031,
1031,1031,1031,1031,401,362,403,1031,1031,201,1864,1532,1558,1558,1558,1558,1576,1866,201,1031,
181,182,182,182,182,182,182,183,1031,201,1864,1556,1865,1865,1865,1865,1865,1866,201,1031,
201,1210,1211,1211,1211,1212,1535,201,1031,201,1864,1556,1865,1865,1865,1865,1865,1866,201,1031,
201,1231,1232,1232,1232,1233,1556,201,1031,221,183,1213,181,182,182,182,182,182,223,1031,
201,1252,1253,1253,1253,1254,1556,201,1031,1031,201,1234,201,1031,1031,1031,1031,1031,1031,1031,
221,182,182,182,182,183,1556,201,1031,1031,201,1234,201,1031,1031,1031,1031,1031,1031,1031,
1031,1031,1031,1031,1031,201,1556,201,1031,1031,201,1234,201,1031,1031,1031,1031,1031,1031,1031
</data>
</layer>
<layer name="Sprites" width="20" height="15">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,2200,0,0,0,0,0,0,0,2200,0,0,0,0,0,0,0,
0,0,2317,0,0,0,0,2097,0,0,2147486304,0,0,0,0,0,2317,0,0,0,
0,0,0,2692,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2691,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2147486401,0,2147486154,0,2326,0,0,0,0,2200,0,0,2200,0,2098,0,0,0,
0,0,0,2317,2315,2319,2585,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2592,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,2569,0,0,0,0,0,
0,0,2200,0,2200,0,0,0,0,0,0,2147486041,0,0,0,0,0,0,0,0,
0,2304,0,2208,2166,2113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2147486276,0,0,2117,0,0,0,0,0,2096,0,0,0,0,0,0,0,0,
0,2160,2192,2193,0,2113,0,0,0,0,0,2316,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,2104,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,2147486233,0,0,0,0,0,0,0,0
</data>
</layer>
</map>

BIN
assets/Examples/Ideas.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
assets/Examples/Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

22
assets/Examples/Logo.tmx Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="15" height="12" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="432"/>
</tileset>
<layer name="Tile Layer 1" width="15" height="12">
<data encoding="csv">
121,123,83,83,83,141,83,0,141,83,141,83,141,83,141,
141,161,123,83,121,165,123,0,141,83,141,83,144,123,141,
141,0,141,83,141,0,141,0,141,141,141,83,141,141,141,
141,0,141,83,144,122,146,0,141,141,141,83,141,141,141,
141,121,163,83,141,83,141,0,144,122,146,83,141,161,146,
161,163,83,83,142,83,142,0,142,83,142,83,142,83,142,
381,83,381,83,83,381,83,83,83,361,362,83,381,83,381,
381,83,381,83,361,405,363,83,361,403,83,83,381,361,403,
384,362,386,83,381,83,381,83,381,83,83,83,384,386,83,
381,83,381,83,384,362,386,83,381,83,83,83,381,401,363,
381,83,381,83,381,83,381,83,401,363,83,83,381,83,381,
382,83,382,83,382,83,382,83,83,401,362,83,382,83,382
</data>
</layer>
</map>

BIN
assets/Examples/Mine.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

80
assets/Examples/Mine.tmx Normal file
View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="816"/>
</tileset>
<tileset firstgid="1021" name="Floor" tilewidth="16" tileheight="16">
<image source="../Objects/Floor.png" width="336" height="624"/>
</tileset>
<tileset firstgid="1840" name="Pit0" tilewidth="16" tileheight="16">
<image source="../Objects/Pit0.png" width="128" height="512"/>
</tileset>
<tileset firstgid="2096" name="Door0" tilewidth="16" tileheight="16">
<image source="../Objects/Door0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="2136" name="Decor0" tilewidth="16" tileheight="16">
<image source="../Objects/Decor0.png" width="128" height="352"/>
</tileset>
<tileset firstgid="2312" name="Ground0" tilewidth="16" tileheight="16">
<image source="../Objects/Ground0.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2368" name="Player0" tilewidth="16" tileheight="16">
<image source="../Characters/Player0.png" width="128" height="240"/>
</tileset>
<tileset firstgid="2488" name="Food" tilewidth="16" tileheight="16">
<image source="../Items/Food.png" width="128" height="96"/>
</tileset>
<tileset firstgid="2536" name="Ore0" tilewidth="16" tileheight="16">
<image source="../Objects/Ore0.png" width="144" height="112"/>
</tileset>
<tileset firstgid="2599" name="Elemental0" tilewidth="16" tileheight="16">
<image source="../Characters/Elemental0.png" width="128" height="176"/>
</tileset>
<tileset firstgid="2687" name="Misc0" tilewidth="16" tileheight="16">
<image source="../Characters/Misc0.png" width="128" height="128"/>
</tileset>
<tileset firstgid="2751" name="LongWep" tilewidth="16" tileheight="16">
<image source="../Items/LongWep.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2807" name="Avian0" tilewidth="16" tileheight="16">
<image source="../Characters/Avian0.png" width="128" height="208"/>
</tileset>
<layer name="Tiles" width="20" height="15">
<data encoding="csv">
10,10,10,361,362,363,1423,381,361,403,1928,1930,401,362,363,10,10,10,10,10,
10,361,362,403,1402,382,1423,401,403,1402,1928,1927,1922,1404,401,362,363,10,10,10,
10,382,1424,1425,1421,1400,1421,1400,1400,1422,1928,1913,1927,1922,1399,1401,381,10,10,10,
1873,1873,1873,1873,1420,1421,1442,1442,1442,1422,1928,1913,1913,1930,1420,1443,381,10,10,10,
1881,1881,1882,1399,1421,1443,361,362,363,1441,1426,1928,1930,1424,1443,361,403,10,10,10,
10,1882,1399,1421,1422,361,403,10,401,362,362,362,362,362,362,403,10,10,10,10,
136,136,1441,1442,1443,175,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
1432,1432,1432,1432,1432,1424,1425,1426,1432,1432,1432,1424,1426,1432,1432,1432,1404,1432,1404,1432,
136,136,136,136,136,136,136,136,1424,1400,1426,135,137,1404,135,136,136,136,136,136,
10,10,10,361,362,362,365,362,363,1423,361,403,155,1430,155,0,0,0,0,0,
10,10,361,403,1399,1400,401,362,403,1423,381,10,155,1430,175,136,136,136,136,136,
361,362,403,1399,1157,1421,1154,1156,1400,1159,381,10,155,1424,1426,1432,1432,1432,1432,1424,
381,1399,1400,1442,1199,1154,1176,1176,1177,1444,381,10,175,136,136,136,136,136,136,136,
403,1420,1443,381,1441,1196,1176,1176,1176,361,403,10,10,10,10,10,10,10,10,10,
1399,1422,361,405,362,362,362,362,362,403,10,10,10,10,10,10,10,10,10,10
</data>
</layer>
<layer name="Sprites" width="20" height="15">
<data encoding="csv">
0,0,0,0,0,0,2316,0,0,2545,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,2895,0,0,2327,0,0,0,0,0,2554,0,0,0,0,
0,0,2327,0,0,0,0,0,2895,0,0,2895,0,0,0,2316,2569,0,0,0,
0,0,0,0,0,2522,0,0,0,0,0,0,0,0,0,2759,2569,0,0,0,
0,0,0,2147485973,0,0,0,0,0,2325,0,0,0,0,2500,0,0,0,0,0,
0,0,2319,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,2147486132,0,0,0,0,0,2568,0,0,0,2554,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,2608,0,0,0,0,0,0,
0,0,0,0,2586,0,0,0,0,0,0,0,2574,0,0,0,0,0,0,0,
0,0,0,0,2166,0,0,0,0,0,2587,0,0,2147486107,0,0,0,2581,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2459,0,0,0,0,
0,2319,0,0,0,0,2331,2488,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,2330,0,2147485979,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
</map>

BIN
assets/Examples/Town.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

77
assets/Examples/Town.tmx Normal file
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="816"/>
</tileset>
<tileset firstgid="1021" name="Floor" tilewidth="16" tileheight="16">
<image source="../Objects/Floor.png" width="336" height="624"/>
</tileset>
<tileset firstgid="1840" name="Pit0" tilewidth="16" tileheight="16">
<image source="../Objects/Pit0.png" width="128" height="512"/>
</tileset>
<tileset firstgid="2096" name="Door0" tilewidth="16" tileheight="16">
<image source="../Objects/Door0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="2136" name="Decor0" tilewidth="16" tileheight="16">
<image source="../Objects/Decor0.png" width="128" height="352"/>
</tileset>
<tileset firstgid="2312" name="Ground0" tilewidth="16" tileheight="16">
<image source="../Objects/Ground0.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2368" name="Player0" tilewidth="16" tileheight="16">
<image source="../Characters/Player0.png" width="128" height="240"/>
</tileset>
<tileset firstgid="2488" name="Tree0" tilewidth="16" tileheight="16">
<image source="../Objects/Tree0.png" width="128" height="528"/>
</tileset>
<tileset firstgid="2752" name="Humanoid0" tilewidth="16" tileheight="16">
<image source="../Characters/Humanoid0.png" width="128" height="432"/>
</tileset>
<tileset firstgid="2968" name="Cat0" tilewidth="16" tileheight="16">
<image source="../Characters/Cat0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="3008" name="Quadraped0" tilewidth="16" tileheight="16">
<image source="../Characters/Quadraped0.png" width="128" height="192"/>
</tileset>
<tileset firstgid="3104" name="Container0" tilewidth="16" tileheight="16">
<image source="../Items/Chest0.png" width="128" height="48"/>
</tileset>
<layer name="Tiles" width="20" height="15">
<data encoding="csv">
1176,1176,1176,1176,1176,1176,1177,1171,1175,1176,1176,1176,1176,1176,1176,1176,1176,1176,1176,1176,
1176,1176,1176,1176,1176,1176,1177,1171,1175,1197,1197,1197,1197,1197,1197,1197,1197,1197,1197,1176,
1176,1176,1176,1176,1176,1176,1177,1171,1178,1421,129,129,129,129,129,129,129,129,1421,1175,
1176,1176,1176,1176,1176,1176,1177,1171,1178,148,1406,1408,1411,1406,1407,1407,1407,1408,148,1175,
1197,1197,1197,1197,1197,1176,1177,1171,1178,148,1448,1450,132,1427,1428,1428,1428,1429,148,1175,
129,129,129,129,1421,1175,1177,1171,1178,1421,129,129,153,1427,1428,1428,1428,1429,148,1196,
1407,1407,1407,1408,148,1175,1177,1171,1175,1155,1155,1156,148,1427,1428,1428,1428,1429,129,129,
1428,1428,1428,1429,148,1175,1177,1171,1175,1176,1176,1177,148,1427,1428,1428,1428,1429,1431,1432,
1428,1428,1428,1429,148,1175,1198,1171,1196,1197,1197,1177,148,1427,1428,1428,1428,1429,128,129,
1449,1449,1449,1450,148,1178,1147,1169,1148,1148,1149,1178,148,1448,1449,1449,1449,1450,148,1154,
129,1411,129,129,1421,1178,1168,1169,1169,1169,1170,1178,1421,129,129,1411,129,129,1421,1175,
1155,1402,1155,1155,1155,1177,1168,1169,1169,1169,1170,1175,1155,1155,1156,1402,1154,1155,1155,1176,
1197,1444,1197,1197,1197,1198,1168,1169,1169,1169,1170,1196,1197,1197,1198,1444,1196,1197,1197,1197,
1148,1148,1148,1173,1173,1173,1190,1169,1169,1169,1190,1173,1173,1173,1173,1148,1148,1148,1148,1148,
1190,1190,1191,1154,1155,1155,1156,1168,1169,1170,1154,1155,1155,1155,1156,1168,1169,1169,1169,1169
</data>
</layer>
<layer name="Sprites" width="20" height="15">
<data encoding="csv">
2497,2497,2498,2504,2505,2506,7,0,7,2147485969,7,2147485969,2313,2147486720,3073,2491,2147485969,2491,2496,2497,
2497,2497,2498,2491,2321,7,2491,0,7,7,2147485969,2147485969,7,2491,7,7,2491,7,2504,2505,
2497,2497,2498,2321,2491,2147485968,7,0,2461,128,7,7,7,7,7,7,7,7,130,2147485969,
2505,2505,2506,7,2321,2491,7,0,7,7,2147486752,7,2097,2164,2147486640,0,2848,2160,7,7,
2491,7,2321,7,2321,7,2147486109,0,7,7,3120,3120,7,2216,2217,2217,2217,2218,7,2147485969,
7,7,7,7,130,7,7,2147486109,2147485969,168,7,7,7,2192,7,2192,2800,2147485840,7,7,
2227,7,2849,2225,7,2147485961,7,0,7,2330,2330,2331,7,7,2248,2249,2250,7,7,7,
2217,2217,2217,2218,7,7,2313,0,2147485961,2331,2331,2330,7,7,2256,2257,2258,2832,2097,7,
2252,2252,2252,2253,7,2491,7,0,7,2147485961,2491,2491,7,2195,2264,2265,2266,2147485843,7,7,
2268,2268,2268,2269,7,2321,0,0,0,0,0,7,7,2196,2147485843,7,2195,2196,7,2491,
7,2096,7,2186,170,7,0,7,2305,7,2826,7,168,2185,7,2096,7,2185,170,2147485961,
2334,0,2334,2147485968,2491,7,0,7,7,2827,0,3050,7,7,2332,0,2332,2491,7,7,
0,0,0,0,7,2147485968,0,2147486472,7,7,0,7,2177,7,2320,0,7,7,2147485969,7,
0,0,0,2147486018,0,0,0,0,0,0,0,0,0,2460,0,0,0,0,7,7,
0,0,0,0,2491,2491,7,0,2374,0,2491,7,2491,7,7,0,0,0,2825,0
</data>
</layer>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="16" tileheight="16">
<tileset firstgid="1" name="Wall" tilewidth="16" tileheight="16">
<image source="../Objects/Wall.png" width="320" height="816"/>
</tileset>
<tileset firstgid="1021" name="Floor" tilewidth="16" tileheight="16">
<image source="../Objects/Floor.png" width="336" height="624"/>
</tileset>
<tileset firstgid="1840" name="Pit0" tilewidth="16" tileheight="16">
<image source="../Objects/Pit0.png" width="128" height="512"/>
</tileset>
<tileset firstgid="2096" name="Door0" tilewidth="16" tileheight="16">
<image source="../Objects/Door0.png" width="128" height="80"/>
</tileset>
<tileset firstgid="2136" name="Decor0" tilewidth="16" tileheight="16">
<image source="../Objects/Decor0.png" width="128" height="352"/>
</tileset>
<tileset firstgid="2312" name="Ground0" tilewidth="16" tileheight="16">
<image source="../Objects/Ground0.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2368" name="Player0" tilewidth="16" tileheight="16">
<image source="../Characters/Player0.png" width="128" height="240"/>
</tileset>
<tileset firstgid="2488" name="Tile" tilewidth="16" tileheight="16">
<image source="../Objects/Tile.png" width="128" height="64"/>
</tileset>
<tileset firstgid="2520" name="Demon0" tilewidth="16" tileheight="16">
<image source="../Characters/Demon0.png" width="128" height="144"/>
</tileset>
<tileset firstgid="2592" name="Dog0" tilewidth="16" tileheight="16">
<image source="../Characters/Dog0.png" width="128" height="112"/>
</tileset>
<tileset firstgid="2648" name="Tree0" tilewidth="16" tileheight="16">
<image source="../Objects/Tree0.png" width="128" height="528"/>
</tileset>
<tileset firstgid="2912" name="Money" tilewidth="16" tileheight="16">
<image source="../Items/Money.png" width="128" height="128"/>
</tileset>
<tileset firstgid="2976" name="Book" tilewidth="16" tileheight="16">
<image source="../Items/Book.png" width="128" height="144"/>
</tileset>
<tileset firstgid="3048" name="Amulet" tilewidth="16" tileheight="16">
<image source="../Items/Amulet.png" width="128" height="48"/>
</tileset>
<tileset firstgid="3072" name="Elemental0" tilewidth="16" tileheight="16">
<image source="../Characters/Elemental0.png" width="128" height="176"/>
</tileset>
<tileset firstgid="3160" name="Pest0" tilewidth="16" tileheight="16">
<image source="../Characters/Pest0.png" width="128" height="176"/>
</tileset>
<tileset firstgid="3248" name="Chest0" tilewidth="16" tileheight="16">
<image source="../Items/Chest0.png" width="128" height="48"/>
</tileset>
<tileset firstgid="3272" name="Fence" tilewidth="16" tileheight="16">
<image source="../Objects/Fence.png" width="128" height="192"/>
</tileset>
<layer name="Tiles" width="20" height="15">
<data encoding="csv">
10,261,1234,261,241,285,285,285,285,285,285,285,285,285,285,243,261,1234,261,10,
10,261,1234,261,261,1273,1274,1299,1299,1299,1299,1299,1299,1274,1275,261,261,1234,261,10,
10,261,1234,261,261,1294,262,1210,1211,1211,1211,1211,1212,262,1296,261,261,1234,261,10,
10,261,1234,281,283,1294,1296,1231,1232,1232,1232,1232,1233,1294,1296,281,283,1234,261,10,
285,283,1234,1298,1299,1316,262,1231,1232,1232,1232,1232,1233,262,1316,1299,1300,1234,281,285,
1236,1236,1253,1236,1236,1236,1236,1253,1253,1232,1232,1253,1253,1236,1236,1236,1236,1253,1236,1236,
285,243,1273,1274,1274,1274,1275,2048,2050,1231,1233,2048,2050,1273,1274,1274,1274,1275,241,285,
10,261,1315,1316,1295,1316,1317,2056,2058,1231,1233,2056,2058,1315,1316,1295,1316,1317,261,10,
10,281,285,285,1316,285,285,2056,2055,2049,2049,2053,2058,285,285,1316,285,285,283,10,
375,376,1462,1463,1463,1463,1464,2056,2058,1231,1233,2056,2058,1462,1463,1463,1464,376,377,10,
395,1462,1484,1484,1484,1484,1485,2056,2058,1231,1233,2056,2058,1483,1484,1484,1484,1485,395,10,
417,1504,1505,1484,1484,1484,1485,2056,2058,1231,1233,2056,2058,1483,1484,1484,1506,375,417,10,
2049,2049,2050,1504,1505,1505,1506,2056,2058,1231,1233,2056,2058,1483,1484,1485,375,400,10,10,
2057,2057,2055,2049,2049,2049,2049,2053,2055,2049,1233,2056,2058,1483,1484,1485,415,419,377,10,
2057,2057,2057,2057,2058,1462,1464,2056,2058,1231,1233,2056,2058,1483,1484,1484,1463,1464,415,376
</data>
</layer>
<layer name="Sprites" width="20" height="15">
<data encoding="csv">
0,0,0,0,0,0,2201,0,2200,0,0,2200,0,2201,0,0,0,0,0,0,
0,0,2147486722,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,2147486897,0,0,2920,2924,2916,2913,0,0,3251,0,0,0,0,0,
0,0,2106,2200,0,0,0,2920,2922,2147486713,3040,2924,2925,0,0,0,2200,2104,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,2105,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2105,0,
0,0,0,0,0,0,0,0,0,2147486282,0,0,0,0,0,0,3114,0,0,0,
0,0,0,2147486746,0,0,0,0,0,0,2633,0,0,0,0,0,0,0,0,0,
0,0,0,2200,3321,2200,0,0,0,2512,2512,0,0,0,2200,3321,2200,0,0,0,
0,0,2943,2318,0,0,2655,0,0,0,0,0,0,0,2319,0,2147485975,0,0,0,
0,2655,0,2276,2273,2282,0,0,0,0,0,0,0,0,3106,0,0,2147486303,0,0,
0,2930,0,2147486177,0,0,0,0,0,0,2467,0,0,0,0,2655,0,0,0,0,
0,0,0,0,2147486179,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,2147486842,0,0,0,0,0,0,0,0,0,0,0,0,2147486303,2147486201,0,0,0,0,
0,0,0,0,0,2147486303,0,0,0,0,0,0,0,2318,0,0,2147486202,2553,0,0
</data>
</layer>
</map>

BIN
assets/GUI/GUI0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
assets/GUI/GUI1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
assets/GUI/SDS_6x6.ttf Normal file

Binary file not shown.

BIN
assets/GUI/SDS_8x8.ttf Normal file

Binary file not shown.

BIN
assets/Items/Ammo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
assets/Items/Amulet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
assets/Items/Armor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
assets/Items/Book.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
assets/Items/Boot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/Items/Chest0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/Items/Chest1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/Items/Flesh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
assets/Items/Food.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
assets/Items/Glove.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/Items/Hat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
assets/Items/Key.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

BIN
assets/Items/Light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
assets/Items/LongWep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
assets/Items/MedWep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/Items/Money.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
assets/Items/Music.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/Items/Potion.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
assets/Items/Ring.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
assets/Items/Rock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/Items/Scroll.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
assets/Items/Shield.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/Items/ShortWep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
assets/Items/Tool.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
assets/Items/Wand.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
assets/Objects/Decor0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
assets/Objects/Decor1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
assets/Objects/Door0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Some files were not shown because too many files have changed in this diff Show More