Compare commits
34 Commits
v0.4
...
e18db352e0
| Author | SHA1 | Date | |
|---|---|---|---|
| e18db352e0 | |||
| 4cf09d1535 | |||
| 48f84d28bd | |||
| eac0236c60 | |||
| afe5b52b6b | |||
| 52d0c182f3 | |||
| 1d9e5ff27d | |||
| 96c0ddf8ed | |||
| 44c9bb0a44 | |||
| c97063e728 | |||
| 5806f7352f | |||
| e517ef62c8 | |||
| 170b245573 | |||
| bc0bd2a4e2 | |||
| 488e603ca5 | |||
| 5f99fe3550 | |||
| d31ab28a12 | |||
| 241c63340c | |||
| f647a225f9 | |||
| 378f27a01e | |||
| 650df9baaf | |||
| b93dc86cb0 | |||
| 4674c3dab2 | |||
| a5c983df9d | |||
| 16b7bcc091 | |||
| e6dad36f3b | |||
| f9482594ea | |||
| 45592f16c3 | |||
| 462a64bb3e | |||
| fcdd2ffd21 | |||
| d5a069b8db | |||
| d9cb7f68e2 | |||
| 5405652f00 | |||
| 6375cc442c |
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
desktop.ini
|
desktop.ini
|
||||||
thumbs.db
|
thumbs.db
|
||||||
bin/*
|
bin/*
|
||||||
|
config.txt
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=6
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=16
|
frame_height=16
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=6
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=16
|
frame_height=16
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=6
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=16
|
frame_height=16
|
||||||
|
|
||||||
|
|||||||
9
data/actors/enemies/manzana.ani
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
frame_width=16
|
||||||
|
frame_height=16
|
||||||
|
|
||||||
|
[animation]
|
||||||
|
name=default
|
||||||
|
speed=8
|
||||||
|
loop=0
|
||||||
|
frames=0,1,2,3,4,5,6,7,8,9,10,11
|
||||||
|
[/animation]
|
||||||
BIN
data/actors/enemies/manzana.png
Normal file
|
After Width: | Height: | Size: 992 B |
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=6
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=16
|
frame_height=16
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=8
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=16
|
frame_height=16
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=1
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=8
|
frame_height=8
|
||||||
|
|
||||||
|
|||||||
8
data/config/config.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fullScreenMode=0
|
||||||
|
windowSize=3
|
||||||
|
filter=FILTER_NEAREST
|
||||||
|
vSync=true
|
||||||
|
integerScale=true
|
||||||
|
keepAspect=true
|
||||||
|
borderEnabled=false
|
||||||
|
borderSize=0.100000
|
||||||
@@ -3,192 +3,192 @@
|
|||||||
# box height
|
# box height
|
||||||
5
|
5
|
||||||
# 32 espacio ( )
|
# 32 espacio ( )
|
||||||
5
|
3
|
||||||
# 33 !
|
# 33 !
|
||||||
5
|
1
|
||||||
# 34 "
|
# 34 "
|
||||||
5
|
3
|
||||||
# 35 #
|
# 35 #
|
||||||
5
|
3
|
||||||
# 36 $
|
# 36 $
|
||||||
5
|
3
|
||||||
# 37 %
|
# 37 %
|
||||||
5
|
3
|
||||||
# 38 &
|
# 38 &
|
||||||
5
|
3
|
||||||
# 39 '
|
# 39 '
|
||||||
5
|
1
|
||||||
# 40 (
|
# 40 (
|
||||||
5
|
2
|
||||||
# 41 )
|
# 41 )
|
||||||
5
|
2
|
||||||
# 42 *
|
# 42 *
|
||||||
5
|
3
|
||||||
# 43 +
|
# 43 +
|
||||||
5
|
3
|
||||||
# 44 ,
|
# 44 ,
|
||||||
5
|
1
|
||||||
# 45 -
|
# 45 -
|
||||||
5
|
3
|
||||||
# 46 .
|
# 46 .
|
||||||
5
|
1
|
||||||
# 47 /
|
# 47 /
|
||||||
5
|
3
|
||||||
# 48 0
|
# 48 0
|
||||||
5
|
3
|
||||||
# 49 1
|
# 49 1
|
||||||
5
|
3
|
||||||
# 50 2
|
# 50 2
|
||||||
5
|
3
|
||||||
# 51 3
|
# 51 3
|
||||||
5
|
3
|
||||||
# 52 4
|
# 52 4
|
||||||
5
|
3
|
||||||
# 53 5
|
# 53 5
|
||||||
5
|
3
|
||||||
# 54 6
|
# 54 6
|
||||||
5
|
3
|
||||||
# 55 7
|
# 55 7
|
||||||
5
|
3
|
||||||
# 56 8
|
# 56 8
|
||||||
5
|
3
|
||||||
# 57 9
|
# 57 9
|
||||||
5
|
3
|
||||||
# 58 :
|
# 58 :
|
||||||
5
|
1
|
||||||
# 59 ;
|
# 59 ;
|
||||||
5
|
1
|
||||||
# 60 <
|
# 60 <
|
||||||
5
|
3
|
||||||
# 61 =
|
# 61 =
|
||||||
5
|
3
|
||||||
# 62 >
|
# 62 >
|
||||||
5
|
3
|
||||||
# 63 ?
|
# 63 ?
|
||||||
5
|
3
|
||||||
# 64 @
|
# 64 @
|
||||||
5
|
3
|
||||||
# 65 A
|
# 65 A
|
||||||
5
|
3
|
||||||
# 66 B
|
# 66 B
|
||||||
5
|
3
|
||||||
# 67 C
|
# 67 C
|
||||||
5
|
3
|
||||||
# 68 D
|
# 68 D
|
||||||
5
|
3
|
||||||
# 69 E
|
# 69 E
|
||||||
5
|
3
|
||||||
# 70 F
|
# 70 F
|
||||||
5
|
3
|
||||||
# 71 G
|
# 71 G
|
||||||
5
|
3
|
||||||
# 72 H
|
# 72 H
|
||||||
5
|
3
|
||||||
# 73 I
|
# 73 I
|
||||||
5
|
3
|
||||||
# 74 J
|
# 74 J
|
||||||
5
|
3
|
||||||
# 75 K
|
# 75 K
|
||||||
5
|
3
|
||||||
# 76 L
|
# 76 L
|
||||||
5
|
3
|
||||||
# 77 M
|
# 77 M
|
||||||
5
|
3
|
||||||
# 78 N
|
# 78 N
|
||||||
5
|
3
|
||||||
# 79 O
|
# 79 O
|
||||||
5
|
3
|
||||||
# 80 P
|
# 80 P
|
||||||
5
|
3
|
||||||
# 81 Q
|
# 81 Q
|
||||||
5
|
3
|
||||||
# 82 R
|
# 82 R
|
||||||
5
|
3
|
||||||
# 83 S
|
# 83 S
|
||||||
5
|
3
|
||||||
# 84 T
|
# 84 T
|
||||||
5
|
3
|
||||||
# 85 U
|
# 85 U
|
||||||
5
|
3
|
||||||
# 86 V
|
# 86 V
|
||||||
5
|
3
|
||||||
# 87 W
|
# 87 W
|
||||||
5
|
3
|
||||||
# 88 X
|
# 88 X
|
||||||
5
|
3
|
||||||
# 89 Y
|
# 89 Y
|
||||||
5
|
3
|
||||||
# 90 Z
|
# 90 Z
|
||||||
5
|
3
|
||||||
# 91 [
|
# 91 [
|
||||||
5
|
2
|
||||||
# 92 \
|
# 92 \
|
||||||
5
|
3
|
||||||
# 93 ]
|
# 93 ]
|
||||||
5
|
2
|
||||||
# 94 ^
|
# 94 ^
|
||||||
5
|
3
|
||||||
# 95 _
|
# 95 _
|
||||||
5
|
3
|
||||||
# 96 `
|
# 96 `
|
||||||
5
|
2
|
||||||
# 97 a
|
# 97 a
|
||||||
5
|
3
|
||||||
# 98 b
|
# 98 b
|
||||||
5
|
3
|
||||||
# 99 c
|
# 99 c
|
||||||
5
|
3
|
||||||
# 100 d
|
# 100 d
|
||||||
5
|
3
|
||||||
# 101 e
|
# 101 e
|
||||||
5
|
3
|
||||||
# 102 f
|
# 102 f
|
||||||
5
|
3
|
||||||
# 103 g
|
# 103 g
|
||||||
5
|
3
|
||||||
# 104 h
|
# 104 h
|
||||||
5
|
3
|
||||||
# 105 i
|
# 105 i
|
||||||
5
|
3
|
||||||
# 106 j
|
# 106 j
|
||||||
5
|
3
|
||||||
# 107 k
|
# 107 k
|
||||||
5
|
3
|
||||||
# 108 l
|
# 108 l
|
||||||
5
|
3
|
||||||
# 109 m
|
# 109 m
|
||||||
5
|
3
|
||||||
# 110 n
|
# 110 n
|
||||||
5
|
3
|
||||||
# 111 o
|
# 111 o
|
||||||
5
|
3
|
||||||
# 112 p
|
# 112 p
|
||||||
5
|
3
|
||||||
# 113 q
|
# 113 q
|
||||||
5
|
3
|
||||||
# 114 r
|
# 114 r
|
||||||
5
|
3
|
||||||
# 115 s
|
# 115 s
|
||||||
5
|
3
|
||||||
# 116 t
|
# 116 t
|
||||||
5
|
3
|
||||||
# 117 u
|
# 117 u
|
||||||
5
|
3
|
||||||
# 118 v
|
# 118 v
|
||||||
5
|
3
|
||||||
# 119 w
|
# 119 w
|
||||||
5
|
3
|
||||||
# 120 x
|
# 120 x
|
||||||
5
|
3
|
||||||
# 121 y
|
# 121 y
|
||||||
5
|
3
|
||||||
# 122 z
|
# 122 z
|
||||||
5
|
3
|
||||||
# 123 {
|
# 123 {
|
||||||
5
|
3
|
||||||
# 124 |
|
# 124 |
|
||||||
5
|
3
|
||||||
# 125 }
|
# 125 }
|
||||||
5
|
3
|
||||||
# 126 ~
|
# 126 ~
|
||||||
5
|
5
|
||||||
BIN
data/font/smb2.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
194
data/font/smb2.txt
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
# box width
|
||||||
|
8
|
||||||
|
# box height
|
||||||
|
8
|
||||||
|
# 32 espacio ( )
|
||||||
|
7
|
||||||
|
# 33 !
|
||||||
|
7
|
||||||
|
# 34 "
|
||||||
|
7
|
||||||
|
# 35 #
|
||||||
|
7
|
||||||
|
# 36 $
|
||||||
|
7
|
||||||
|
# 37 %
|
||||||
|
7
|
||||||
|
# 38 &
|
||||||
|
7
|
||||||
|
# 39 '
|
||||||
|
7
|
||||||
|
# 40 (
|
||||||
|
7
|
||||||
|
# 41 )
|
||||||
|
7
|
||||||
|
# 42 *
|
||||||
|
7
|
||||||
|
# 43 +
|
||||||
|
7
|
||||||
|
# 44 ,
|
||||||
|
7
|
||||||
|
# 45 -
|
||||||
|
7
|
||||||
|
# 46 .
|
||||||
|
7
|
||||||
|
# 47 /
|
||||||
|
7
|
||||||
|
# 48 0
|
||||||
|
7
|
||||||
|
# 49 1
|
||||||
|
7
|
||||||
|
# 50 2
|
||||||
|
7
|
||||||
|
# 51 3
|
||||||
|
7
|
||||||
|
# 52 4
|
||||||
|
7
|
||||||
|
# 53 5
|
||||||
|
7
|
||||||
|
# 54 6
|
||||||
|
7
|
||||||
|
# 55 7
|
||||||
|
7
|
||||||
|
# 56 8
|
||||||
|
7
|
||||||
|
# 57 9
|
||||||
|
7
|
||||||
|
# 58 :
|
||||||
|
7
|
||||||
|
# 59 ;
|
||||||
|
7
|
||||||
|
# 60 <
|
||||||
|
7
|
||||||
|
# 61 =
|
||||||
|
7
|
||||||
|
# 62 >
|
||||||
|
7
|
||||||
|
# 63 ?
|
||||||
|
7
|
||||||
|
# 64 @
|
||||||
|
7
|
||||||
|
# 65 A
|
||||||
|
7
|
||||||
|
# 66 B
|
||||||
|
7
|
||||||
|
# 67 C
|
||||||
|
7
|
||||||
|
# 68 D
|
||||||
|
7
|
||||||
|
# 69 E
|
||||||
|
7
|
||||||
|
# 70 F
|
||||||
|
7
|
||||||
|
# 71 G
|
||||||
|
7
|
||||||
|
# 72 H
|
||||||
|
7
|
||||||
|
# 73 I
|
||||||
|
7
|
||||||
|
# 74 J
|
||||||
|
7
|
||||||
|
# 75 K
|
||||||
|
7
|
||||||
|
# 76 L
|
||||||
|
7
|
||||||
|
# 77 M
|
||||||
|
7
|
||||||
|
# 78 N
|
||||||
|
7
|
||||||
|
# 79 O
|
||||||
|
7
|
||||||
|
# 80 P
|
||||||
|
7
|
||||||
|
# 81 Q
|
||||||
|
7
|
||||||
|
# 82 R
|
||||||
|
7
|
||||||
|
# 83 S
|
||||||
|
7
|
||||||
|
# 84 T
|
||||||
|
7
|
||||||
|
# 85 U
|
||||||
|
7
|
||||||
|
# 86 V
|
||||||
|
7
|
||||||
|
# 87 W
|
||||||
|
7
|
||||||
|
# 88 X
|
||||||
|
7
|
||||||
|
# 89 Y
|
||||||
|
7
|
||||||
|
# 90 Z
|
||||||
|
7
|
||||||
|
# 91 [
|
||||||
|
7
|
||||||
|
# 92 \
|
||||||
|
7
|
||||||
|
# 93 ]
|
||||||
|
7
|
||||||
|
# 94 ^
|
||||||
|
7
|
||||||
|
# 95 _
|
||||||
|
7
|
||||||
|
# 96 `
|
||||||
|
7
|
||||||
|
# 97 a
|
||||||
|
7
|
||||||
|
# 98 b
|
||||||
|
7
|
||||||
|
# 99 c
|
||||||
|
7
|
||||||
|
# 100 d
|
||||||
|
7
|
||||||
|
# 101 e
|
||||||
|
7
|
||||||
|
# 102 f
|
||||||
|
7
|
||||||
|
# 103 g
|
||||||
|
7
|
||||||
|
# 104 h
|
||||||
|
7
|
||||||
|
# 105 i
|
||||||
|
7
|
||||||
|
# 106 j
|
||||||
|
7
|
||||||
|
# 107 k
|
||||||
|
7
|
||||||
|
# 108 l
|
||||||
|
7
|
||||||
|
# 109 m
|
||||||
|
7
|
||||||
|
# 110 n
|
||||||
|
7
|
||||||
|
# 111 o
|
||||||
|
7
|
||||||
|
# 112 p
|
||||||
|
7
|
||||||
|
# 113 q
|
||||||
|
7
|
||||||
|
# 114 r
|
||||||
|
7
|
||||||
|
# 115 s
|
||||||
|
7
|
||||||
|
# 116 t
|
||||||
|
7
|
||||||
|
# 117 u
|
||||||
|
7
|
||||||
|
# 118 v
|
||||||
|
7
|
||||||
|
# 119 w
|
||||||
|
7
|
||||||
|
# 120 x
|
||||||
|
7
|
||||||
|
# 121 y
|
||||||
|
7
|
||||||
|
# 122 z
|
||||||
|
7
|
||||||
|
# 123 {
|
||||||
|
7
|
||||||
|
# 124 |
|
||||||
|
7
|
||||||
|
# 125 }
|
||||||
|
7
|
||||||
|
# 126 ~
|
||||||
|
7
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=4
|
|
||||||
frame_width=320
|
frame_width=320
|
||||||
frame_height=240
|
frame_height=240
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
[path]
|
[path]
|
||||||
tileset=walking_eye.png
|
tileset=manzana.png
|
||||||
animation=walking_eye.ani
|
animation=manzana.ani
|
||||||
width=16
|
width=16
|
||||||
height=16
|
height=16
|
||||||
x=22
|
x=22
|
||||||
y=20
|
y=25
|
||||||
vx=0.4
|
vx=0.4
|
||||||
vy=0
|
vy=0
|
||||||
x1=22
|
x1=15
|
||||||
y1=20
|
y1=25
|
||||||
x2=27
|
x2=27
|
||||||
y2=20
|
y2=25
|
||||||
[/path]
|
[/path]
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
tileset_img=surface.png
|
tileset_img=surface.png
|
||||||
enemy_file=01.ene
|
enemy_file=01.ene
|
||||||
bgColor1=234,171,159
|
bgColor1=0,171,159
|
||||||
bgColor2=144,225,231
|
bgColor2=144,225,231
|
||||||
|
bgScroll=true
|
||||||
|
|
||||||
room_up=0
|
room_up=0
|
||||||
room_down=0
|
room_down=0
|
||||||
room_left=0
|
room_left=04.map
|
||||||
room_right=02.map
|
room_right=02.map
|
||||||
|
|
||||||
[tilemap]
|
[tilemap]
|
||||||
@@ -14,61 +15,31 @@ room_right=02.map
|
|||||||
|
|
||||||
[actors]
|
[actors]
|
||||||
|
|
||||||
[moving platform]
|
|
||||||
tileset=moving_platform.png
|
|
||||||
animation=moving_platform.ani
|
|
||||||
width=16
|
|
||||||
height=8
|
|
||||||
x=9
|
|
||||||
y=11
|
|
||||||
vx=0.3
|
|
||||||
vy=0
|
|
||||||
x1=9
|
|
||||||
y1=11
|
|
||||||
x2=15
|
|
||||||
y2=11
|
|
||||||
[/moving platform]
|
|
||||||
|
|
||||||
[moving platform]
|
|
||||||
tileset=moving_platform.png
|
|
||||||
animation=moving_platform.ani
|
|
||||||
width=16
|
|
||||||
height=8
|
|
||||||
x=20
|
|
||||||
y=14
|
|
||||||
vx=0
|
|
||||||
vy=0.3
|
|
||||||
x1=20
|
|
||||||
y1=14
|
|
||||||
x2=20
|
|
||||||
y2=21
|
|
||||||
[/moving platform]
|
|
||||||
|
|
||||||
[diamond]
|
[diamond]
|
||||||
tileset=diamond.png
|
tileset=diamond.png
|
||||||
animation=diamond.ani
|
animation=diamond.ani
|
||||||
width=16
|
width=16
|
||||||
height=16
|
height=16
|
||||||
x=1
|
x=14
|
||||||
y=10
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=24
|
|
||||||
y=10
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=25
|
|
||||||
y=12
|
y=12
|
||||||
[/diamond]
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=19
|
||||||
|
y=18
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=33
|
||||||
|
y=13
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
[/actors]
|
[/actors]
|
||||||
123
data/map/01.tmx
@@ -1,34 +1,107 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="5" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="surface.tsx"/>
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="4" name="fondo" width="40" height="30">
|
||||||
<data encoding="csv">
|
<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,18,19,20,0,0,0,0,0,87,88,89,90,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,51,52,0,0,0,0,0,119,120,121,122,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,19,20,0,0,0,0,0,0,0,0,0,0,0,151,152,153,154,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,51,52,0,0,0,0,0,0,0,0,0,0,0,183,184,185,186,0,0,0,0,0,0,
|
|
||||||
0,18,19,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
0,50,51,52,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,239,240,0,0,0,0,0,0,127,0,0,0,0,0,0,0,0,0,0,0,0,93,94,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,366,367,367,368,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,125,126,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,430,431,431,432,0,0,0,0,577,578,579,580,581,582,0,0,0,0,0,0,0,0,159,160,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,191,192,0,0,0,0,0,93,94,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,189,190,241,242,0,0,0,125,126,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
363,364,0,0,0,0,0,193,194,0,0,0,0,189,190,0,0,0,237,238,0,0,362,282,277,278,279,274,364,0,0,0,157,158,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
295,396,0,0,0,0,0,225,226,0,0,0,0,189,190,0,0,362,275,275,275,275,313,314,309,310,311,312,396,0,0,0,189,190,0,0,237,238,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,0,
|
||||||
265,264,263,264,263,264,263,264,263,264,263,264,263,264,263,264,263,264,267,266,266,266,283,284,266,265,266,267,263,264,263,264,263,264,263,264,263,264,263,264,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,0,
|
||||||
295,296,295,296,295,296,295,296,295,265,295,296,295,296,295,296,295,296,295,296,295,296,315,316,298,297,298,296,295,296,295,296,295,296,295,296,295,296,295,296
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2551,2552,2553,2554,2555,2556,2557,2558,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2626,2627,2628,2629,2630,2631,2632,2633,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2701,2702,2703,2704,2705,2706,2707,2708,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2776,2777,2778,2779,2780,2781,2782,2783,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0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,0,0,0,0,0,0,0,0,534,535,526,527,0,540,541,0,0,0,0,0,0,0,0,0,0,530,531,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1501,1502,1503,1504,1505,1506,0,0,0,0,0,0,0,0,0,0,1357,1358,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,0,0,0,0,0,0,0,0,0,0,0,1432,1433,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,2,3,79,0,0,0,0,0,0,0,166,167,0,0,463,464,0,0,0,0,0,
|
||||||
|
0,0,0,233,234,235,236,0,0,0,0,0,0,0,0,0,0,0,5,81,82,8,0,0,0,0,1351,1352,1353,1354,1355,1356,0,538,539,0,0,0,0,0,
|
||||||
|
0,0,0,308,309,310,311,0,0,0,0,306,307,0,0,0,0,0,80,81,82,83,0,0,0,0,0,0,461,462,0,0,0,455,456,0,0,0,0,0,
|
||||||
|
0,0,0,383,384,385,386,0,0,0,0,381,382,0,0,0,0,80,81,82,81,82,83,0,241,242,243,0,461,462,0,0,0,530,531,0,0,0,0,0,
|
||||||
|
1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,
|
||||||
|
1211,1212,1211,1212,1211,1212,1211,1212,1211,1203,1204,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,
|
||||||
|
1286,1287,1286,1287,1286,1287,1286,1287,1286,1278,1279,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287
|
||||||
|
</data>
|
||||||
|
</lay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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5628,5628,5628,5628,5628,5628,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
@@ -12,18 +12,3 @@ y1=12
|
|||||||
x2=9
|
x2=9
|
||||||
y2=20
|
y2=20
|
||||||
[/path]
|
[/path]
|
||||||
|
|
||||||
[path]
|
|
||||||
tileset=flying_eye_horn.png
|
|
||||||
animation=flying_eye_horn.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=15
|
|
||||||
y=5
|
|
||||||
vx=0.5
|
|
||||||
vy=0
|
|
||||||
x1=5
|
|
||||||
y1=5
|
|
||||||
x2=30
|
|
||||||
y2=5
|
|
||||||
[/path]
|
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
tileset_img=surface.png
|
tileset_img=surface.png
|
||||||
enemy_file=02.ene
|
enemy_file=02.ene
|
||||||
bgColor1=234,100,159
|
bgColor1=0,171,159
|
||||||
bgColor2=144,235,231
|
bgColor2=144,225,231
|
||||||
|
bgScroll=true
|
||||||
bgColor1=153,229,80
|
|
||||||
bgColor2=95,205,228
|
|
||||||
|
|
||||||
room_up=0
|
room_up=0
|
||||||
room_down=03.map
|
room_down=03.map
|
||||||
room_left=01.map
|
room_left=01.map
|
||||||
room_right=0
|
room_right=05.map
|
||||||
|
|
||||||
[tilemap]
|
[tilemap]
|
||||||
02.tmx
|
02.tmx
|
||||||
@@ -17,76 +15,4 @@ room_right=0
|
|||||||
|
|
||||||
[actors]
|
[actors]
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=5
|
|
||||||
y=13
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=8
|
|
||||||
y=7
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=12
|
|
||||||
y=11
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=16
|
|
||||||
y=17
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=18
|
|
||||||
y=15
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=20
|
|
||||||
y=13
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=27
|
|
||||||
y=9
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=33
|
|
||||||
y=14
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[/actors]
|
[/actors]
|
||||||
121
data/map/02.tmx
@@ -1,34 +1,107 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="5" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="surface.tsx"/>
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="4" name="fondo" width="40" height="30">
|
||||||
<data encoding="csv">
|
<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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,362,363,363,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,404,395,395,406,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,112,113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,577,578,579,580,581,582,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,109,110,113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,141,142,138,113,264,263,264,364,0,0,0,0,0,0,0,0,0,0,0,161,162,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,180,169,170,138,313,295,296,406,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,2551,2552,2553,2554,2555,2556,2557,2558,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,372,373,373,264,78,137,138,75,76,145,0,0,0,0,0,0,583,584,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,2626,2627,2628,2629,2630,2631,2632,2633,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,144,86,77,110,169,170,83,108,0,0,0,0,0,0,0,161,162,0,0,0,0,0,159,160,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,2701,2702,2703,2704,2705,2706,2707,2708,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,109,148,137,138,115,0,0,0,0,0,0,583,584,155,156,65,66,0,0,0,191,192,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,2776,2777,2778,2779,2780,2781,2782,2783,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,109,110,170,115,0,0,0,0,0,0,161,162,187,188,97,98,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,141,142,138,83,0,0,0,0,583,584,155,156,65,66,69,70,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,180,169,170,115,0,0,0,0,161,162,187,188,97,98,101,102,0,0,0,189,190,0,0,93,94,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,362,282,276,277,279,364,193,194,0,157,158,93,94,157,158,157,158,0,0,0,69,70,0,0,125,126,0,0,0,93,94,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,394,314,308,309,311,396,225,226,0,189,190,125,126,189,190,189,190,0,0,0,101,102,0,0,157,158,0,0,0,125,126,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
363,363,363,363,363,363,363,363,265,265,265,265,363,363,363,363,363,363,363,363,363,363,363,363,363,364,0,189,190,0,362,363,363,363,363,363,363,363,363,363,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,295,296,296,296,296,396,0,189,190,0,394,296,296,296,296,296,296,296,296,296
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 id="1" name="mapa" width="40" height="30">
|
||||||
|
<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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,343,446,446,345,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,479,480,480,481,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,54,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,121,0,0,0,119,280,279,344,345,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,480,481,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,445,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,123,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,553,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,116,57,0,0,0,0,0,0,0,112,1357,1358,0,0,0,1357,1358,37,38,0,1357,1358,0,0,0,1357,1358,0,0,1357,
|
||||||
|
0,0,0,0,0,0,0,0,0,293,294,295,345,207,208,0,0,0,0,0,1432,1433,0,0,1430,1432,1433,0,0,0,1432,1433,0,0,0,1432,1433,0,0,1432,
|
||||||
|
1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,
|
||||||
|
1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,
|
||||||
|
1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="2" name="colisiones" width="40" height="30">
|
||||||
|
<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,
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,0,0,0,
|
||||||
|
5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ bgColor2=69,40,60
|
|||||||
room_up=02.map
|
room_up=02.map
|
||||||
room_down=0
|
room_down=0
|
||||||
room_left=0
|
room_left=0
|
||||||
room_right=0
|
room_right=06.map
|
||||||
|
|
||||||
[tilemap]
|
[tilemap]
|
||||||
03.tmx
|
03.tmx
|
||||||
@@ -14,31 +14,4 @@ room_right=0
|
|||||||
|
|
||||||
[actors]
|
[actors]
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=25
|
|
||||||
y=19
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=22
|
|
||||||
y=12
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[diamond]
|
|
||||||
tileset=diamond.png
|
|
||||||
animation=diamond.ani
|
|
||||||
width=16
|
|
||||||
height=16
|
|
||||||
x=2
|
|
||||||
y=22
|
|
||||||
[/diamond]
|
|
||||||
|
|
||||||
[/actors]
|
[/actors]
|
||||||
@@ -1,34 +1,73 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="surface.tsx"/>
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="1" name="Mapa" width="40" height="30">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
260,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,431,432,0,189,190,0,430,431,431,431,431,431,431,431,431,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,190,0,0,0,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,191,192,577,578,579,580,581,582,0,0,67,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,70,0,0,189,190,0,0,0,157,158,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,101,102,0,0,189,190,0,0,0,189,190,0,0,0,0,0,0,0,260,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
260,260,257,258,260,260,260,260,258,260,260,260,260,260,257,260,260,260,258,260,260,260,260,260,260,260,260,260,257,258,260,260,260,260,260,260,257,260,260,260
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
13
data/map/04.map
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=255,90,100
|
||||||
|
bgColor2=255,255,100
|
||||||
|
bgScroll=true
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=04.map
|
||||||
|
room_left=04.map
|
||||||
|
room_right=01.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
04.tmx
|
||||||
|
[/tilemap]
|
||||||
107
data/map/04.tmx
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="4" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="3" name="fondo" width="40" height="30">
|
||||||
|
<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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
87,543,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
12,1126,1127,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
87,1126,1127,1126,1127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,445,446,446,446,446,
|
||||||
|
1126,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,1136,1137,
|
||||||
|
1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1203,1204,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,1211,1212,
|
||||||
|
1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1278,1279,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287,1286,1287
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="2" name="colisiones" width="40" height="30">
|
||||||
|
<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,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,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
5627,5627,5627,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
5627,5627,5627,5627,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,445,446,446,446,446,
|
||||||
|
5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
17
data/map/05.map
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
bgScroll=true
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=06.map
|
||||||
|
room_left=02.map
|
||||||
|
room_right=07.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
05.tmx
|
||||||
|
[/tilemap]
|
||||||
|
|
||||||
|
[actors]
|
||||||
|
|
||||||
|
[/actors]
|
||||||
110
data/map/05.tmx
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="5" nextobjectid="3">
|
||||||
|
<editorsettings>
|
||||||
|
<export target="05..tmj" format="json"/>
|
||||||
|
</editorsettings>
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="4" name="fondo" width="40" height="30">
|
||||||
|
<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,2176,2177,2178,2179,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2251,2252,2253,2254,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2326,2327,2328,2329,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2401,2402,2403,2404,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2701,2702,2703,2704,2705,2706,2707,2708,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2776,2777,2778,2779,2780,2781,2782,2783,0,
|
||||||
|
0,0,0,0,0,0,2551,2552,2553,2554,2555,2556,2557,2558,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2626,2627,2628,2629,2630,2631,2632,2633,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2701,2702,2703,2704,2705,2706,2707,2708,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,2776,2777,2778,2779,2780,2781,2782,2783,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 id="1" name="mapa" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,107,113,114,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,547,0,0,550,551,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,140,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,111,112,45,46,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,43,44,113,114,0,0,0,0,0,0,0,156,157,
|
||||||
|
0,0,0,0,0,43,44,107,113,114,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,543,231,232,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,0,0,0,1501,1502,1503,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,549,550,551,1,2,3,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,46,0,0,0,0,0,0,0,76,2,
|
||||||
|
1360,0,0,0,1359,1360,0,0,0,1359,1360,0,0,0,1359,1360,0,0,0,1359,1360,45,0,0,0,0,316,317,318,319,0,0,0,0,0,0,0,0,0,2,
|
||||||
|
1433,0,0,0,1432,1433,0,0,0,1434,1435,0,0,0,1432,1433,0,0,0,1434,1435,0,0,0,0,241,391,392,393,394,0,0,39,40,41,241,242,243,543,2,
|
||||||
|
1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1132,1133,1134,1135,1126,1127,1128,1129,1126,1127,1506,0,0,0,1501,1127,1126,1127,1126,1127,
|
||||||
|
1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,1207,1208,1209,1210,13,14,13,14,13,14,12,0,0,0,11,14,13,14,13,14,
|
||||||
|
1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,1282,1283,1284,1285,15,15,15,15,15,15,87,0,0,0,86,15,15,15,15,15
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="3" name="colisiones" width="40" height="30">
|
||||||
|
<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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,
|
||||||
|
5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,0,0,0,5627,5627,5627,5627,5627,5627,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,5627,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,5627,0,0,0,0,0
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map/06.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=143,86,59
|
||||||
|
bgColor2=69,40,60
|
||||||
|
|
||||||
|
room_up=05.map
|
||||||
|
room_down=0
|
||||||
|
room_left=03.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
06.tmx
|
||||||
|
[/tilemap]
|
||||||
107
data/map/06.tmx
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="4" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<tileset firstgid="5626" source="tile_class.tsx"/>
|
||||||
|
<layer id="3" name="fondo" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,
|
||||||
|
13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,13,14,
|
||||||
|
88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89,88,89
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="1" name="mapa" width="40" height="30">
|
||||||
|
<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,84,85,14,90,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,85,89,90,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,85,14,14,90,15,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,85,89,90,15,15,
|
||||||
|
0,0,0,0,0,0,0,0,0,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1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,1126,1127,
|
||||||
|
1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,1201,1202,
|
||||||
|
1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277,1276,1277
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="2" name="colisiones" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,0,0,0,5627,0,0,0,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,0,0,
|
||||||
|
5627,278,277,278,277,278,277,278,277,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,278,483,483,5627,278,277,278,277,0,
|
||||||
|
5627,0,483,483,483,483,483,483,483,483,484,0,0,0,0,0,0,0,0,41,42,0,0,0,0,0,0,0,0,0,482,483,483,483,483,5627,483,483,0,0,
|
||||||
|
5627,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,111,112,107,45,46,0,43,44,107,107,113,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,111,112,107,113,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,5627,278,
|
||||||
|
5627,450,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,115,5627,0,
|
||||||
|
5627,0,553,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
5627,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,116,115,116,115,116,115,116,115,116,115,116,0,0,5627,0,
|
||||||
|
5627,5627,5627,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
0,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,116,5627,0,
|
||||||
|
0,5627,0,0,449,450,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
0,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,5627,0,
|
||||||
|
0,5627,0,0,0,449,449,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
0,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,5627,0,
|
||||||
|
0,5627,277,0,277,278,277,449,449,278,277,276,277,278,483,276,277,278,277,278,277,278,276,278,277,278,277,278,277,278,276,278,277,278,277,483,276,278,5627,278,
|
||||||
|
0,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
0,5627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627,0,
|
||||||
|
0,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,5627,0,
|
||||||
|
823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,
|
||||||
|
857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map/07.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=08.map
|
||||||
|
room_down=0
|
||||||
|
room_left=05.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
07.tmx
|
||||||
|
[/tilemap]
|
||||||
72
data/map/07.tmx
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Mapa" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
315,0,315,0,0,0,281,282,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,0,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,0,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,0,0,0,0,0,0,315,0,0,0,
|
||||||
|
281,282,281,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,0,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,0,0,0,0,0,0,0,0,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,315,0,
|
||||||
|
281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,282,281,282,281,282,281,0,
|
||||||
|
315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 id="2" name="Colisiones" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,0,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
315,0,315,0,0,0,281,282,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
281,0,281,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,315,0,0,0,315,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,0,315,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,0,281,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
12
data/map/08.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=07.map
|
||||||
|
room_left=10.map
|
||||||
|
room_right=09.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
08.tmx
|
||||||
|
[/tilemap]
|
||||||
72
data/map/08.tmx
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Mapa" width="40" height="30">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,62,63,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,129,130,131,132,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,0,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 id="2" name="Colisiones" width="40" height="30">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,62,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,129,130,131,132,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,281,0,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,315,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
315,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
12
data/map/09.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=0
|
||||||
|
room_left=08.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
09.tmx
|
||||||
|
[/tilemap]
|
||||||
72
data/map/09.tmx
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Mapa" width="40" height="30">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,62,63,64,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,129,130,131,132,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,0,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,0,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,282,281,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 id="2" name="Colisiones" width="40" height="30">
|
||||||
|
<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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0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,0,0,0,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
12
data/map/10.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=05.map
|
||||||
|
room_left=10.map
|
||||||
|
room_right=08.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
10.tmx
|
||||||
|
[/tilemap]
|
||||||
72
data/map/10.tmx
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.2" orientation="orthogonal" renderorder="right-down" width="40" height="30" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Mapa" width="40" height="30">
|
||||||
|
<data encoding="csv">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,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
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 34 KiB |
1798
data/map/surface.tsx
@@ -2,24 +2,73 @@
|
|||||||
"maps": [
|
"maps": [
|
||||||
{
|
{
|
||||||
"fileName": "02.tmx",
|
"fileName": "02.tmx",
|
||||||
"height": 208,
|
"height": 240,
|
||||||
"width": 320,
|
"width": 320,
|
||||||
"x": 256,
|
"x": 256,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileName": "01.tmx",
|
"fileName": "01.tmx",
|
||||||
"height": 208,
|
"height": 240,
|
||||||
"width": 320,
|
"width": 320,
|
||||||
"x": -64,
|
"x": -64,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileName": "03.tmx",
|
"fileName": "03.tmx",
|
||||||
"height": 208,
|
"height": 240,
|
||||||
"width": 320,
|
"width": 320,
|
||||||
"x": 256,
|
"x": 256,
|
||||||
"y": 208
|
"y": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "04.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": -384,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "05.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "06.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "07.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 896,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "08.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 896,
|
||||||
|
"y": -240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "09.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 1216,
|
||||||
|
"y": -240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "10.tmx",
|
||||||
|
"height": 240,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": -240
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"onlyShowAdjacentMaps": false,
|
"onlyShowAdjacentMaps": false,
|
||||||
|
|||||||
BIN
data/map/tile_class.png
Normal file
|
After Width: | Height: | Size: 105 B |
4
data/map/tile_class.tsx
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<tileset version="1.9" tiledversion="1.9.2" name="tile_class" tilewidth="8" tileheight="8" tilecount="3" columns="3">
|
||||||
|
<image source="tile_class.png" width="24" height="8"/>
|
||||||
|
</tileset>
|
||||||
14
data/map_old/01.ene
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[path]
|
||||||
|
tileset=walking_eye.png
|
||||||
|
animation=walking_eye.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=22
|
||||||
|
y=20
|
||||||
|
vx=0.4
|
||||||
|
vy=0
|
||||||
|
x1=22
|
||||||
|
y1=20
|
||||||
|
x2=27
|
||||||
|
y2=20
|
||||||
|
[/path]
|
||||||
74
data/map_old/01.map
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
enemy_file=01.ene
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=0
|
||||||
|
room_left=04.map
|
||||||
|
room_right=02.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
01.tmx
|
||||||
|
[/tilemap]
|
||||||
|
|
||||||
|
[actors]
|
||||||
|
|
||||||
|
[moving platform]
|
||||||
|
tileset=moving_platform.png
|
||||||
|
animation=moving_platform.ani
|
||||||
|
width=16
|
||||||
|
height=8
|
||||||
|
x=9
|
||||||
|
y=11
|
||||||
|
vx=0.3
|
||||||
|
vy=0
|
||||||
|
x1=9
|
||||||
|
y1=11
|
||||||
|
x2=15
|
||||||
|
y2=11
|
||||||
|
[/moving platform]
|
||||||
|
|
||||||
|
[moving platform]
|
||||||
|
tileset=moving_platform.png
|
||||||
|
animation=moving_platform.ani
|
||||||
|
width=16
|
||||||
|
height=8
|
||||||
|
x=20
|
||||||
|
y=14
|
||||||
|
vx=0
|
||||||
|
vy=0.3
|
||||||
|
x1=20
|
||||||
|
y1=14
|
||||||
|
x2=20
|
||||||
|
y2=21
|
||||||
|
[/moving platform]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=1
|
||||||
|
y=10
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=24
|
||||||
|
y=10
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=25
|
||||||
|
y=12
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[/actors]
|
||||||
34
data/map_old/01.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,0,0,0,0,0,27,28,29,30,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,61,62,63,64,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,95,96,97,98,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,129,130,131,132,0,0,0,0,0,0,
|
||||||
|
0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,445,447,0,0,0,0,0,0,0,0,448,450,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,479,481,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,445,447,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,479,481,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,253,254,0,0,0,0,0,105,106,0,0,0,0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,448,449,449,450,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,482,483,483,484,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,77,78,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,111,112,45,46,7,8,0,0,0,5,6,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,0,0,0,0,0,0,0,0,0,0,37,38,41,42,0,0,0,39,40,0,0,0,0,0,0,
|
||||||
|
344,345,0,0,0,0,0,207,208,0,0,0,0,41,42,0,0,0,0,0,0,0,343,344,292,293,294,344,345,0,0,0,105,106,0,0,0,0,0,0,
|
||||||
|
378,379,0,0,0,0,0,241,242,0,0,0,0,37,38,0,0,343,291,344,291,291,313,314,326,327,328,378,379,0,0,0,37,38,0,0,0,0,0,0,
|
||||||
|
279,280,291,292,279,280,279,291,292,280,279,280,291,292,279,280,279,280,281,281,282,281,282,281,281,282,281,282,279,280,279,280,291,292,279,280,291,292,279,280,
|
||||||
|
313,314,325,326,313,314,313,325,326,314,313,314,325,326,313,314,313,314,313,315,316,314,313,314,313,314,313,314,313,314,313,314,325,326,313,314,325,326,313,314
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
14
data/map_old/02.ene
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[path]
|
||||||
|
tileset=flying_eye.png
|
||||||
|
animation=flying_eye.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=9
|
||||||
|
y=12
|
||||||
|
vx=0
|
||||||
|
vy=0.3
|
||||||
|
x1=9
|
||||||
|
y1=12
|
||||||
|
x2=9
|
||||||
|
y2=20
|
||||||
|
[/path]
|
||||||
89
data/map_old/02.map
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
enemy_file=02.ene
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=03.map
|
||||||
|
room_left=01.map
|
||||||
|
room_right=05.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
02.tmx
|
||||||
|
[/tilemap]
|
||||||
|
|
||||||
|
[actors]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=5
|
||||||
|
y=13
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=8
|
||||||
|
y=7
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=12
|
||||||
|
y=11
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=16
|
||||||
|
y=17
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=18
|
||||||
|
y=15
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=20
|
||||||
|
y=13
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=27
|
||||||
|
y=9
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=33
|
||||||
|
y=14
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[/actors]
|
||||||
34
data/map_old/02.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,29,30,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,62,63,64,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,0,0,0,95,96,97,98,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,129,130,131,132,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,343,446,446,345,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,479,480,480,481,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,54,55,21,22,0,0,0,0,0,0,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,87,17,18,55,56,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,121,51,52,82,119,280,279,344,345,0,0,0,0,0,0,0,0,0,0,0,105,106,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,85,86,116,82,480,480,480,481,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,445,446,295,447,119,120,82,15,16,89,90,0,0,0,0,0,553,554,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,87,88,17,18,116,115,116,49,50,123,124,0,0,0,0,0,105,106,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,121,122,87,88,88,81,82,23,0,0,0,0,0,0,553,554,77,78,11,12,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,121,122,51,52,116,57,0,0,0,0,0,0,105,106,111,112,45,46,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,85,86,82,23,0,0,0,0,553,554,77,78,11,12,7,8,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,54,115,116,57,0,0,0,0,105,106,111,112,45,46,41,42,0,0,0,37,38,0,0,5,6,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,343,280,293,294,295,345,207,208,0,37,38,5,6,37,38,37,38,0,0,0,7,8,0,0,39,40,0,0,0,5,6,0,0,
|
||||||
|
0,0,0,0,0,0,0,377,316,327,328,315,379,241,242,0,37,38,39,40,37,38,37,38,0,0,0,41,42,0,0,165,166,0,0,0,39,40,0,0,
|
||||||
|
446,446,446,446,446,446,446,446,281,281,281,281,446,446,446,446,446,446,446,446,446,446,446,446,446,447,0,37,38,0,445,446,446,446,446,446,446,446,446,446,
|
||||||
|
480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,480,481,0,37,38,0,479,480,480,480,480,480,480,480,480,480
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
44
data/map_old/03.ene
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
[path]
|
||||||
|
tileset=walking_eye.png
|
||||||
|
animation=walking_eye.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=13
|
||||||
|
y=23
|
||||||
|
vx=0.4
|
||||||
|
vy=0
|
||||||
|
x1=3
|
||||||
|
y1=23
|
||||||
|
x2=18
|
||||||
|
y2=23
|
||||||
|
[/path]
|
||||||
|
|
||||||
|
[path]
|
||||||
|
tileset=walking_eye.png
|
||||||
|
animation=walking_eye.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=22
|
||||||
|
y=13
|
||||||
|
vx=0.4
|
||||||
|
vy=0
|
||||||
|
x1=20
|
||||||
|
y1=13
|
||||||
|
x2=24
|
||||||
|
y2=13
|
||||||
|
[/path]
|
||||||
|
|
||||||
|
[path]
|
||||||
|
tileset=walking_eye.png
|
||||||
|
animation=walking_eye.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=27
|
||||||
|
y=8
|
||||||
|
vx=-0.4
|
||||||
|
vy=0
|
||||||
|
x1=25
|
||||||
|
y1=8
|
||||||
|
x2=29
|
||||||
|
y2=8
|
||||||
|
[/path]
|
||||||
44
data/map_old/03.map
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
enemy_file=03.ene
|
||||||
|
bgColor1=143,86,59
|
||||||
|
bgColor2=69,40,60
|
||||||
|
|
||||||
|
room_up=02.map
|
||||||
|
room_down=0
|
||||||
|
room_left=0
|
||||||
|
room_right=06.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
03.tmx
|
||||||
|
[/tilemap]
|
||||||
|
|
||||||
|
[actors]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=25
|
||||||
|
y=19
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=22
|
||||||
|
y=12
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=2
|
||||||
|
y=22
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[/actors]
|
||||||
34
data/map_old/03.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<data encoding="csv">
|
||||||
|
381,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,483,484,0,37,38,0,482,483,483,483,483,483,483,483,483,381,
|
||||||
|
381,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,380,
|
||||||
|
381,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,482,
|
||||||
|
381,0,0,0,0,0,0,0,77,78,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
381,0,0,0,0,0,0,0,111,112,45,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,7,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,105,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
311,0,0,0,0,0,0,0,0,0,41,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,276,
|
||||||
|
310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,9,10,11,12,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,39,40,43,44,45,46,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,77,78,79,80,75,76,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,311,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,111,112,113,114,109,110,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,78,11,12,0,0,0,0,0,77,78,11,12,0,0,0,0,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,111,112,45,46,0,0,0,0,0,111,112,45,46,0,0,0,0,0,0,0,0,381,
|
||||||
|
310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,37,38,0,0,0,0,5,6,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,37,38,0,0,0,0,39,40,0,0,381,
|
||||||
|
311,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,75,76,0,0,9,10,79,80,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,79,80,0,0,0,0,0,109,110,0,0,43,44,113,114,0,0,311,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,114,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,381,
|
||||||
|
381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,37,38,0,0,0,19,20,85,381,
|
||||||
|
311,21,22,0,0,0,5,6,0,0,0,0,0,0,0,0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,37,38,0,0,0,53,54,119,311,
|
||||||
|
381,55,56,0,0,0,39,40,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,547,548,549,550,551,552,0,0,79,80,0,0,0,85,86,82,381,
|
||||||
|
381,83,84,0,21,22,75,76,0,0,0,0,0,0,5,6,0,0,0,0,0,7,8,0,0,37,38,0,0,0,37,38,5,6,0,54,119,120,116,381,
|
||||||
|
381,117,118,116,55,56,109,110,0,0,0,0,0,0,39,40,0,0,0,0,0,41,42,0,0,37,38,0,0,0,37,38,39,40,0,92,81,115,115,381,
|
||||||
|
381,381,381,381,276,275,381,381,381,381,381,381,381,381,381,381,381,276,381,381,381,381,275,381,381,381,381,381,276,275,381,381,381,276,381,381,381,381,381,381
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/04.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=04.map
|
||||||
|
room_left=04.map
|
||||||
|
room_right=01.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
04.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/04.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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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0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||||
76
data/map_old/05.map
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=06.map
|
||||||
|
room_left=02.map
|
||||||
|
room_right=07.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
05.tmx
|
||||||
|
[/tilemap]
|
||||||
|
|
||||||
|
[actors]
|
||||||
|
|
||||||
|
[moving platform]
|
||||||
|
tileset=moving_platform.png
|
||||||
|
animation=moving_platform.ani
|
||||||
|
width=16
|
||||||
|
height=8
|
||||||
|
x=18
|
||||||
|
y=24
|
||||||
|
vx=-0.6
|
||||||
|
vy=0
|
||||||
|
x1=13
|
||||||
|
y1=24
|
||||||
|
x2=26
|
||||||
|
y2=24
|
||||||
|
[/moving platform]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=6
|
||||||
|
y=6
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=19
|
||||||
|
y=10
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=34
|
||||||
|
y=15
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=32
|
||||||
|
y=2
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[diamond]
|
||||||
|
tileset=diamond.png
|
||||||
|
animation=diamond.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=19
|
||||||
|
y=21
|
||||||
|
[/diamond]
|
||||||
|
|
||||||
|
[/actors]
|
||||||
37
data/map_old/05.tmx
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="3">
|
||||||
|
<editorsettings>
|
||||||
|
<export target="05..tmj" format="json"/>
|
||||||
|
</editorsettings>
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,27,28,29,30,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,61,62,63,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,95,96,97,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,139,140,0,0,0,0,0,0,0,129,130,131,132,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,257,258,0,0,0,0,0,
|
||||||
|
0,0,0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,105,106,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,73,79,80,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,253,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,107,113,114,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,139,140,0,
|
||||||
|
0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,173,174,0,
|
||||||
|
0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,255,256,0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,77,78,11,12,0,0,0,0,0,0,0,547,548,549,550,551,552,0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,111,112,45,46,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,9,10,79,80,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,9,10,73,79,80,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,43,44,113,114,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,43,44,107,113,114,0,0,0,0,0,0,0,0,0,553,554,0,0,0,0,0,0,37,38,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,77,78,11,12,0,0,0,0,0,0,0,0,0,0,105,106,0,0,0,0,0,0,553,554,0,0,0,253,254,253,254,0,0,0,0,
|
||||||
|
0,0,0,5,6,111,112,45,46,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,105,106,0,0,0,547,548,549,550,551,552,0,0,
|
||||||
|
0,0,0,39,40,0,0,7,8,0,0,0,0,0,0,0,0,0,0,37,38,0,0,0,0,0,0,77,78,11,12,0,0,0,105,106,0,0,0,0,
|
||||||
|
0,0,0,105,106,0,0,41,42,0,0,0,0,0,0,0,0,0,0,77,78,11,12,0,0,0,0,111,112,45,46,0,0,0,105,106,0,0,0,0,
|
||||||
|
0,0,0,37,38,9,10,79,80,0,0,0,0,0,0,0,0,0,0,111,112,45,46,0,0,0,0,0,0,79,80,0,5,6,7,8,0,0,0,0,
|
||||||
|
0,0,0,7,8,43,44,5,6,0,0,0,0,0,0,0,0,0,0,9,10,79,80,0,0,0,0,0,75,76,114,0,39,40,41,42,0,0,0,0,
|
||||||
|
0,253,254,41,42,37,38,39,40,0,0,0,0,0,0,0,0,0,0,43,44,113,114,0,0,0,0,0,109,110,0,0,105,106,105,106,0,257,258,0,
|
||||||
|
446,446,291,292,293,294,446,446,446,294,345,0,0,0,0,0,0,0,0,75,76,0,0,0,0,0,0,0,77,78,343,446,291,292,446,446,446,291,292,446,
|
||||||
|
480,480,325,326,327,328,480,480,480,328,481,0,0,0,0,0,0,0,0,109,110,0,0,0,0,0,0,0,111,112,479,480,325,326,480,480,480,325,326,480
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/06.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=143,86,59
|
||||||
|
bgColor2=69,40,60
|
||||||
|
|
||||||
|
room_up=05.map
|
||||||
|
room_down=0
|
||||||
|
room_left=03.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
06.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/06.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<data encoding="csv">
|
||||||
|
277,278,277,278,277,278,277,278,277,278,382,0,0,0,0,0,0,0,0,7,8,0,0,0,0,0,0,0,0,0,380,278,483,483,483,278,277,278,277,278,
|
||||||
|
311,312,483,483,483,483,483,483,483,483,484,0,0,0,0,0,0,0,0,41,42,0,0,0,0,0,0,0,0,0,482,483,483,483,483,483,483,483,311,312,
|
||||||
|
483,484,0,0,0,0,0,0,0,77,78,73,11,12,0,9,10,73,73,79,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,277,278,
|
||||||
|
0,0,0,0,0,0,0,0,0,111,112,107,45,46,0,43,44,107,107,113,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,311,312,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,77,78,73,79,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,277,483,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,111,112,107,113,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,311,312,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,483,278,
|
||||||
|
449,450,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,54,81,82,55,84,0,311,312,
|
||||||
|
277,382,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,92,116,115,116,115,116,84,277,278,
|
||||||
|
311,382,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,82,81,82,81,82,81,311,483,
|
||||||
|
277,382,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,54,115,116,115,116,115,116,115,277,483,
|
||||||
|
311,382,553,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,54,120,86,82,81,82,81,82,81,311,312,
|
||||||
|
277,382,105,106,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,54,81,82,81,82,119,120,81,82,81,82,81,82,277,278,
|
||||||
|
311,382,37,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,116,115,116,115,116,115,116,115,116,115,116,115,116,311,312,
|
||||||
|
277,449,449,450,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,54,81,82,81,82,81,82,81,82,17,18,81,82,81,82,483,278,
|
||||||
|
311,312,311,382,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,92,120,86,116,115,116,115,116,15,50,51,88,18,116,115,116,311,483,
|
||||||
|
277,278,277,449,449,450,0,0,0,0,0,0,0,0,0,0,19,0,85,54,81,82,81,119,120,82,81,82,81,82,57,0,0,51,52,82,81,82,277,278,
|
||||||
|
311,312,311,312,311,382,0,0,0,0,0,0,0,0,0,0,0,85,115,116,115,116,115,116,115,116,115,116,115,116,83,84,0,85,115,116,115,116,311,312,
|
||||||
|
277,278,277,278,277,449,449,450,0,0,0,0,0,0,19,0,85,86,81,82,81,82,81,82,81,82,81,82,81,82,117,118,119,120,81,82,81,82,277,278,
|
||||||
|
311,312,311,312,311,312,311,382,0,0,0,0,0,0,0,85,119,120,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,115,116,311,312,
|
||||||
|
277,278,277,278,277,278,277,449,449,278,277,276,277,278,483,276,277,278,277,278,277,278,276,278,277,278,277,278,277,278,276,278,277,278,277,483,276,278,277,278,
|
||||||
|
312,312,311,312,311,312,311,312,311,312,311,312,311,312,311,312,311,312,311,312,483,312,311,312,311,312,483,312,311,312,311,312,311,312,311,312,311,312,311,312,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,823,824,
|
||||||
|
857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858,857,858
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/07.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=08.map
|
||||||
|
room_down=0
|
||||||
|
room_left=05.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
07.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/07.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<data encoding="csv">
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,316,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
315,316,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
315,316,315,0,0,0,281,282,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
315,316,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
315,316,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
281,282,281,281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,315,316,315,316,315,316,315,316,315,316,315,316,315,316,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,281,282,0,0,0,0,0,0,0,0,0,0,315,316,315,316,315,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,315,316,315,316,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,316,315,316,315,316,315,316,315,316,315,316,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,316,315,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,315,316,315,316,315,316,315,316,315,316,315,316,
|
||||||
|
281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/08.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=07.map
|
||||||
|
room_left=10.map
|
||||||
|
room_right=09.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
08.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/08.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,316,315,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,
|
||||||
|
315,316,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
281,282,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,281,282,281,282,281,282,281,282,281,282
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/09.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=0
|
||||||
|
room_left=08.map
|
||||||
|
room_right=0
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
09.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/09.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,27,28,29,30,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,316,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,316,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
315,315,281,282,315,316,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,281,315,316,281,282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,281,282,
|
||||||
|
315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316,315,316
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
||||||
12
data/map_old/10.map
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
tileset_img=surface.png
|
||||||
|
bgColor1=0,171,159
|
||||||
|
bgColor2=144,225,231
|
||||||
|
|
||||||
|
room_up=0
|
||||||
|
room_down=05.map
|
||||||
|
room_left=10.map
|
||||||
|
room_right=08.map
|
||||||
|
|
||||||
|
[tilemap]
|
||||||
|
10.tmx
|
||||||
|
[/tilemap]
|
||||||
34
data/map_old/10.tmx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="40" height="26" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
|
<tileset firstgid="1" source="surface.tsx"/>
|
||||||
|
<layer id="1" name="Capa de patrones 1" width="40" height="26">
|
||||||
|
<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,139,140,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139,140,0,0,0,0,0,0,0,0,0,27,28,29,30,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,174,0,0,0,0,0,0,0,0,0,61,62,63,64,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,96,97,98,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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
data/map_old/surface.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
1028
data/map_old/surface.tsx
Normal file
76
data/map_old/surface.world
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"maps": [
|
||||||
|
{
|
||||||
|
"fileName": "02.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 256,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "01.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": -64,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "03.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 256,
|
||||||
|
"y": 208
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "04.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": -384,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "05.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "06.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": 208
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "07.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 896,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "08.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 896,
|
||||||
|
"y": -208
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "09.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 1216,
|
||||||
|
"y": -208
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileName": "10.tmx",
|
||||||
|
"height": 208,
|
||||||
|
"width": 320,
|
||||||
|
"x": 576,
|
||||||
|
"y": -208
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"onlyShowAdjacentMaps": false,
|
||||||
|
"type": "world"
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
35
data/menu/title.men
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
font_png=dogica.png
|
||||||
|
font_txt=dogica.txt
|
||||||
|
|
||||||
|
sound_cancel=sound_menu_cancel.wav
|
||||||
|
sound_accept=sound_menu_select.wav
|
||||||
|
sound_move=sound_menu_move.wav
|
||||||
|
|
||||||
|
name=TITLE
|
||||||
|
x=0
|
||||||
|
y=150
|
||||||
|
backgroundType=0
|
||||||
|
backgroundColor=48,48,64,192
|
||||||
|
|
||||||
|
areElementsCenteredOnX=true
|
||||||
|
isCenteredOnX=true
|
||||||
|
centerX=160
|
||||||
|
|
||||||
|
selector_color=229,28,35,0
|
||||||
|
selector_text_color=255,180,0
|
||||||
|
|
||||||
|
defaultActionWhenCancel=2
|
||||||
|
|
||||||
|
[item]
|
||||||
|
text=START
|
||||||
|
hPaddingDown=2
|
||||||
|
[/item]
|
||||||
|
|
||||||
|
[item]
|
||||||
|
text=OPTIONS
|
||||||
|
hPaddingDown=5
|
||||||
|
[/item]
|
||||||
|
|
||||||
|
[item]
|
||||||
|
text=EXIT
|
||||||
|
[/item]
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
frames_per_row=8
|
|
||||||
frame_width=16
|
frame_width=16
|
||||||
frame_height=24
|
frame_height=24
|
||||||
|
|
||||||
@@ -13,19 +12,19 @@ frames=0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,2,1,0,0,1,2,3,4,5,4,5,5,5,6,6,7
|
|||||||
name=walk
|
name=walk
|
||||||
speed=4
|
speed=4
|
||||||
loop=0
|
loop=0
|
||||||
frames=8,9,10,10,9,8,11,12,13,13,14,15
|
frames=14,15,16,17,18,19,20,21,22,23,24
|
||||||
[/animation]
|
[/animation]
|
||||||
|
|
||||||
[animation]
|
[animation]
|
||||||
name=jump
|
name=jump
|
||||||
speed=10
|
speed=4
|
||||||
loop=-1
|
loop=-1
|
||||||
frames=16,17,18,17,16
|
frames=28,29,30,31,32,33,34,35,36,37,38,39,40,41
|
||||||
[/animation]
|
[/animation]
|
||||||
|
|
||||||
[animation]
|
[animation]
|
||||||
name=death
|
name=death
|
||||||
speed=10
|
speed=10
|
||||||
loop=-1
|
loop=-1
|
||||||
frames=24,25,26,27,28,29,30,31
|
frames=42,43,44,45,46,47,48,49,50,51,52
|
||||||
[/animation]
|
[/animation]
|
||||||
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 10 KiB |
@@ -15,8 +15,7 @@ Actor::Actor(actor_t actor)
|
|||||||
renderer = actor.renderer;
|
renderer = actor.renderer;
|
||||||
|
|
||||||
// Crea objetos
|
// Crea objetos
|
||||||
texture = new LTexture();
|
texture = new LTexture(renderer, asset->get(actor.tileset));
|
||||||
loadTextureFromFile(texture, asset->get(actor.tileset), renderer);
|
|
||||||
sprite = new AnimatedSprite(texture, renderer, asset->get(actor.animation));
|
sprite = new AnimatedSprite(texture, renderer, asset->get(actor.animation));
|
||||||
|
|
||||||
// Obten el resto de valores
|
// Obten el resto de valores
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "animatedsprite.h"
|
#include "animatedsprite.h"
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
@@ -29,33 +29,35 @@ AnimatedSprite::~AnimatedSprite()
|
|||||||
int AnimatedSprite::getIndex(std::string name)
|
int AnimatedSprite::getIndex(std::string name)
|
||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
for (int i = 0; i < animation.size(); i++)
|
|
||||||
|
for (auto a : animation)
|
||||||
{
|
{
|
||||||
if (animation[i].name == name)
|
index++;
|
||||||
|
if (a.name == name)
|
||||||
{
|
{
|
||||||
index = i;
|
return index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == -1)
|
|
||||||
{
|
|
||||||
printf("** Warning: could not find \"%s\" animation\n", name.c_str());
|
printf("** Warning: could not find \"%s\" animation\n", name.c_str());
|
||||||
index = 0;
|
|
||||||
}
|
return -1;
|
||||||
return index;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calcula el frame correspondiente a la animación
|
// Calcula el frame correspondiente a la animación
|
||||||
void AnimatedSprite::animate()
|
void AnimatedSprite::animate()
|
||||||
{
|
{
|
||||||
if (enabled)
|
if (!enabled || animation[currentAnimation].speed == 0)
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Calcula el frame actual a partir del contador
|
// Calcula el frame actual a partir del contador
|
||||||
animation[currentAnimation].currentFrame = animation[currentAnimation].counter / animation[currentAnimation].speed;
|
animation[currentAnimation].currentFrame = animation[currentAnimation].counter / animation[currentAnimation].speed;
|
||||||
|
|
||||||
// Si alcanza el final de la animación, reinicia el contador de la animación
|
// Si alcanza el final de la animación, reinicia el contador de la animación
|
||||||
// en función de la variable loop y coloca el nuevo frame
|
// en función de la variable loop y coloca el nuevo frame
|
||||||
if (animation[currentAnimation].currentFrame >= animation[currentAnimation].frames.size())
|
if (animation[currentAnimation].currentFrame >= (int)animation[currentAnimation].frames.size())
|
||||||
{
|
{
|
||||||
if (animation[currentAnimation].loop == -1)
|
if (animation[currentAnimation].loop == -1)
|
||||||
{ // Si no hay loop, deja el último frame
|
{ // Si no hay loop, deja el último frame
|
||||||
@@ -77,13 +79,22 @@ void AnimatedSprite::animate()
|
|||||||
// Incrementa el contador de la animacion
|
// Incrementa el contador de la animacion
|
||||||
animation[currentAnimation].counter++;
|
animation[currentAnimation].counter++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Establece el frame actual de la animación
|
// Establece el frame actual de la animación
|
||||||
void AnimatedSprite::setCurrentFrame(std::string name, int num)
|
void AnimatedSprite::setCurrentFrame(int num)
|
||||||
{
|
{
|
||||||
animation[getIndex(name)].currentFrame = num;
|
// Descarta valores fuera de rango
|
||||||
|
if (num >= (int)animation[currentAnimation].frames.size())
|
||||||
|
{
|
||||||
|
num = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cambia el valor de la variable
|
||||||
|
animation[currentAnimation].counter = animation[currentAnimation].speed * num;
|
||||||
|
|
||||||
|
// Escoge el frame correspondiente de la animación
|
||||||
|
setSpriteClip(animation[currentAnimation].frames[animation[currentAnimation].currentFrame]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Establece el valor del contador
|
// Establece el valor del contador
|
||||||
@@ -143,7 +154,7 @@ bool AnimatedSprite::load(std::string filePath)
|
|||||||
printf("Reading file %s\n", filename.c_str());
|
printf("Reading file %s\n", filename.c_str());
|
||||||
while (std::getline(file, line))
|
while (std::getline(file, line))
|
||||||
{
|
{
|
||||||
// Si la linea contiene el texto [enemy] se realiza el proceso de carga de un enemigo
|
// Si la linea contiene el texto [animation] se realiza el proceso de carga de una animación
|
||||||
if (line == "[animation]")
|
if (line == "[animation]")
|
||||||
{
|
{
|
||||||
t_animation buffer;
|
t_animation buffer;
|
||||||
@@ -159,7 +170,7 @@ bool AnimatedSprite::load(std::string filePath)
|
|||||||
int pos = line.find("=");
|
int pos = line.find("=");
|
||||||
|
|
||||||
// Procesa las dos subcadenas
|
// Procesa las dos subcadenas
|
||||||
if (pos != line.npos)
|
if (pos != (int)line.npos)
|
||||||
{
|
{
|
||||||
if (line.substr(0, pos) == "name")
|
if (line.substr(0, pos) == "name")
|
||||||
{
|
{
|
||||||
@@ -195,7 +206,7 @@ bool AnimatedSprite::load(std::string filePath)
|
|||||||
}
|
}
|
||||||
} while (line != "[/animation]");
|
} while (line != "[/animation]");
|
||||||
|
|
||||||
// Añade el enemigo al vector de enemigos
|
// Añade la animación al vector de animaciones
|
||||||
animation.push_back(buffer);
|
animation.push_back(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,20 +217,29 @@ bool AnimatedSprite::load(std::string filePath)
|
|||||||
int pos = line.find("=");
|
int pos = line.find("=");
|
||||||
|
|
||||||
// Procesa las dos subcadenas
|
// Procesa las dos subcadenas
|
||||||
if (pos != line.npos)
|
if (pos != (int)line.npos)
|
||||||
{
|
{
|
||||||
if (line.substr(0, pos) == "frames_per_row")
|
if (line.substr(0, pos) == "frames_per_row")
|
||||||
{
|
{
|
||||||
frames_per_row = std::stoi(line.substr(pos + 1, line.length()));
|
frames_per_row = std::stoi(line.substr(pos + 1, line.length()));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (line.substr(0, pos) == "frame_width")
|
else if (line.substr(0, pos) == "frame_width")
|
||||||
{
|
{
|
||||||
frame_width = std::stoi(line.substr(pos + 1, line.length()));
|
frame_width = std::stoi(line.substr(pos + 1, line.length()));
|
||||||
|
|
||||||
|
// Normaliza valores
|
||||||
|
if (frames_per_row == 0)
|
||||||
|
{
|
||||||
|
frames_per_row = texture->getWidth() / frame_width;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (line.substr(0, pos) == "frame_height")
|
else if (line.substr(0, pos) == "frame_height")
|
||||||
{
|
{
|
||||||
frame_height = std::stoi(line.substr(pos + 1, line.length()));
|
frame_height = std::stoi(line.substr(pos + 1, line.length()));
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Warning: file %s, unknown parameter \"%s\"\n", filename.c_str(), line.substr(0, pos).c_str());
|
printf("Warning: file %s, unknown parameter \"%s\"\n", filename.c_str(), line.substr(0, pos).c_str());
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public:
|
|||||||
void animate();
|
void animate();
|
||||||
|
|
||||||
// Establece el frame actual de la animación
|
// Establece el frame actual de la animación
|
||||||
void setCurrentFrame(std::string name, int num);
|
void setCurrentFrame(int num);
|
||||||
|
|
||||||
// Establece el valor del contador
|
// Establece el valor del contador
|
||||||
void setAnimationCounter(std::string name, int num);
|
void setAnimationCounter(std::string name, int num);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Constructor
|
// Constructor
|
||||||
Asset::Asset(std::string path)
|
Asset::Asset(std::string path)
|
||||||
{
|
{
|
||||||
mExecutablePath = path;
|
executablePath = path;
|
||||||
longest_name = 0;
|
longest_name = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,10 +16,10 @@ Asset::~Asset()
|
|||||||
void Asset::add(std::string file, enum assetType type, bool required)
|
void Asset::add(std::string file, enum assetType type, bool required)
|
||||||
{
|
{
|
||||||
item_t temp;
|
item_t temp;
|
||||||
temp.file = mExecutablePath + "/.." + file;
|
temp.file = executablePath + "/.." + file;
|
||||||
temp.type = type;
|
temp.type = type;
|
||||||
temp.required = required;
|
temp.required = required;
|
||||||
mFileList.push_back(temp);
|
fileList.push_back(temp);
|
||||||
|
|
||||||
const std::string filename = file.substr(file.find_last_of("\\/") + 1);
|
const std::string filename = file.substr(file.find_last_of("\\/") + 1);
|
||||||
longest_name = SDL_max(longest_name, filename.size());
|
longest_name = SDL_max(longest_name, filename.size());
|
||||||
@@ -28,9 +28,13 @@ void Asset::add(std::string file, enum assetType type, bool required)
|
|||||||
// Devuelve el fichero de un elemento de la lista a partir de una cadena
|
// Devuelve el fichero de un elemento de la lista a partir de una cadena
|
||||||
std::string Asset::get(std::string text)
|
std::string Asset::get(std::string text)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < mFileList.size(); i++)
|
for (auto f : fileList)
|
||||||
if (mFileList[i].file.find(text) != std::string::npos)
|
{
|
||||||
return mFileList[i].file;
|
if (f.file.find(text) != std::string::npos)
|
||||||
|
{
|
||||||
|
return f.file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
printf("Warning: file %s not found\n", text.c_str());
|
printf("Warning: file %s not found\n", text.c_str());
|
||||||
return "";
|
return "";
|
||||||
@@ -44,31 +48,43 @@ bool Asset::check()
|
|||||||
printf("\n** Checking files.\n");
|
printf("\n** Checking files.\n");
|
||||||
|
|
||||||
// Comprueba la lista de ficheros clasificandolos por tipo
|
// Comprueba la lista de ficheros clasificandolos por tipo
|
||||||
for (int type = 0; type < maxAssetType; type++)
|
for (int type = 0; type < maxAssetType; ++type)
|
||||||
{
|
{
|
||||||
// Comprueba si hay ficheros de ese tipo
|
// Comprueba si hay ficheros de ese tipo
|
||||||
bool any = false;
|
bool any = false;
|
||||||
|
|
||||||
for (int i = 0; i < mFileList.size(); i++)
|
for (auto f : fileList)
|
||||||
if ((mFileList[i].required) && (mFileList[i].type == type))
|
{
|
||||||
|
if ((f.required) && (f.type == type))
|
||||||
|
{
|
||||||
any = true;
|
any = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Si hay ficheros de ese tipo, comprueba si existen
|
// Si hay ficheros de ese tipo, comprueba si existen
|
||||||
if (any)
|
if (any)
|
||||||
{
|
{
|
||||||
printf("\n>> %s FILES\n", getTypeName(type).c_str());
|
printf("\n>> %s FILES\n", getTypeName(type).c_str());
|
||||||
|
|
||||||
for (int i = 0; i < mFileList.size(); i++)
|
for (auto f : fileList)
|
||||||
if ((mFileList[i].required) && (mFileList[i].type == type))
|
{
|
||||||
success &= checkFile(mFileList[i].file);
|
if ((f.required) && (f.type == type))
|
||||||
|
{
|
||||||
|
success &= checkFile(f.file);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resultado
|
// Resultado
|
||||||
if (success)
|
if (success)
|
||||||
|
{
|
||||||
printf("\n** All files OK.\n\n");
|
printf("\n** All files OK.\n\n");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
printf("\n** A file is missing. Exiting.\n\n");
|
printf("\n** A file is missing. Exiting.\n\n");
|
||||||
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
@@ -83,7 +99,7 @@ bool Asset::checkFile(std::string path)
|
|||||||
const std::string filename = path.substr(path.find_last_of("\\/") + 1);
|
const std::string filename = path.substr(path.find_last_of("\\/") + 1);
|
||||||
SDL_RWops *file = SDL_RWFromFile(path.c_str(), "r+b");
|
SDL_RWops *file = SDL_RWFromFile(path.c_str(), "r+b");
|
||||||
|
|
||||||
if (file != NULL)
|
if (file != nullptr)
|
||||||
{
|
{
|
||||||
result = "OK";
|
result = "OK";
|
||||||
success = true;
|
success = true;
|
||||||
@@ -104,30 +120,39 @@ std::string Asset::getTypeName(int type)
|
|||||||
case bitmap:
|
case bitmap:
|
||||||
return "BITMAP";
|
return "BITMAP";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case music:
|
case music:
|
||||||
return "MUSIC";
|
return "MUSIC";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case sound:
|
case sound:
|
||||||
return "SOUND";
|
return "SOUND";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case font:
|
case font:
|
||||||
return "FONT";
|
return "FONT";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lang:
|
case lang:
|
||||||
return "LANG";
|
return "LANG";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case data:
|
case data:
|
||||||
return "DATA";
|
return "DATA";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case room:
|
case room:
|
||||||
return "ROOM";
|
return "ROOM";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case enemy:
|
case enemy:
|
||||||
return "ENEMY";
|
return "ENEMY";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case item:
|
case item:
|
||||||
return "ITEM";
|
return "ITEM";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "ERROR";
|
return "ERROR";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ private:
|
|||||||
|
|
||||||
int longest_name; // Contiene la longitud del nombre de fichero mas largo
|
int longest_name; // Contiene la longitud del nombre de fichero mas largo
|
||||||
|
|
||||||
std::vector<item_t> mFileList;
|
std::vector<item_t> fileList;
|
||||||
std::string mExecutablePath;
|
std::string executablePath;
|
||||||
|
|
||||||
// Comprueba que existe un fichero
|
// Comprueba que existe un fichero
|
||||||
bool checkFile(std::string path);
|
bool checkFile(std::string path);
|
||||||
|
|||||||
@@ -1,18 +1,75 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "utils.h"
|
||||||
|
|
||||||
#ifndef CONST_H
|
#ifndef CONST_H
|
||||||
#define CONST_H
|
#define CONST_H
|
||||||
|
|
||||||
// Tamaño de bloque
|
// Textos
|
||||||
#define BLOCK 16
|
#define WINDOW_CAPTION "Volcano"
|
||||||
#define HALF_BLOCK 8
|
#define TEXT_COPYRIGHT "2016,2022 JAILDESIGNER & JAILBROTHER"
|
||||||
|
#define VERSION "0.6"
|
||||||
|
|
||||||
// Tamaño de la pantalla real
|
// Tamaño de bloque
|
||||||
#define SCREEN_WIDTH 320
|
#define BLOCK 8
|
||||||
#define SCREEN_HEIGHT 240
|
#define HALF_BLOCK 4
|
||||||
|
|
||||||
// Tamaño de la pantalla virtual
|
// Tamaño de la pantalla virtual
|
||||||
#define GAMECANVAS_WIDTH 320
|
#define GAMECANVAS_WIDTH 320
|
||||||
#define GAMECANVAS_HEIGHT 240
|
#define GAMECANVAS_HEIGHT 240
|
||||||
|
|
||||||
|
// Zona de juego
|
||||||
|
const int PLAY_AREA_X = (0 * BLOCK);
|
||||||
|
const int PLAY_AREA_Y = (0 * BLOCK);
|
||||||
|
const int PLAY_AREA_TOP = (0 * BLOCK);
|
||||||
|
const int PLAY_AREA_BOTTOM = (30 * BLOCK);
|
||||||
|
const int PLAY_AREA_LEFT = (0 * BLOCK);
|
||||||
|
const int PLAY_AREA_RIGHT = (40 * BLOCK);
|
||||||
|
const int PLAY_AREA_WIDTH = PLAY_AREA_RIGHT - PLAY_AREA_LEFT;
|
||||||
|
const int PLAY_AREA_HEIGHT = PLAY_AREA_BOTTOM - PLAY_AREA_TOP;
|
||||||
|
const int PLAY_AREA_CENTER_X = PLAY_AREA_LEFT + (PLAY_AREA_WIDTH / 2);
|
||||||
|
const int PLAY_AREA_CENTER_FIRST_QUARTER_X = (PLAY_AREA_WIDTH / 4);
|
||||||
|
const int PLAY_AREA_CENTER_THIRD_QUARTER_X = (PLAY_AREA_WIDTH / 4) * 3;
|
||||||
|
const int PLAY_AREA_CENTER_Y = PLAY_AREA_TOP + (PLAY_AREA_HEIGHT / 2);
|
||||||
|
const int PLAY_AREA_FIRST_QUARTER_Y = PLAY_AREA_HEIGHT / 4;
|
||||||
|
const int PLAY_AREA_THIRD_QUARTER_Y = (PLAY_AREA_HEIGHT / 4) * 3;
|
||||||
|
|
||||||
|
// Marcador
|
||||||
|
const int SCOREBOARD_X = 0;
|
||||||
|
const int SCOREBOARD_Y = 0;
|
||||||
|
const int SCOREBOARD_TOP = (0 * BLOCK);
|
||||||
|
const int SCOREBOARD_BOTTOM = (4 * BLOCK);
|
||||||
|
const int SCOREBOARD_LEFT = (0 * BLOCK);
|
||||||
|
const int SCOREBOARD_RIGHT = (40 * BLOCK);
|
||||||
|
const int SCOREBOARD_WIDTH = SCOREBOARD_RIGHT - SCOREBOARD_LEFT;
|
||||||
|
const int SCOREBOARD_HEIGHT = SCOREBOARD_BOTTOM - SCOREBOARD_TOP;
|
||||||
|
|
||||||
|
// Anclajes de pantalla
|
||||||
|
const int GAMECANVAS_CENTER_X = GAMECANVAS_WIDTH / 2;
|
||||||
|
const int GAMECANVAS_FIRST_QUARTER_X = GAMECANVAS_WIDTH / 4;
|
||||||
|
const int GAMECANVAS_THIRD_QUARTER_X = (GAMECANVAS_WIDTH / 4) * 3;
|
||||||
|
const int GAMECANVAS_CENTER_Y = GAMECANVAS_HEIGHT / 2;
|
||||||
|
const int GAMECANVAS_FIRST_QUARTER_Y = GAMECANVAS_HEIGHT / 4;
|
||||||
|
const int GAMECANVAS_THIRD_QUARTER_Y = (GAMECANVAS_HEIGHT / 4) * 3;
|
||||||
|
|
||||||
|
// Secciones del programa
|
||||||
|
#define SECTION_PROG_LOGO 0
|
||||||
|
#define SECTION_PROG_INTRO 1
|
||||||
|
#define SECTION_PROG_TITLE 2
|
||||||
|
#define SECTION_PROG_CREDITS 3
|
||||||
|
#define SECTION_PROG_GAME 4
|
||||||
|
#define SECTION_PROG_QUIT 5
|
||||||
|
|
||||||
|
// Subsecciones
|
||||||
|
#define SUBSECTION_GAME_PLAY 0
|
||||||
|
#define SUBSECTION_GAME_PAUSE 1
|
||||||
|
#define SUBSECTION_GAME_GAMEOVER 2
|
||||||
|
#define SUBSECTION_TITLE_1 3
|
||||||
|
#define SUBSECTION_TITLE_2 4
|
||||||
|
#define SUBSECTION_TITLE_3 5
|
||||||
|
#define SUBSECTION_TITLE_INSTRUCTIONS 6
|
||||||
|
|
||||||
|
// Colores
|
||||||
|
const color_t borderColor = {0x27, 0x27, 0x36};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
104
source/debug.cpp
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
// Constructor
|
||||||
|
Debug::Debug(SDL_Renderer *renderer, Screen *screen, Asset *asset)
|
||||||
|
{
|
||||||
|
// Copia la dirección de los objetos
|
||||||
|
this->renderer = renderer;
|
||||||
|
this->screen = screen;
|
||||||
|
this->asset = asset;
|
||||||
|
|
||||||
|
// Reserva memoria para los punteros
|
||||||
|
text = new Text(asset->get("debug.png"), asset->get("debug.txt"), renderer);
|
||||||
|
|
||||||
|
// Inicializa variables
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Destructor
|
||||||
|
Debug::~Debug()
|
||||||
|
{
|
||||||
|
delete text;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actualiza las variables
|
||||||
|
void Debug::update()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja en pantalla
|
||||||
|
void Debug::render()
|
||||||
|
{
|
||||||
|
int y = this->y;
|
||||||
|
int w = 0;
|
||||||
|
|
||||||
|
for (auto s : slot)
|
||||||
|
{
|
||||||
|
text->write(x, y, s);
|
||||||
|
w = (std::max(w, (int)s.length()));
|
||||||
|
y += text->getCharacterSize() + 1;
|
||||||
|
if (y > 192 - text->getCharacterSize())
|
||||||
|
{
|
||||||
|
y = this->y;
|
||||||
|
x += w * text->getCharacterSize() + 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
y = 0;
|
||||||
|
for (auto l : log)
|
||||||
|
{
|
||||||
|
text->writeColored(x + 10, y, l, {255, 255, 255});
|
||||||
|
y += text->getCharacterSize() + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Establece la posición donde se colocará la información de debug
|
||||||
|
void Debug::setPos(SDL_Point p)
|
||||||
|
{
|
||||||
|
x = p.x;
|
||||||
|
y = p.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Añade un texto para mostrar
|
||||||
|
void Debug::add(std::string text)
|
||||||
|
{
|
||||||
|
slot.push_back(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Borra la información de debug
|
||||||
|
void Debug::clear()
|
||||||
|
{
|
||||||
|
slot.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Añade un texto para mostrar en el apartado log
|
||||||
|
void Debug::addToLog(std::string text)
|
||||||
|
{
|
||||||
|
log.push_back(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Borra la información de debug del apartado log
|
||||||
|
void Debug::clearLog()
|
||||||
|
{
|
||||||
|
log.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Establece el valor de la variable
|
||||||
|
void Debug::setEnabled(bool value)
|
||||||
|
{
|
||||||
|
enabled = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtiene el valor de la variable
|
||||||
|
bool Debug::getEnabled()
|
||||||
|
{
|
||||||
|
return enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cambia el valor de la variable
|
||||||
|
void Debug::switchEnabled()
|
||||||
|
{
|
||||||
|
enabled = !enabled;
|
||||||
|
}
|
||||||
67
source/debug.h
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
|
#include "const.h"
|
||||||
|
#include "utils.h"
|
||||||
|
#include "screen.h"
|
||||||
|
#include "asset.h"
|
||||||
|
#include "text.h"
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#ifndef DEBUG_H
|
||||||
|
#define DEBUG_H
|
||||||
|
|
||||||
|
// Clase Debug
|
||||||
|
class Debug
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
SDL_Renderer *renderer; // El renderizador de la ventana
|
||||||
|
Screen *screen; // Objeto encargado de dibujar en pantalla
|
||||||
|
Asset *asset; // Objeto con los ficheros de recursos
|
||||||
|
Text *text; // Objeto encargado de escribir texto en pantalla
|
||||||
|
std::vector<std::string> slot; // Vector con los textos a escribir
|
||||||
|
std::vector<std::string> log; // Vector con los textos a escribir
|
||||||
|
int x; // Posicion donde escribir el texto de debug
|
||||||
|
int y; // Posición donde escribir el texto de debug
|
||||||
|
bool enabled; // Indica si esta activo el modo debug
|
||||||
|
|
||||||
|
public:
|
||||||
|
// Constructor
|
||||||
|
Debug(SDL_Renderer *renderer, Screen *screen, Asset *asset);
|
||||||
|
|
||||||
|
// Destructor
|
||||||
|
~Debug();
|
||||||
|
|
||||||
|
// Actualiza las variables
|
||||||
|
void update();
|
||||||
|
|
||||||
|
// Dibuja en pantalla
|
||||||
|
void render();
|
||||||
|
|
||||||
|
// Establece la posición donde se colocará la información de debug
|
||||||
|
void setPos(SDL_Point p);
|
||||||
|
|
||||||
|
// Añade un texto para mostrar
|
||||||
|
void add(std::string text);
|
||||||
|
|
||||||
|
// Borra la información de debug
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
// Añade un texto para mostrar en el apartado log
|
||||||
|
void addToLog(std::string text);
|
||||||
|
|
||||||
|
// Borra la información de debug del apartado log
|
||||||
|
void clearLog();
|
||||||
|
|
||||||
|
// Establece el valor de la variable
|
||||||
|
void setEnabled(bool value);
|
||||||
|
|
||||||
|
// Obtiene el valor de la variable
|
||||||
|
bool getEnabled();
|
||||||
|
|
||||||
|
// Cambia el valor de la variable
|
||||||
|
void switchEnabled();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -15,8 +15,7 @@ Enemy::Enemy(enemy_t enemy)
|
|||||||
renderer = enemy.renderer;
|
renderer = enemy.renderer;
|
||||||
|
|
||||||
// Crea objetos
|
// Crea objetos
|
||||||
texture = new LTexture();
|
texture = new LTexture(renderer, asset->get(enemy.tileset));
|
||||||
loadTextureFromFile(texture, asset->get(enemy.tileset), renderer);
|
|
||||||
sprite = new AnimatedSprite(texture, renderer, asset->get(enemy.animation));
|
sprite = new AnimatedSprite(texture, renderer, asset->get(enemy.animation));
|
||||||
|
|
||||||
// Obten el resto de valores
|
// Obten el resto de valores
|
||||||
@@ -27,7 +26,6 @@ Enemy::Enemy(enemy_t enemy)
|
|||||||
|
|
||||||
sprite->setVelX(enemy.vx);
|
sprite->setVelX(enemy.vx);
|
||||||
sprite->setVelY(enemy.vy);
|
sprite->setVelY(enemy.vy);
|
||||||
sprite->setCurrentAnimation();
|
|
||||||
sprite->setFlip(enemy.vx > 0 ? SDL_FLIP_NONE : SDL_FLIP_HORIZONTAL);
|
sprite->setFlip(enemy.vx > 0 ? SDL_FLIP_NONE : SDL_FLIP_HORIZONTAL);
|
||||||
|
|
||||||
collider = getRect();
|
collider = getRect();
|
||||||
|
|||||||
@@ -114,53 +114,66 @@ bool EnemyEngine::setEnemy(enemy_t *enemy, SDL_Point *p1, SDL_Point *p2, std::st
|
|||||||
{
|
{
|
||||||
enemy->tileset = value;
|
enemy->tileset = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "animation")
|
else if (var == "animation")
|
||||||
{
|
{
|
||||||
enemy->animation = value;
|
enemy->animation = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "width")
|
else if (var == "width")
|
||||||
{
|
{
|
||||||
enemy->w = std::stof(value);
|
enemy->w = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "height")
|
else if (var == "height")
|
||||||
{
|
{
|
||||||
enemy->h = std::stof(value);
|
enemy->h = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x")
|
else if (var == "x")
|
||||||
{
|
{
|
||||||
enemy->x = std::stof(value) * tile_size;
|
enemy->x = std::stof(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y")
|
else if (var == "y")
|
||||||
{
|
{
|
||||||
enemy->y = std::stof(value) * tile_size;
|
enemy->y = std::stof(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "vx")
|
else if (var == "vx")
|
||||||
{
|
{
|
||||||
enemy->vx = std::stof(value);
|
enemy->vx = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "vy")
|
else if (var == "vy")
|
||||||
{
|
{
|
||||||
enemy->vy = std::stof(value);
|
enemy->vy = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x1")
|
else if (var == "x1")
|
||||||
{
|
{
|
||||||
p1->x = std::stoi(value) * tile_size;
|
p1->x = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x2")
|
else if (var == "x2")
|
||||||
{
|
{
|
||||||
p2->x = std::stoi(value) * tile_size;
|
p2->x = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y1")
|
else if (var == "y1")
|
||||||
{
|
{
|
||||||
p1->y = std::stoi(value) * tile_size;
|
p1->y = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y2")
|
else if (var == "y2")
|
||||||
{
|
{
|
||||||
p2->y = std::stoi(value) * tile_size;
|
p2->y = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "[/path]")
|
else if (var == "[/path]")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
@@ -168,3 +181,17 @@ bool EnemyEngine::setEnemy(enemy_t *enemy, SDL_Point *p1, SDL_Point *p2, std::st
|
|||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Comprueba las colisiones con los enemigos
|
||||||
|
bool EnemyEngine::checkEnemyCollision(SDL_Rect &rect)
|
||||||
|
{
|
||||||
|
for (auto enemy : enemies)
|
||||||
|
{
|
||||||
|
if (checkCollision(rect, enemy->getCollider()))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
@@ -41,6 +41,9 @@ public:
|
|||||||
|
|
||||||
// Actualiza las variables del objeto
|
// Actualiza las variables del objeto
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
|
// Comprueba las colisiones con los enemigos
|
||||||
|
bool checkEnemyCollision(SDL_Rect &rect);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
322
source/game.cpp
@@ -1,24 +1,31 @@
|
|||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
|
Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Debug *debug)
|
||||||
{
|
{
|
||||||
// Copia punteros
|
// Copia punteros
|
||||||
this->renderer = renderer;
|
this->renderer = renderer;
|
||||||
this->asset = asset;
|
this->asset = asset;
|
||||||
this->screen = screen;
|
this->screen = screen;
|
||||||
this->input = input;
|
this->input = input;
|
||||||
|
this->debug = debug;
|
||||||
|
this->debug->setEnabled(true);
|
||||||
|
|
||||||
// Reserva memoria para los objetos
|
// Reserva memoria para los objetos
|
||||||
|
scoreboard = new ScoreBoard(renderer, asset, input, &board);
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
itemTracker = new ItemTracker();
|
itemTracker = new ItemTracker();
|
||||||
map = new Map(asset->get("01.map"), renderer, asset, itemTracker);
|
map = new Map(asset->get("01.map"), renderer, asset, itemTracker);
|
||||||
player = new Player(renderer, asset, input, map);
|
player = new Player(renderer, asset, input, map, debug, &board.diamonds);
|
||||||
enemyEngine = new EnemyEngine(renderer, asset, player, map, asset->get(map->getEnemyFile()));
|
enemyEngine = new EnemyEngine(renderer, asset, player, map, asset->get(map->getEnemyFile()));
|
||||||
// enemyEngine->setEnemies(asset->get(map->getEnemyFile()));
|
|
||||||
debugText = new Text(asset->get("debug.png"), asset->get("debug.txt"), renderer);
|
|
||||||
music = JA_LoadMusic(asset->get("music_surface.ogg").c_str());
|
music = JA_LoadMusic(asset->get("music_surface.ogg").c_str());
|
||||||
|
|
||||||
|
// Crea la textura para dibujar los sprites
|
||||||
|
spriteLayer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT);
|
||||||
|
if (spriteLayer == nullptr)
|
||||||
|
printf("Error: map_layer0 could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||||
|
SDL_SetTextureBlendMode(spriteLayer, SDL_BLENDMODE_BLEND);
|
||||||
|
|
||||||
// Inicializa variables
|
// Inicializa variables
|
||||||
ticks = 0;
|
ticks = 0;
|
||||||
ticksSpeed = 15;
|
ticksSpeed = 15;
|
||||||
@@ -26,29 +33,33 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
|
|||||||
section.name = SECTION_PROG_GAME;
|
section.name = SECTION_PROG_GAME;
|
||||||
section.subsection = SUBSECTION_GAME_PLAY;
|
section.subsection = SUBSECTION_GAME_PLAY;
|
||||||
|
|
||||||
musicEnabled = true;
|
musicEnabled = !debug->getEnabled();
|
||||||
debug = false;
|
|
||||||
musicEnabled = !debug;
|
board.diamonds = 0;
|
||||||
|
board.lives = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
Game::~Game()
|
Game::~Game()
|
||||||
{
|
{
|
||||||
|
SDL_DestroyTexture(spriteLayer);
|
||||||
|
|
||||||
|
delete scoreboard;
|
||||||
delete eventHandler;
|
delete eventHandler;
|
||||||
delete itemTracker;
|
delete itemTracker;
|
||||||
delete map;
|
delete map;
|
||||||
delete player;
|
delete player;
|
||||||
delete enemyEngine;
|
delete enemyEngine;
|
||||||
delete debugText;
|
|
||||||
JA_DeleteMusic(music);
|
JA_DeleteMusic(music);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bucle para el juego
|
// Bucle para el juego
|
||||||
section_t Game::run()
|
section_t Game::run()
|
||||||
{
|
{
|
||||||
if (musicEnabled)
|
|
||||||
{
|
|
||||||
JA_PlayMusic(music);
|
JA_PlayMusic(music);
|
||||||
|
if (!musicEnabled)
|
||||||
|
{
|
||||||
|
JA_PauseMusic();
|
||||||
}
|
}
|
||||||
|
|
||||||
while (section.name == SECTION_PROG_GAME)
|
while (section.name == SECTION_PROG_GAME)
|
||||||
@@ -75,6 +86,82 @@ void Game::update()
|
|||||||
// Actualiza el contador de ticks
|
// Actualiza el contador de ticks
|
||||||
ticks = SDL_GetTicks();
|
ticks = SDL_GetTicks();
|
||||||
|
|
||||||
|
// Comprueba los eventos de la cola
|
||||||
|
checkEventHandler();
|
||||||
|
|
||||||
|
// Actualiza los objetos
|
||||||
|
debug->clear();
|
||||||
|
scoreboard->update();
|
||||||
|
map->update();
|
||||||
|
enemyEngine->update();
|
||||||
|
player->update();
|
||||||
|
|
||||||
|
checkPlayerEnemyCollisions();
|
||||||
|
checkIfPlayerIsAlive();
|
||||||
|
checkScreenBorders();
|
||||||
|
|
||||||
|
updateDebugInfo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pinta los objetos en pantalla
|
||||||
|
void Game::render()
|
||||||
|
{
|
||||||
|
// Rellena las texturas
|
||||||
|
fillSpriteTexture();
|
||||||
|
scoreboard->fillTexture();
|
||||||
|
|
||||||
|
// Prepara para dibujar el frame
|
||||||
|
screen->start();
|
||||||
|
screen->clean();
|
||||||
|
|
||||||
|
// Dibuja la capa 0
|
||||||
|
map->renderLayer0();
|
||||||
|
|
||||||
|
// Dibuja la capa 1
|
||||||
|
map->renderLayer1();
|
||||||
|
|
||||||
|
// Dibuja la capa de sprites
|
||||||
|
renderSprites();
|
||||||
|
|
||||||
|
// Dibuja el marcador
|
||||||
|
scoreboard->render();
|
||||||
|
|
||||||
|
// Dibuja la información de debug
|
||||||
|
renderDebugInfo();
|
||||||
|
|
||||||
|
// Actualiza la pantalla
|
||||||
|
screen->blit();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja los sprites en la textura
|
||||||
|
void Game::fillSpriteTexture()
|
||||||
|
{
|
||||||
|
// Cambia el puntero del renderizador a la textura y la limpia
|
||||||
|
SDL_SetRenderTarget(renderer, spriteLayer);
|
||||||
|
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0x00);
|
||||||
|
SDL_RenderClear(renderer);
|
||||||
|
|
||||||
|
// Dibuja los sprites en la textura
|
||||||
|
map->renderActors();
|
||||||
|
enemyEngine->render();
|
||||||
|
player->render();
|
||||||
|
|
||||||
|
// Vuelve a colocar el renderizador apuntando a la pantalla
|
||||||
|
SDL_SetRenderTarget(renderer, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja los sprites
|
||||||
|
void Game::renderSprites()
|
||||||
|
{
|
||||||
|
// Copia la textura al renderizador
|
||||||
|
SDL_Rect rect = {PLAY_AREA_X, PLAY_AREA_Y, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT};
|
||||||
|
SDL_RenderCopy(renderer, spriteLayer, NULL, &rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Comprueba los eventos de la cola
|
||||||
|
void Game::checkEventHandler()
|
||||||
|
{
|
||||||
// Comprueba los eventos que hay en la cola
|
// Comprueba los eventos que hay en la cola
|
||||||
while (SDL_PollEvent(eventHandler) != 0)
|
while (SDL_PollEvent(eventHandler) != 0)
|
||||||
{
|
{
|
||||||
@@ -84,68 +171,77 @@ void Game::update()
|
|||||||
section.name = SECTION_PROG_QUIT;
|
section.name = SECTION_PROG_QUIT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
else if ((eventHandler->type == SDL_KEYDOWN) and (eventHandler->key.repeat == 0))
|
||||||
|
|
||||||
player->update();
|
|
||||||
checkScreenBorders();
|
|
||||||
enemyEngine->update();
|
|
||||||
map->update();
|
|
||||||
checkInput();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Pinta los objetos en pantalla
|
|
||||||
void Game::render()
|
|
||||||
{
|
|
||||||
// Prepara para dibujar el frame
|
|
||||||
screen->start();
|
|
||||||
screen->clean();
|
|
||||||
|
|
||||||
// Dibuja los objetos
|
|
||||||
map->render();
|
|
||||||
enemyEngine->render();
|
|
||||||
player->render();
|
|
||||||
renderDebugInfo();
|
|
||||||
|
|
||||||
// Actualiza la pantalla
|
|
||||||
screen->blit();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Comprueba la entrada
|
|
||||||
void Game::checkInput()
|
|
||||||
{
|
|
||||||
if (input->checkInput(INPUT_BUTTON_2, REPEAT_FALSE))
|
|
||||||
{
|
{
|
||||||
debug = !debug;
|
switch (eventHandler->key.keysym.scancode)
|
||||||
musicEnabled = !debug;
|
|
||||||
if (musicEnabled)
|
|
||||||
{
|
{
|
||||||
JA_PlayMusic(music);
|
case SDL_SCANCODE_ESCAPE:
|
||||||
}
|
section.name = SECTION_PROG_QUIT;
|
||||||
else
|
break;
|
||||||
{
|
|
||||||
JA_StopMusic();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input->checkInput(INPUT_BUTTON_3, REPEAT_FALSE))
|
case SDL_SCANCODE_D:
|
||||||
{
|
debug->switchEnabled();
|
||||||
|
musicEnabled = !debug->getEnabled();
|
||||||
|
musicEnabled ? JA_ResumeMusic() : JA_PauseMusic();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_M:
|
||||||
|
musicEnabled = !musicEnabled;
|
||||||
|
musicEnabled ? JA_ResumeMusic() : JA_PauseMusic();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_R:
|
||||||
delete map;
|
delete map;
|
||||||
map = new Map(asset->get("01.map"), renderer, asset, itemTracker);
|
map = new Map(asset->get("01.map"), renderer, asset, itemTracker);
|
||||||
delete player;
|
delete player;
|
||||||
player = new Player(renderer, asset, input, map);
|
player = new Player(renderer, asset, input, map, debug, &board.diamonds);
|
||||||
}
|
delete enemyEngine;
|
||||||
|
enemyEngine = new EnemyEngine(renderer, asset, player, map, asset->get(map->getEnemyFile()));
|
||||||
|
break;
|
||||||
|
|
||||||
if (input->checkInput(INPUT_BUTTON_ESCAPE, REPEAT_FALSE))
|
case SDL_SCANCODE_F:
|
||||||
{
|
screen->switchVideoMode();
|
||||||
section.name = SECTION_PROG_QUIT;
|
reLoadTextures();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F1:
|
||||||
|
screen->setWindowSize(1);
|
||||||
|
reLoadTextures();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F2:
|
||||||
|
screen->setWindowSize(2);
|
||||||
|
reLoadTextures();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F3:
|
||||||
|
screen->setWindowSize(3);
|
||||||
|
reLoadTextures();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F4:
|
||||||
|
screen->setWindowSize(4);
|
||||||
|
reLoadTextures();
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Muestra información de depuración
|
// Pasa la información de debug
|
||||||
|
void Game::updateDebugInfo()
|
||||||
|
{
|
||||||
|
debug->add("R - Reload player and map");
|
||||||
|
debug->add("D - Toggle debug mode");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pone la información de debug en pantalla
|
||||||
void Game::renderDebugInfo()
|
void Game::renderDebugInfo()
|
||||||
{
|
{
|
||||||
if (!debug)
|
if (!debug->getEnabled())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -161,53 +257,14 @@ void Game::renderDebugInfo()
|
|||||||
SDL_RenderDrawLine(renderer, i, 0, i, 240);
|
SDL_RenderDrawLine(renderer, i, 0, i, 240);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pinta el texto
|
|
||||||
int line = 0;
|
|
||||||
std::string text = "";
|
|
||||||
|
|
||||||
text = "R - Reload player and map";
|
|
||||||
debugText->write(1, 210, text, -1);
|
|
||||||
|
|
||||||
text = "D - Toggle debug mode";
|
|
||||||
debugText->write(1, 216, text, -1);
|
|
||||||
|
|
||||||
text = std::to_string((int)player->sprite->getPosX()) + "," + std::to_string((int)player->sprite->getPosY()) + "," + std::to_string((int)player->sprite->getWidth()) + "," + std::to_string((int)player->sprite->getHeight());
|
|
||||||
debugText->write(0, line, text, -1);
|
|
||||||
|
|
||||||
text = "VY " + std::to_string(player->vy) + " " + std::to_string(player->jumpStrenght);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "VX " + std::to_string(player->vx);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "jump_pressed " + std::to_string(player->jumpPressed);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "isOnFloor " + std::to_string(player->isOnFloor());
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
const std::string foot_x = std::to_string(player->underFeet[0].x);
|
|
||||||
const std::string foot_y = std::to_string(player->underFeet[0].y);
|
|
||||||
const std::string gettile = std::to_string(player->map->getTile(player->underFeet[0]));
|
|
||||||
text = "getTile(" + foot_x + "," + foot_y + ") = " + gettile;
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "state " + std::to_string(player->state);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = map->getRoomFileName(b_top) + " " + map->getRoomFileName(b_right) + " " + map->getRoomFileName(b_bottom) + " " + map->getRoomFileName(b_left);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "hookedOn = " + std::to_string(player->hookedOnMovingPlatform);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
text = "DIAMONDS = " + std::to_string(player->diamonds);
|
|
||||||
debugText->write(0, line += 6, text, -1);
|
|
||||||
|
|
||||||
// Pinta mascaras
|
// Pinta mascaras
|
||||||
SDL_SetRenderDrawColor(renderer, 0, 255, 0, 128);
|
SDL_SetRenderDrawColor(renderer, 0, 255, 0, 192);
|
||||||
SDL_Rect rect = player->sprite->getRect();
|
SDL_Rect rect = player->getRect();
|
||||||
SDL_RenderFillRect(renderer, &rect);
|
SDL_RenderFillRect(renderer, &rect);
|
||||||
|
|
||||||
|
// Pinta el texto
|
||||||
|
debug->setPos({1, 1});
|
||||||
|
debug->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cambia el mapa
|
// Cambia el mapa
|
||||||
@@ -246,3 +303,58 @@ void Game::checkScreenBorders()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recarga las texturas
|
||||||
|
void Game::reLoadTextures()
|
||||||
|
{
|
||||||
|
map->reLoadTextures();
|
||||||
|
player->reLoadTextures();
|
||||||
|
scoreboard->reLoadTexture();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Comprueba las colisiones del jugador con los enemigos
|
||||||
|
bool Game::checkPlayerEnemyCollisions()
|
||||||
|
{
|
||||||
|
if (enemyEngine->checkEnemyCollision(player->getCollider()))
|
||||||
|
{
|
||||||
|
debug->add("COLLISION");
|
||||||
|
player->setLivingState(l_dead);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Comprueba si el jugador esta vivo
|
||||||
|
void Game::checkIfPlayerIsAlive()
|
||||||
|
{
|
||||||
|
if (player->getLivingState() == l_dead)
|
||||||
|
{
|
||||||
|
killPlayer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mata al jugador
|
||||||
|
void Game::killPlayer()
|
||||||
|
{
|
||||||
|
// if (player->getInvincible())
|
||||||
|
//{
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
board.lives--;
|
||||||
|
|
||||||
|
// Destruye el mapa, el jugador y los enemigos
|
||||||
|
//delete map;
|
||||||
|
delete player;
|
||||||
|
//delete enemyEngine;
|
||||||
|
|
||||||
|
// Sonido
|
||||||
|
// JA_PlaySound(deathSound);
|
||||||
|
|
||||||
|
// setBlackScreen();
|
||||||
|
|
||||||
|
// Crea el nuevo mapa, el nuevo jugador y nuevos enemigos
|
||||||
|
//map = new Map(asset->get("01.map"), renderer, asset, itemTracker);
|
||||||
|
player = new Player(renderer, asset, input, map, debug, &board.diamonds);
|
||||||
|
//enemyEngine = new EnemyEngine(renderer, asset, player, map, asset->get(map->getEnemyFile()));
|
||||||
|
}
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
#include "item_tracker.h"
|
#include "item_tracker.h"
|
||||||
#include "enemy_engine.h"
|
#include "enemy_engine.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
#include "scoreboard.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#ifndef GAME_H
|
#ifndef GAME_H
|
||||||
#define GAME_H
|
#define GAME_H
|
||||||
@@ -23,15 +25,17 @@ private:
|
|||||||
Input *input; // Objeto Input para gestionar las entradas
|
Input *input; // Objeto Input para gestionar las entradas
|
||||||
SDL_Event *eventHandler; // Manejador de eventos
|
SDL_Event *eventHandler; // Manejador de eventos
|
||||||
JA_Music music; // Contiene la musica que se reproduce durante el juego
|
JA_Music music; // Contiene la musica que se reproduce durante el juego
|
||||||
Text *debugText; // Objeto para escribir texto con información de debug
|
|
||||||
Map *map; // Objeto encargado de gestionar el mapeado del juego
|
Map *map; // Objeto encargado de gestionar el mapeado del juego
|
||||||
Player *player; // Objeto para gestionar el jugador
|
Player *player; // Objeto para gestionar el jugador
|
||||||
ItemTracker *itemTracker; // Objeto para gestionar los items recogidos
|
ItemTracker *itemTracker; // Objeto para gestionar los items recogidos
|
||||||
EnemyEngine *enemyEngine; // Objeto encargado de gestionar los enemigos
|
EnemyEngine *enemyEngine; // Objeto encargado de gestionar los enemigos
|
||||||
|
ScoreBoard *scoreboard; // Objeto encargado de gestionar el marcador
|
||||||
|
board_t board; // Estructura con los datos del marcador
|
||||||
|
Debug *debug; // Objeto para gestionar la información de debug
|
||||||
|
SDL_Texture *spriteLayer; // Textura para dibujar los sprites
|
||||||
section_t section; // Seccion actual dentro del programa
|
section_t section; // Seccion actual dentro del programa
|
||||||
int ticks; // Contador de ticks para ajustar la velocidad del programa
|
Uint32 ticks; // Contador de ticks para ajustar la velocidad del programa
|
||||||
int ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
Uint32 ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
||||||
bool debug; // Indica si esta activo el modo de depuración
|
|
||||||
bool musicEnabled; // Indica si la musica puede sonar o no
|
bool musicEnabled; // Indica si la musica puede sonar o no
|
||||||
|
|
||||||
// Actualiza el juego, las variables, comprueba la entrada, etc.
|
// Actualiza el juego, las variables, comprueba la entrada, etc.
|
||||||
@@ -40,8 +44,17 @@ private:
|
|||||||
// Pinta los objetos en pantalla
|
// Pinta los objetos en pantalla
|
||||||
void render();
|
void render();
|
||||||
|
|
||||||
// Comprueba la entrada
|
// Dibuja los sprites en la textura
|
||||||
void checkInput();
|
void fillSpriteTexture();
|
||||||
|
|
||||||
|
// Copia la textura de sprites a la pantalla
|
||||||
|
void renderSprites();
|
||||||
|
|
||||||
|
// Comprueba los eventos de la cola
|
||||||
|
void checkEventHandler();
|
||||||
|
|
||||||
|
// Pone la información de debug en pantalla
|
||||||
|
void updateDebugInfo();
|
||||||
|
|
||||||
// Muestra información de depuración
|
// Muestra información de depuración
|
||||||
void renderDebugInfo();
|
void renderDebugInfo();
|
||||||
@@ -52,9 +65,21 @@ private:
|
|||||||
// Comprueba si el jugador está en el borde y se ha de cambiar el mapa
|
// Comprueba si el jugador está en el borde y se ha de cambiar el mapa
|
||||||
void checkScreenBorders();
|
void checkScreenBorders();
|
||||||
|
|
||||||
|
// Recarga las texturas
|
||||||
|
void reLoadTextures();
|
||||||
|
|
||||||
|
// Comprueba las colisiones del jugador con los enemigos
|
||||||
|
bool checkPlayerEnemyCollisions();
|
||||||
|
|
||||||
|
// Comprueba si el jugador esta vivo
|
||||||
|
void checkIfPlayerIsAlive();
|
||||||
|
|
||||||
|
// Mata al jugador
|
||||||
|
void killPlayer();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input);
|
Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Debug *debug);
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Game();
|
~Game();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Input::Input(std::string file)
|
|||||||
dbPath = file;
|
dbPath = file;
|
||||||
|
|
||||||
// Inicializa las variables
|
// Inicializa las variables
|
||||||
for (int i = 0; i < 17; i++)
|
for (int i = 0; i < 17; ++i)
|
||||||
{
|
{
|
||||||
keyBindings[i].scancode = 0;
|
keyBindings[i].scancode = 0;
|
||||||
keyBindings[i].active = false;
|
keyBindings[i].active = false;
|
||||||
@@ -23,7 +23,7 @@ Input::Input(std::string file)
|
|||||||
// Destructor
|
// Destructor
|
||||||
Input::~Input()
|
Input::~Input()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < numGamepads; i++)
|
for (int i = 0; i < numGamepads; ++i)
|
||||||
connectedControllers[i] = nullptr;
|
connectedControllers[i] = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,6 +130,43 @@ bool Input::checkInput(Uint8 input, bool repeat, int device, int index)
|
|||||||
return (successKeyboard || successGameController);
|
return (successKeyboard || successGameController);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Comprueba si hay almenos un input activo
|
||||||
|
bool Input::checkAnyInput(int device, int index)
|
||||||
|
{
|
||||||
|
bool successKeyboard = false;
|
||||||
|
bool successGameController = false;
|
||||||
|
|
||||||
|
if (device == INPUT_USE_ANY)
|
||||||
|
index = 0;
|
||||||
|
|
||||||
|
if ((device == INPUT_USE_KEYBOARD) || (device == INPUT_USE_ANY))
|
||||||
|
{
|
||||||
|
const Uint8 *mKeystates = SDL_GetKeyboardState(NULL);
|
||||||
|
|
||||||
|
for (int i = 0; i < 17; ++i)
|
||||||
|
{
|
||||||
|
if (mKeystates[keyBindings[i].scancode] != 0)
|
||||||
|
{
|
||||||
|
successKeyboard |= true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gameControllerFound())
|
||||||
|
if ((device == INPUT_USE_GAMECONTROLLER) || (device == INPUT_USE_ANY))
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 17; ++i)
|
||||||
|
{
|
||||||
|
if (SDL_GameControllerGetButton(connectedControllers[index], gameControllerBindings[i].button) != 0)
|
||||||
|
{
|
||||||
|
successGameController |= true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return (successKeyboard || successGameController);
|
||||||
|
}
|
||||||
|
|
||||||
// Comprueba si hay un mando conectado
|
// Comprueba si hay un mando conectado
|
||||||
bool Input::discoverGameController()
|
bool Input::discoverGameController()
|
||||||
{
|
{
|
||||||
@@ -145,18 +182,18 @@ bool Input::discoverGameController()
|
|||||||
numGamepads = 0;
|
numGamepads = 0;
|
||||||
|
|
||||||
// Cuenta el numero de mandos
|
// Cuenta el numero de mandos
|
||||||
for (int i = 0; i < nJoysticks; i++)
|
for (int i = 0; i < nJoysticks; ++i)
|
||||||
if (SDL_IsGameController(i))
|
if (SDL_IsGameController(i))
|
||||||
numGamepads++;
|
numGamepads++;
|
||||||
|
|
||||||
printf("\nChecking for game controllers...\n");
|
printf("** Checking for game controllers ...\n");
|
||||||
printf("%i joysticks found, %i are gamepads\n", nJoysticks, numGamepads);
|
printf("%i joysticks found, %i are gamepads\n\n", nJoysticks, numGamepads);
|
||||||
|
|
||||||
if (numGamepads > 0)
|
if (numGamepads > 0)
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
|
|
||||||
for (int i = 0; i < numGamepads; i++)
|
for (int i = 0; i < numGamepads; ++i)
|
||||||
{
|
{
|
||||||
// Abre el mando y lo añade a la lista
|
// Abre el mando y lo añade a la lista
|
||||||
SDL_GameController *pad = SDL_GameControllerOpen(i);
|
SDL_GameController *pad = SDL_GameControllerOpen(i);
|
||||||
@@ -174,7 +211,7 @@ bool Input::discoverGameController()
|
|||||||
std::cout << "SDL_GetError() = " << SDL_GetError() << std::endl;
|
std::cout << "SDL_GetError() = " << SDL_GetError() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
//mGameController = connectedControllers[0];
|
// mGameController = connectedControllers[0];
|
||||||
SDL_GameControllerEventState(SDL_ENABLE);
|
SDL_GameControllerEventState(SDL_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ public:
|
|||||||
// Comprueba si un input esta activo
|
// Comprueba si un input esta activo
|
||||||
bool checkInput(Uint8 input, bool repeat, int device = INPUT_USE_ANY, int index = 0);
|
bool checkInput(Uint8 input, bool repeat, int device = INPUT_USE_ANY, int index = 0);
|
||||||
|
|
||||||
|
// Comprueba si hay almenos un input activo
|
||||||
|
bool checkAnyInput(int device = INPUT_USE_ANY, int index = 0);
|
||||||
|
|
||||||
// Comprueba si hay algun mando conectado
|
// Comprueba si hay algun mando conectado
|
||||||
bool gameControllerFound();
|
bool gameControllerFound();
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ Intro::Intro(SDL_Renderer *renderer, Screen *screen, Asset *asset)
|
|||||||
|
|
||||||
// Reserva memoria para los punteros
|
// Reserva memoria para los punteros
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
texture = new LTexture();
|
texture = new LTexture(renderer, asset->get("intro.png"));
|
||||||
loadTextureFromFile(texture, asset->get("intro.png"), renderer);
|
|
||||||
sprite = new AnimatedSprite(texture, renderer, asset->get("intro.ani"));
|
sprite = new AnimatedSprite(texture, renderer, asset->get("intro.ani"));
|
||||||
|
|
||||||
// Inicializa variables
|
// Inicializa variables
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ private:
|
|||||||
Asset *asset; // Objeto con los ficheros de recurso
|
Asset *asset; // Objeto con los ficheros de recurso
|
||||||
AnimatedSprite *sprite; // Sprite para dibujar los graficos de la intro
|
AnimatedSprite *sprite; // Sprite para dibujar los graficos de la intro
|
||||||
section_t section; // Estado del bucle principal para saber si continua o se sale
|
section_t section; // Estado del bucle principal para saber si continua o se sale
|
||||||
int ticks; // Contador de ticks para ajustar la velocidad del programa
|
Uint32 ticks; // Contador de ticks para ajustar la velocidad del programa
|
||||||
int ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
Uint32 ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
||||||
|
|
||||||
// Actualiza las variables
|
// Actualiza las variables
|
||||||
void update();
|
void update();
|
||||||
|
|||||||
@@ -57,31 +57,47 @@ void ItemTracker::addItem(std::string name, SDL_Point pos)
|
|||||||
// Busca una entrada en la lista por nombre
|
// Busca una entrada en la lista por nombre
|
||||||
int ItemTracker::findByName(std::string name)
|
int ItemTracker::findByName(std::string name)
|
||||||
{
|
{
|
||||||
const int c = -1;
|
/*for (int i = 0; i < list.size(); ++i)
|
||||||
|
|
||||||
for (int i = 0; i < list.size(); i++)
|
|
||||||
{
|
{
|
||||||
if (list[i].name == name)
|
if (list[i].name == name)
|
||||||
{
|
{
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
int i = 0;
|
||||||
|
for (auto l : list)
|
||||||
|
{
|
||||||
|
if (l.name == name)
|
||||||
|
{
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return c;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Busca una entrada en la lista por posición
|
// Busca una entrada en la lista por posición
|
||||||
int ItemTracker::findByPos(int index, SDL_Point pos)
|
int ItemTracker::findByPos(int index, SDL_Point pos)
|
||||||
{
|
{
|
||||||
const int c = -1;
|
/*for (int i = 0; i < list[index].pos.size(); ++i)
|
||||||
|
|
||||||
for (int i = 0; i < list[index].pos.size(); i++)
|
|
||||||
{
|
{
|
||||||
if ((list[index].pos[i].x == pos.x) && (list[index].pos[i].y == pos.y))
|
if ((list[index].pos[i].x == pos.x) && (list[index].pos[i].y == pos.y))
|
||||||
{
|
{
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
int i = 0;
|
||||||
|
for (auto l : list[index].pos)
|
||||||
|
{
|
||||||
|
if ((l.x == pos.x) && (l.y == pos.y))
|
||||||
|
{
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return c;
|
return -1;
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef __MIPSEL__
|
|
||||||
#include "jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "stb_vorbis.c"
|
#include "stb_vorbis.c"
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#define JA_MAX_SIMULTANEOUS_CHANNELS 5
|
#define JA_MAX_SIMULTANEOUS_CHANNELS 5
|
||||||
|
|
||||||
@@ -30,16 +31,17 @@ JA_Channel_t channels[JA_MAX_SIMULTANEOUS_CHANNELS];
|
|||||||
int JA_freq {48000};
|
int JA_freq {48000};
|
||||||
SDL_AudioFormat JA_format {AUDIO_S16};
|
SDL_AudioFormat JA_format {AUDIO_S16};
|
||||||
Uint8 JA_channels {2};
|
Uint8 JA_channels {2};
|
||||||
|
int JA_volume = 128;
|
||||||
|
|
||||||
void audioCallback(void * userdata, uint8_t * stream, int len) {
|
void audioCallback(void * userdata, uint8_t * stream, int len) {
|
||||||
SDL_memset(stream, 0, len);
|
SDL_memset(stream, 0, len);
|
||||||
if (current_music != NULL && current_music->state == JA_MUSIC_PLAYING) {
|
if (current_music != NULL && current_music->state == JA_MUSIC_PLAYING) {
|
||||||
const int size = SDL_min(len, current_music->samples*2-current_music->pos);
|
const int size = SDL_min(len, current_music->samples*2-current_music->pos);
|
||||||
SDL_memcpy(stream, current_music->output+current_music->pos, size);
|
SDL_MixAudioFormat(stream, (Uint8*)(current_music->output+current_music->pos), AUDIO_S16, size, JA_volume);
|
||||||
current_music->pos += size/2;
|
current_music->pos += size/2;
|
||||||
if (size < len) {
|
if (size < len) {
|
||||||
if (current_music->times != 0) {
|
if (current_music->times != 0) {
|
||||||
SDL_memcpy(stream+size, current_music->output, len-size);
|
SDL_MixAudioFormat(stream+size, (Uint8*)current_music->output, AUDIO_S16, len-size, JA_volume);
|
||||||
current_music->pos = (len-size)/2;
|
current_music->pos = (len-size)/2;
|
||||||
if (current_music->times > 0) current_music->times--;
|
if (current_music->times > 0) current_music->times--;
|
||||||
} else {
|
} else {
|
||||||
@@ -52,11 +54,11 @@ void audioCallback(void * userdata, uint8_t * stream, int len) {
|
|||||||
for (int i = 0; i < JA_MAX_SIMULTANEOUS_CHANNELS; i++) {
|
for (int i = 0; i < JA_MAX_SIMULTANEOUS_CHANNELS; i++) {
|
||||||
if (channels[i].state == JA_CHANNEL_PLAYING) {
|
if (channels[i].state == JA_CHANNEL_PLAYING) {
|
||||||
const int size = SDL_min(len, channels[i].sound->length - channels[i].pos);
|
const int size = SDL_min(len, channels[i].sound->length - channels[i].pos);
|
||||||
SDL_MixAudioFormat(stream, channels[i].sound->buffer + channels[i].pos, AUDIO_S16, size, 64);
|
SDL_MixAudioFormat(stream, channels[i].sound->buffer + channels[i].pos, AUDIO_S16, size, JA_volume/2);
|
||||||
channels[i].pos += size;
|
channels[i].pos += size;
|
||||||
if (size < len) {
|
if (size < len) {
|
||||||
if (channels[i].times != 0) {
|
if (channels[i].times != 0) {
|
||||||
SDL_MixAudioFormat(stream + size, channels[i].sound->buffer, AUDIO_S16, len-size, 64);
|
SDL_MixAudioFormat(stream + size, channels[i].sound->buffer, AUDIO_S16, len-size, JA_volume/2);
|
||||||
channels[i].pos = len-size;
|
channels[i].pos = len-size;
|
||||||
if (channels[i].times > 0) channels[i].times--;
|
if (channels[i].times > 0) channels[i].times--;
|
||||||
} else {
|
} else {
|
||||||
@@ -79,7 +81,19 @@ void JA_Init(const int freq, const SDL_AudioFormat format, const int channels) {
|
|||||||
JA_Music JA_LoadMusic(const char* filename) {
|
JA_Music JA_LoadMusic(const char* filename) {
|
||||||
int chan, samplerate;
|
int chan, samplerate;
|
||||||
JA_Music music = new JA_Music_t();
|
JA_Music music = new JA_Music_t();
|
||||||
music->samples = stb_vorbis_decode_filename(filename, &chan, &samplerate, &music->output);
|
|
||||||
|
// [RZC 28/08/22] Carreguem primer el arxiu en memòria i després el descomprimim. Es algo més rapid.
|
||||||
|
FILE *f = fopen(filename, "rb");
|
||||||
|
fseek(f, 0, SEEK_END);
|
||||||
|
long fsize = ftell(f);
|
||||||
|
fseek(f, 0, SEEK_SET);
|
||||||
|
Uint8 *buffer = (Uint8*)malloc(fsize + 1);
|
||||||
|
fread(buffer, fsize, 1, f);
|
||||||
|
fclose(f);
|
||||||
|
music->samples = stb_vorbis_decode_memory(buffer, fsize, &chan, &samplerate, &music->output);
|
||||||
|
free(buffer);
|
||||||
|
// [RZC 28/08/22] Abans el descomprimiem mentre el teniem obert
|
||||||
|
// music->samples = stb_vorbis_decode_filename(filename, &chan, &samplerate, &music->output);
|
||||||
|
|
||||||
SDL_AudioCVT cvt;
|
SDL_AudioCVT cvt;
|
||||||
SDL_BuildAudioCVT(&cvt, AUDIO_S16, chan, samplerate, JA_format, JA_channels, JA_freq);
|
SDL_BuildAudioCVT(&cvt, AUDIO_S16, chan, samplerate, JA_format, JA_channels, JA_freq);
|
||||||
@@ -134,6 +148,13 @@ void JA_DeleteMusic(JA_Music music) {
|
|||||||
delete music;
|
delete music;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JA_Sound JA_NewSound(Uint8* buffer, Uint32 length) {
|
||||||
|
JA_Sound sound = new JA_Sound_t();
|
||||||
|
sound->buffer = buffer;
|
||||||
|
sound->length = length;
|
||||||
|
return sound;
|
||||||
|
}
|
||||||
|
|
||||||
JA_Sound JA_LoadSound(const char* filename) {
|
JA_Sound JA_LoadSound(const char* filename) {
|
||||||
JA_Sound sound = new JA_Sound_t();
|
JA_Sound sound = new JA_Sound_t();
|
||||||
SDL_AudioSpec wavSpec;
|
SDL_AudioSpec wavSpec;
|
||||||
@@ -210,4 +231,8 @@ JA_Channel_state JA_GetChannelState(const int channel) {
|
|||||||
if (channel < 0 || channel >= JA_MAX_SIMULTANEOUS_CHANNELS) return JA_CHANNEL_INVALID;
|
if (channel < 0 || channel >= JA_MAX_SIMULTANEOUS_CHANNELS) return JA_CHANNEL_INVALID;
|
||||||
return channels[channel].state;
|
return channels[channel].state;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
int JA_SetVolume(int volume) {
|
||||||
|
JA_volume = volume > 128 ? 128 : volume < 0 ? 0 : volume;
|
||||||
|
return JA_volume;
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
|
|
||||||
enum JA_Channel_state { JA_CHANNEL_INVALID, JA_CHANNEL_FREE, JA_CHANNEL_PLAYING, JA_CHANNEL_PAUSED };
|
enum JA_Channel_state { JA_CHANNEL_INVALID, JA_CHANNEL_FREE, JA_CHANNEL_PLAYING, JA_CHANNEL_PAUSED };
|
||||||
@@ -18,6 +17,7 @@ void JA_StopMusic();
|
|||||||
JA_Music_state JA_GetMusicState();
|
JA_Music_state JA_GetMusicState();
|
||||||
void JA_DeleteMusic(JA_Music music);
|
void JA_DeleteMusic(JA_Music music);
|
||||||
|
|
||||||
|
JA_Sound JA_NewSound(Uint8* buffer, Uint32 length);
|
||||||
JA_Sound JA_LoadSound(const char* filename);
|
JA_Sound JA_LoadSound(const char* filename);
|
||||||
int JA_PlaySound(JA_Sound sound, const int loop = 0);
|
int JA_PlaySound(JA_Sound sound, const int loop = 0);
|
||||||
void JA_PauseChannel(const int channel);
|
void JA_PauseChannel(const int channel);
|
||||||
@@ -25,3 +25,5 @@ void JA_ResumeChannel(const int channel);
|
|||||||
void JA_StopChannel(const int channel);
|
void JA_StopChannel(const int channel);
|
||||||
JA_Channel_state JA_GetChannelState(const int channel);
|
JA_Channel_state JA_GetChannelState(const int channel);
|
||||||
void JA_DeleteSound(JA_Sound sound);
|
void JA_DeleteSound(JA_Sound sound);
|
||||||
|
|
||||||
|
int JA_SetVolume(int volume);
|
||||||
@@ -10,12 +10,11 @@ Logo::Logo(SDL_Renderer *renderer, Screen *screen, Asset *asset)
|
|||||||
|
|
||||||
// Reserva memoria para los punteros
|
// Reserva memoria para los punteros
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
texture = new LTexture();
|
texture = new LTexture(renderer, asset->get("logo.png"));
|
||||||
loadTextureFromFile(texture, asset->get("logo.png"), renderer);
|
sprite = new Sprite(0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT, texture, renderer);
|
||||||
sprite = new Sprite(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, texture, renderer);
|
|
||||||
|
|
||||||
// Crea un backbuffer para el renderizador
|
// Crea un backbuffer para el renderizador
|
||||||
backbuffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, SCREEN_WIDTH, SCREEN_HEIGHT);
|
backbuffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT);
|
||||||
if (backbuffer == NULL)
|
if (backbuffer == NULL)
|
||||||
printf("Backbuffer could not be created!\nSDL Error: %s\n", SDL_GetError());
|
printf("Backbuffer could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||||
|
|
||||||
@@ -105,7 +104,7 @@ void Logo::render()
|
|||||||
// Dibuja el fade
|
// Dibuja el fade
|
||||||
if (counter >= initFade)
|
if (counter >= initFade)
|
||||||
{
|
{
|
||||||
const SDL_Rect rect = {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT};
|
const SDL_Rect rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
|
||||||
const color_t color = {0xFF, 0xFF, 0xFF};
|
const color_t color = {0xFF, 0xFF, 0xFF};
|
||||||
const int fadeLenght = endLogo - initFade;
|
const int fadeLenght = endLogo - initFade;
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "asset.h"
|
#include "asset.h"
|
||||||
#include "jail_audio.h"
|
#include "jail_audio.h"
|
||||||
|
#include "const.h"
|
||||||
|
|
||||||
#ifndef LOGO_H
|
#ifndef LOGO_H
|
||||||
#define LOGO_H
|
#define LOGO_H
|
||||||
@@ -24,8 +25,8 @@ private:
|
|||||||
Sprite *sprite; // Sprite con la textura del logo
|
Sprite *sprite; // Sprite con la textura del logo
|
||||||
int counter; // Contador
|
int counter; // Contador
|
||||||
section_t section; // Estado del bucle principal para saber si continua o se sale
|
section_t section; // Estado del bucle principal para saber si continua o se sale
|
||||||
int ticks; // Contador de ticks para ajustar la velocidad del programa
|
Uint32 ticks; // Contador de ticks para ajustar la velocidad del programa
|
||||||
int ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
Uint32 ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
||||||
int initFade; // Tiempo del contador cuando inicia el fade a negro
|
int initFade; // Tiempo del contador cuando inicia el fade a negro
|
||||||
int endLogo; // Tiempo del contador para terminar el logo
|
int endLogo; // Tiempo del contador para terminar el logo
|
||||||
int postLogo; // Tiempo que dura el logo con el fade al maximo
|
int postLogo; // Tiempo que dura el logo con el fade al maximo
|
||||||
|
|||||||
@@ -1,22 +1,35 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "ltexture.h"
|
#include "ltexture.h"
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "stb_image.h"
|
#include "stb_image.h"
|
||||||
|
|
||||||
LTexture::LTexture()
|
// Constructor
|
||||||
|
LTexture::LTexture(SDL_Renderer *renderer, std::string path)
|
||||||
{
|
{
|
||||||
// Initialize
|
// Copia punteros
|
||||||
mTexture = NULL;
|
this->renderer = renderer;
|
||||||
mWidth = 0;
|
this->path = path;
|
||||||
mHeight = 0;
|
|
||||||
|
// Inicializa
|
||||||
|
texture = NULL;
|
||||||
|
width = 0;
|
||||||
|
height = 0;
|
||||||
|
|
||||||
|
// Carga el fichero en la textura
|
||||||
|
if (path != "")
|
||||||
|
{
|
||||||
|
loadFromFile(path, renderer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Destructor
|
||||||
LTexture::~LTexture()
|
LTexture::~LTexture()
|
||||||
{
|
{
|
||||||
// Deallocate
|
// Libera memoria
|
||||||
unload();
|
unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Carga una imagen desde un fichero
|
||||||
bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
||||||
{
|
{
|
||||||
int req_format = STBI_rgb_alpha;
|
int req_format = STBI_rgb_alpha;
|
||||||
@@ -33,7 +46,7 @@ bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
|||||||
if (req_format == STBI_rgb)
|
if (req_format == STBI_rgb)
|
||||||
{
|
{
|
||||||
depth = 24;
|
depth = 24;
|
||||||
pitch = 3 * width; // 3 bytes per pixel * pixels per row
|
pitch = 3 * width; // 3 bytes por pixel * pixels per linea
|
||||||
pixel_format = SDL_PIXELFORMAT_RGB24;
|
pixel_format = SDL_PIXELFORMAT_RGB24;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -43,14 +56,13 @@ bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
|||||||
pixel_format = SDL_PIXELFORMAT_RGBA32;
|
pixel_format = SDL_PIXELFORMAT_RGBA32;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get rid of preexisting texture
|
// Limpia
|
||||||
unload();
|
unload();
|
||||||
|
|
||||||
// The final texture
|
// La textura final
|
||||||
SDL_Texture *newTexture = NULL;
|
SDL_Texture *newTexture = NULL;
|
||||||
|
|
||||||
// Load image at specified path
|
// Carga la imagen desde una ruta específica
|
||||||
//SDL_Surface *loadedSurface = IMG_Load(path.c_str());
|
|
||||||
SDL_Surface *loadedSurface = SDL_CreateRGBSurfaceWithFormatFrom((void *)data, width, height, depth, pitch, pixel_format);
|
SDL_Surface *loadedSurface = SDL_CreateRGBSurfaceWithFormatFrom((void *)data, width, height, depth, pitch, pixel_format);
|
||||||
if (loadedSurface == NULL)
|
if (loadedSurface == NULL)
|
||||||
{
|
{
|
||||||
@@ -58,10 +70,7 @@ bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Color key image
|
// Crea la textura desde los pixels de la surface
|
||||||
//SDL_SetColorKey(loadedSurface, SDL_TRUE, SDL_MapRGB(loadedSurface->format, COLOR_KEY_R, COLOR_KEY_G, COLOR_KEY_B));
|
|
||||||
|
|
||||||
// Create texture from surface pixels
|
|
||||||
newTexture = SDL_CreateTextureFromSurface(renderer, loadedSurface);
|
newTexture = SDL_CreateTextureFromSurface(renderer, loadedSurface);
|
||||||
if (newTexture == NULL)
|
if (newTexture == NULL)
|
||||||
{
|
{
|
||||||
@@ -69,73 +78,76 @@ bool LTexture::loadFromFile(std::string path, SDL_Renderer *renderer)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Get image dimensions
|
// Obtiene las dimensiones de la imagen
|
||||||
mWidth = loadedSurface->w;
|
this->width = loadedSurface->w;
|
||||||
mHeight = loadedSurface->h;
|
this->height = loadedSurface->h;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get rid of old loaded surface
|
// Elimina la textura cargada
|
||||||
SDL_FreeSurface(loadedSurface);
|
SDL_FreeSurface(loadedSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return success
|
// Return success
|
||||||
mTexture = newTexture;
|
texture = newTexture;
|
||||||
return mTexture != NULL;
|
return texture != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Crea una textura en blanco
|
||||||
bool LTexture::createBlank(SDL_Renderer *renderer, int width, int height, SDL_TextureAccess access)
|
bool LTexture::createBlank(SDL_Renderer *renderer, int width, int height, SDL_TextureAccess access)
|
||||||
{
|
{
|
||||||
// Create uninitialized texture
|
// Crea una textura sin inicializar
|
||||||
mTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, access, width, height);
|
texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, access, width, height);
|
||||||
if (mTexture == NULL)
|
if (texture == NULL)
|
||||||
{
|
{
|
||||||
printf("Unable to create blank texture! SDL Error: %s\n", SDL_GetError());
|
printf("Unable to create blank texture! SDL Error: %s\n", SDL_GetError());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mWidth = width;
|
this->width = width;
|
||||||
mHeight = height;
|
this->height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mTexture != NULL;
|
return texture != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Libera la memoria de la textura
|
||||||
void LTexture::unload()
|
void LTexture::unload()
|
||||||
{
|
{
|
||||||
// Free texture if it exists
|
// Libera la textura si existe
|
||||||
if (mTexture != NULL)
|
if (texture != NULL)
|
||||||
{
|
{
|
||||||
SDL_DestroyTexture(mTexture);
|
SDL_DestroyTexture(texture);
|
||||||
mTexture = NULL;
|
texture = NULL;
|
||||||
mWidth = 0;
|
width = 0;
|
||||||
mHeight = 0;
|
height = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Establece el color para la modulacion
|
||||||
void LTexture::setColor(Uint8 red, Uint8 green, Uint8 blue)
|
void LTexture::setColor(Uint8 red, Uint8 green, Uint8 blue)
|
||||||
{
|
{
|
||||||
// Modulate texture rgb
|
SDL_SetTextureColorMod(texture, red, green, blue);
|
||||||
SDL_SetTextureColorMod(mTexture, red, green, blue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Establece el blending
|
||||||
void LTexture::setBlendMode(SDL_BlendMode blending)
|
void LTexture::setBlendMode(SDL_BlendMode blending)
|
||||||
{
|
{
|
||||||
// Set blending function
|
SDL_SetTextureBlendMode(texture, blending);
|
||||||
SDL_SetTextureBlendMode(mTexture, blending);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Establece el alpha para la modulación
|
||||||
void LTexture::setAlpha(Uint8 alpha)
|
void LTexture::setAlpha(Uint8 alpha)
|
||||||
{
|
{
|
||||||
// Modulate texture alpha
|
SDL_SetTextureAlphaMod(texture, alpha);
|
||||||
SDL_SetTextureAlphaMod(mTexture, alpha);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Renderiza la textura en un punto específico
|
||||||
void LTexture::render(SDL_Renderer *renderer, int x, int y, SDL_Rect *clip, float zoomW, float zoomH, double angle, SDL_Point *center, SDL_RendererFlip flip)
|
void LTexture::render(SDL_Renderer *renderer, int x, int y, SDL_Rect *clip, float zoomW, float zoomH, double angle, SDL_Point *center, SDL_RendererFlip flip)
|
||||||
{
|
{
|
||||||
// Set rendering space and render to screen
|
// Establece el destini de renderizado en la pantalla
|
||||||
SDL_Rect renderQuad = {x, y, mWidth, mHeight};
|
SDL_Rect renderQuad = {x, y, width, height};
|
||||||
|
|
||||||
// Set clip rendering dimensions
|
// Obtiene las dimesiones del clip de renderizado
|
||||||
if (clip != NULL)
|
if (clip != NULL)
|
||||||
{
|
{
|
||||||
renderQuad.w = clip->w;
|
renderQuad.w = clip->w;
|
||||||
@@ -145,22 +157,30 @@ void LTexture::render(SDL_Renderer *renderer, int x, int y, SDL_Rect *clip, floa
|
|||||||
renderQuad.w = renderQuad.w * zoomW;
|
renderQuad.w = renderQuad.w * zoomW;
|
||||||
renderQuad.h = renderQuad.h * zoomH;
|
renderQuad.h = renderQuad.h * zoomH;
|
||||||
|
|
||||||
// Render to screen
|
// Renderiza a pantalla
|
||||||
SDL_RenderCopyEx(renderer, mTexture, clip, &renderQuad, angle, center, flip);
|
SDL_RenderCopyEx(renderer, texture, clip, &renderQuad, angle, center, flip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Establece la textura como objetivo de renderizado
|
||||||
void LTexture::setAsRenderTarget(SDL_Renderer *renderer)
|
void LTexture::setAsRenderTarget(SDL_Renderer *renderer)
|
||||||
{
|
{
|
||||||
// Make self render target
|
SDL_SetRenderTarget(renderer, texture);
|
||||||
SDL_SetRenderTarget(renderer, mTexture);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Obtiene el ancho de la imagen
|
||||||
int LTexture::getWidth()
|
int LTexture::getWidth()
|
||||||
{
|
{
|
||||||
return mWidth;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Obtiene el alto de la imagen
|
||||||
int LTexture::getHeight()
|
int LTexture::getHeight()
|
||||||
{
|
{
|
||||||
return mHeight;
|
return height;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Recarga la textura
|
||||||
|
bool LTexture::reLoad()
|
||||||
|
{
|
||||||
|
return loadFromFile(path, renderer);
|
||||||
}
|
}
|
||||||
@@ -7,61 +7,55 @@
|
|||||||
#ifndef LTEXTURE_H
|
#ifndef LTEXTURE_H
|
||||||
#define LTEXTURE_H
|
#define LTEXTURE_H
|
||||||
|
|
||||||
// Texture wrapper class
|
// Clase LTexture
|
||||||
class LTexture
|
class LTexture
|
||||||
{
|
{
|
||||||
public:
|
private:
|
||||||
// Initializes variables
|
SDL_Texture *texture; // La textura
|
||||||
LTexture();
|
SDL_Renderer *renderer; // Renderizador donde dibujar la textura
|
||||||
|
int width; // Ancho de la imagen
|
||||||
|
int height; // Alto de la imagen
|
||||||
|
std::string path; // Ruta de la imagen de la textura
|
||||||
|
|
||||||
// Deallocates memory
|
public:
|
||||||
|
// Constructor
|
||||||
|
LTexture(SDL_Renderer *renderer, std::string path = "");
|
||||||
|
|
||||||
|
// Destructor
|
||||||
~LTexture();
|
~LTexture();
|
||||||
|
|
||||||
// Loads image at specified path
|
// Carga una imagen desde un fichero
|
||||||
bool loadFromFile(std::string path, SDL_Renderer *renderer);
|
bool loadFromFile(std::string path, SDL_Renderer *renderer);
|
||||||
|
|
||||||
// Creates blank texture
|
// Crea una textura en blanco
|
||||||
bool createBlank(SDL_Renderer *renderer, int width, int height, SDL_TextureAccess = SDL_TEXTUREACCESS_STREAMING);
|
bool createBlank(SDL_Renderer *renderer, int width, int height, SDL_TextureAccess = SDL_TEXTUREACCESS_STREAMING);
|
||||||
|
|
||||||
// Deallocates texture
|
// Libera la memoria de la textura
|
||||||
void unload();
|
void unload();
|
||||||
|
|
||||||
// Set color modulation
|
// Establece el color para la modulacion
|
||||||
void setColor(Uint8 red, Uint8 green, Uint8 blue);
|
void setColor(Uint8 red, Uint8 green, Uint8 blue);
|
||||||
|
|
||||||
// Set blending
|
// Establece el blending
|
||||||
void setBlendMode(SDL_BlendMode blending);
|
void setBlendMode(SDL_BlendMode blending);
|
||||||
|
|
||||||
// Set alpha modulation
|
// Establece el alpha para la modulación
|
||||||
void setAlpha(Uint8 alpha);
|
void setAlpha(Uint8 alpha);
|
||||||
|
|
||||||
// Renders texture at given point
|
// Renderiza la textura en un punto específico
|
||||||
void render(SDL_Renderer *renderer, int x, int y, SDL_Rect *clip = NULL, float zoomW = 1, float zoomH = 1, double angle = 0.0, SDL_Point *center = NULL, SDL_RendererFlip flip = SDL_FLIP_NONE);
|
void render(SDL_Renderer *renderer, int x, int y, SDL_Rect *clip = NULL, float zoomW = 1, float zoomH = 1, double angle = 0.0, SDL_Point *center = NULL, SDL_RendererFlip flip = SDL_FLIP_NONE);
|
||||||
|
|
||||||
// Set self as render target
|
// Establece la textura como objetivo de renderizado
|
||||||
void setAsRenderTarget(SDL_Renderer *renderer);
|
void setAsRenderTarget(SDL_Renderer *renderer);
|
||||||
|
|
||||||
// Gets image dimensions
|
// Obtiene el ancho de la imagen
|
||||||
int getWidth();
|
int getWidth();
|
||||||
|
|
||||||
|
// Obtiene el alto de la imagen
|
||||||
int getHeight();
|
int getHeight();
|
||||||
|
|
||||||
// Pixel manipulators
|
// Recarga la textura
|
||||||
bool lockTexture();
|
bool reLoad();
|
||||||
bool unlockTexture();
|
|
||||||
void *getPixels();
|
|
||||||
void copyPixels(void *pixels);
|
|
||||||
int getPitch();
|
|
||||||
Uint32 getPixel32(unsigned int x, unsigned int y);
|
|
||||||
|
|
||||||
private:
|
|
||||||
// The actual hardware texture
|
|
||||||
SDL_Texture *mTexture;
|
|
||||||
void *mPixels;
|
|
||||||
int mPitch;
|
|
||||||
|
|
||||||
// Image dimensions
|
|
||||||
int mWidth;
|
|
||||||
int mHeight;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
256
source/map.cpp
@@ -6,11 +6,12 @@ Map::Map(std::string file, SDL_Renderer *renderer, Asset *asset, ItemTracker *it
|
|||||||
// Inicializa variables
|
// Inicializa variables
|
||||||
tile_size = 8;
|
tile_size = 8;
|
||||||
map_width = 40;
|
map_width = 40;
|
||||||
map_height = 26;
|
map_height = 30;
|
||||||
tileset_width = 32;
|
|
||||||
name = file.substr(file.find_last_of("\\/") + 1);
|
name = file.substr(file.find_last_of("\\/") + 1);
|
||||||
enemy_file = "";
|
enemy_file = "";
|
||||||
bgColor1 = bgColor2 = {0, 0, 0};
|
bgColor1 = bgColor2 = {0, 0, 0};
|
||||||
|
bgScroll = false;
|
||||||
|
counter = 0;
|
||||||
|
|
||||||
// Copia los punteros a objetos
|
// Copia los punteros a objetos
|
||||||
this->asset = asset;
|
this->asset = asset;
|
||||||
@@ -18,16 +19,20 @@ Map::Map(std::string file, SDL_Renderer *renderer, Asset *asset, ItemTracker *it
|
|||||||
this->itemTracker = itemTracker;
|
this->itemTracker = itemTracker;
|
||||||
|
|
||||||
// Crea los objetos
|
// Crea los objetos
|
||||||
texture_tile = new LTexture();
|
|
||||||
load(file);
|
load(file);
|
||||||
loadTextureFromFile(texture_tile, asset->get(tileset_img), renderer);
|
texture_tile = new LTexture(renderer, asset->get(tileset_img));
|
||||||
|
tileset_width = texture_tile->getWidth() / tile_size;
|
||||||
|
|
||||||
// Crea la textura para el mapa de tiles de la habitación
|
// Crea las texturas para dibujar el mapa
|
||||||
map_texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT);
|
map_layer0 = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT);
|
||||||
if (map_texture == NULL)
|
if (map_layer0 == NULL)
|
||||||
printf("Error: map_texture could not be created!\nSDL Error: %s\n", SDL_GetError());
|
printf("Error: map_layer0 could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||||
|
|
||||||
// Pinta el mapa de la habitación en la textura
|
map_layer1 = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT);
|
||||||
|
if (map_layer1 == NULL)
|
||||||
|
printf("Error: map_layer1 could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||||
|
|
||||||
|
// Pinta el mapa en las texturas
|
||||||
fillMapTexture();
|
fillMapTexture();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +43,7 @@ Map::~Map()
|
|||||||
texture_tile->unload();
|
texture_tile->unload();
|
||||||
delete texture_tile;
|
delete texture_tile;
|
||||||
|
|
||||||
SDL_DestroyTexture(map_texture);
|
SDL_DestroyTexture(map_layer1);
|
||||||
|
|
||||||
for (auto actor : actors)
|
for (auto actor : actors)
|
||||||
{
|
{
|
||||||
@@ -61,7 +66,7 @@ bool Map::load(std::string file_path)
|
|||||||
if (file.good())
|
if (file.good())
|
||||||
{
|
{
|
||||||
// Procesa el fichero linea a linea
|
// Procesa el fichero linea a linea
|
||||||
printf("Reading file %s\n", filename.c_str());
|
printf("Reading file %s\n\n", filename.c_str());
|
||||||
while (std::getline(file, line))
|
while (std::getline(file, line))
|
||||||
{
|
{
|
||||||
// Si la linea contiene el texto [tilemap] se realiza el proceso de carga del fichero tmx
|
// Si la linea contiene el texto [tilemap] se realiza el proceso de carga del fichero tmx
|
||||||
@@ -75,21 +80,23 @@ bool Map::load(std::string file_path)
|
|||||||
std::ifstream file2(asset->get(line)); // Abre el fichero tmx
|
std::ifstream file2(asset->get(line)); // Abre el fichero tmx
|
||||||
if (file2.good())
|
if (file2.good())
|
||||||
{
|
{
|
||||||
bool data_read = false;
|
bool map_col_read = false;
|
||||||
|
bool map_l0_read = false;
|
||||||
|
bool map_l1_read = false;
|
||||||
while (std::getline(file2, line)) // Lee el fichero linea a linea
|
while (std::getline(file2, line)) // Lee el fichero linea a linea
|
||||||
{
|
{
|
||||||
if (!data_read)
|
if (!map_l0_read)
|
||||||
{ // Lee lineas hasta que encuentre donde empiezan los datos del mapa
|
{ // Lee lineas hasta que encuentre donde empiezan los datos del mapa
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
std::getline(file2, line);
|
std::getline(file2, line);
|
||||||
pos = line.find("data encoding");
|
pos = line.find("data encoding");
|
||||||
} while (pos == std::string::npos);
|
} while (pos == (int)std::string::npos);
|
||||||
|
|
||||||
do
|
do
|
||||||
{ // Se introducen los valores separados por comas en un vector
|
{ // Se introducen los valores separados por comas en un vector
|
||||||
data_read = true;
|
map_l0_read = true;
|
||||||
std::getline(file2, line);
|
std::getline(file2, line);
|
||||||
if (line != "</data>")
|
if (line != "</data>")
|
||||||
{
|
{
|
||||||
@@ -97,7 +104,57 @@ bool Map::load(std::string file_path)
|
|||||||
std::string tmp;
|
std::string tmp;
|
||||||
while (getline(ss, tmp, ','))
|
while (getline(ss, tmp, ','))
|
||||||
{
|
{
|
||||||
tilemap.push_back(std::stoi(tmp));
|
tilemap_l0.push_back(std::stoi(tmp));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (line != "</data>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!map_l1_read)
|
||||||
|
{ // Lee lineas hasta que encuentre donde empiezan los datos del mapa
|
||||||
|
int pos = 0;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
std::getline(file2, line);
|
||||||
|
pos = line.find("data encoding");
|
||||||
|
} while (pos == (int)std::string::npos);
|
||||||
|
|
||||||
|
do
|
||||||
|
{ // Se introducen los valores separados por comas en un vector
|
||||||
|
map_l1_read = true;
|
||||||
|
std::getline(file2, line);
|
||||||
|
if (line != "</data>")
|
||||||
|
{
|
||||||
|
std::stringstream ss(line);
|
||||||
|
std::string tmp;
|
||||||
|
while (getline(ss, tmp, ','))
|
||||||
|
{
|
||||||
|
tilemap_l1.push_back(std::stoi(tmp));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (line != "</data>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!map_col_read)
|
||||||
|
{ // Lee lineas hasta que encuentre donde empiezan los datos del mapa
|
||||||
|
int pos = 0;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
std::getline(file2, line);
|
||||||
|
pos = line.find("data encoding");
|
||||||
|
} while (pos == (int)std::string::npos);
|
||||||
|
|
||||||
|
do
|
||||||
|
{ // Se introducen los valores separados por comas en un vector
|
||||||
|
map_col_read = true;
|
||||||
|
std::getline(file2, line);
|
||||||
|
if (line != "</data>")
|
||||||
|
{
|
||||||
|
std::stringstream ss(line);
|
||||||
|
std::string tmp;
|
||||||
|
while (getline(ss, tmp, ','))
|
||||||
|
{
|
||||||
|
collisionmap.push_back(std::stoi(tmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (line != "</data>");
|
} while (line != "</data>");
|
||||||
@@ -218,6 +275,7 @@ bool Map::setVars(std::string var, std::string value)
|
|||||||
{
|
{
|
||||||
tileset_img = value;
|
tileset_img = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "bgColor1")
|
else if (var == "bgColor1")
|
||||||
{
|
{
|
||||||
// Se introducen los valores separados por comas en un vector
|
// Se introducen los valores separados por comas en un vector
|
||||||
@@ -230,6 +288,7 @@ bool Map::setVars(std::string var, std::string value)
|
|||||||
getline(ss, tmp, ',');
|
getline(ss, tmp, ',');
|
||||||
bgColor1.b = std::stoi(tmp);
|
bgColor1.b = std::stoi(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "bgColor2")
|
else if (var == "bgColor2")
|
||||||
{
|
{
|
||||||
// Se introducen los valores separados por comas en un vector
|
// Se introducen los valores separados por comas en un vector
|
||||||
@@ -242,29 +301,41 @@ bool Map::setVars(std::string var, std::string value)
|
|||||||
getline(ss, tmp, ',');
|
getline(ss, tmp, ',');
|
||||||
bgColor2.b = std::stoi(tmp);
|
bgColor2.b = std::stoi(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (var == "bgScroll")
|
||||||
|
{
|
||||||
|
bgScroll = stringToBool(value);
|
||||||
|
}
|
||||||
|
|
||||||
else if (var == "room_up")
|
else if (var == "room_up")
|
||||||
{
|
{
|
||||||
room_up = value;
|
room_up = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "room_down")
|
else if (var == "room_down")
|
||||||
{
|
{
|
||||||
room_down = value;
|
room_down = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "room_left")
|
else if (var == "room_left")
|
||||||
{
|
{
|
||||||
room_left = value;
|
room_left = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "room_right")
|
else if (var == "room_right")
|
||||||
{
|
{
|
||||||
room_right = value;
|
room_right = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "enemy_file")
|
else if (var == "enemy_file")
|
||||||
{
|
{
|
||||||
enemy_file = value;
|
enemy_file = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "")
|
else if (var == "")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
@@ -283,53 +354,66 @@ bool Map::setActor(actor_t *actor, SDL_Point *p1, SDL_Point *p2, std::string var
|
|||||||
{
|
{
|
||||||
actor->tileset = value;
|
actor->tileset = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "animation")
|
else if (var == "animation")
|
||||||
{
|
{
|
||||||
actor->animation = value;
|
actor->animation = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "width")
|
else if (var == "width")
|
||||||
{
|
{
|
||||||
actor->w = std::stoi(value);
|
actor->w = std::stoi(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "height")
|
else if (var == "height")
|
||||||
{
|
{
|
||||||
actor->h = std::stoi(value);
|
actor->h = std::stoi(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x")
|
else if (var == "x")
|
||||||
{
|
{
|
||||||
actor->x = std::stof(value) * tile_size;
|
actor->x = std::stof(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y")
|
else if (var == "y")
|
||||||
{
|
{
|
||||||
actor->y = std::stof(value) * tile_size;
|
actor->y = std::stof(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "vx")
|
else if (var == "vx")
|
||||||
{
|
{
|
||||||
actor->vx = std::stof(value);
|
actor->vx = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "vy")
|
else if (var == "vy")
|
||||||
{
|
{
|
||||||
actor->vy = std::stof(value);
|
actor->vy = std::stof(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x1")
|
else if (var == "x1")
|
||||||
{
|
{
|
||||||
p1->x = std::stoi(value) * tile_size;
|
p1->x = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "x2")
|
else if (var == "x2")
|
||||||
{
|
{
|
||||||
p2->x = std::stoi(value) * tile_size;
|
p2->x = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y1")
|
else if (var == "y1")
|
||||||
{
|
{
|
||||||
p1->y = std::stoi(value) * tile_size;
|
p1->y = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (var == "y2")
|
else if (var == "y2")
|
||||||
{
|
{
|
||||||
p2->y = std::stoi(value) * tile_size;
|
p2->y = std::stoi(value) * tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((var == "[/moving platform]") || (var == "[/diamond]"))
|
else if ((var == "[/moving platform]") || (var == "[/diamond]"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
@@ -341,17 +425,22 @@ bool Map::setActor(actor_t *actor, SDL_Point *p1, SDL_Point *p2, std::string var
|
|||||||
// Crea la textura con el mapeado de la habitación
|
// Crea la textura con el mapeado de la habitación
|
||||||
void Map::fillMapTexture()
|
void Map::fillMapTexture()
|
||||||
{
|
{
|
||||||
SDL_SetRenderTarget(renderer, map_texture);
|
// Crea variables
|
||||||
SDL_SetTextureBlendMode(map_texture, SDL_BLENDMODE_BLEND);
|
SDL_Rect clip = {0, 0, tile_size, tile_size};
|
||||||
|
|
||||||
|
// Rellena la capa 0
|
||||||
|
{
|
||||||
|
SDL_SetRenderTarget(renderer, map_layer0);
|
||||||
|
SDL_SetTextureBlendMode(map_layer0, SDL_BLENDMODE_BLEND);
|
||||||
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0xFF);
|
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0xFF);
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
|
|
||||||
// Dibuja el degradado de fondo
|
// Dibuja el degradado de fondo
|
||||||
const int num_lines = 208;
|
const float num_lines = PLAY_AREA_BOTTOM - PLAY_AREA_TOP;
|
||||||
|
|
||||||
for (int i = 0; i < num_lines; i++)
|
for (int i = PLAY_AREA_TOP; i < PLAY_AREA_BOTTOM; ++i)
|
||||||
{
|
{
|
||||||
float step = ((float)i / (float)num_lines);
|
float step = ((float)i / num_lines);
|
||||||
int r = bgColor1.r + ((bgColor2.r - bgColor1.r) * step);
|
int r = bgColor1.r + ((bgColor2.r - bgColor1.r) * step);
|
||||||
int g = bgColor1.g + ((bgColor2.g - bgColor1.g) * step);
|
int g = bgColor1.g + ((bgColor2.g - bgColor1.g) * step);
|
||||||
int b = bgColor1.b + ((bgColor2.b - bgColor1.b) * step);
|
int b = bgColor1.b + ((bgColor2.b - bgColor1.b) * step);
|
||||||
@@ -360,44 +449,84 @@ void Map::fillMapTexture()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Dibuja el mapeado de tiles
|
// Dibuja el mapeado de tiles
|
||||||
SDL_Rect clip = {0, 0, tile_size, tile_size};
|
for (int y = 0; y < map_height; ++y)
|
||||||
|
for (int x = 0; x < map_width; ++x)
|
||||||
for (int y = 0; y < map_height; y++)
|
|
||||||
for (int x = 0; x < map_width; x++)
|
|
||||||
{
|
{
|
||||||
clip.x = ((tilemap[(y * map_width) + x] - 1) % tileset_width) * tile_size;
|
// Resta uno porque Tiled almacena los indices empezando de 1 en vez de 0.
|
||||||
clip.y = ((tilemap[(y * map_width) + x] - 1) / tileset_width) * tile_size;
|
// El problema es que los tiles vacios los pone como 0 y aqui pasan a ser -1
|
||||||
|
// con lo que esta pintando desde fuera de la textura
|
||||||
|
clip.x = ((tilemap_l0[(y * map_width) + x] - 1) % tileset_width) * tile_size;
|
||||||
|
clip.y = ((tilemap_l0[(y * map_width) + x] - 1) / tileset_width) * tile_size;
|
||||||
texture_tile->render(renderer, x * tile_size, y * tile_size, &clip);
|
texture_tile->render(renderer, x * tile_size, y * tile_size, &clip);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dibuja el degradado del marcador
|
|
||||||
int color = 105;
|
|
||||||
for (int i = 208; i < 240; i++)
|
|
||||||
{
|
|
||||||
SDL_SetRenderDrawColor(renderer, 0x69, color, 0x69, 0xFF);
|
|
||||||
SDL_RenderDrawLine(renderer, 0, i, 320, i);
|
|
||||||
color--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dibuja el marco del marcador
|
// Rellena la capa 1
|
||||||
// SDL_SetRenderDrawColor(renderer, 85, 50, 85, 0xFF);
|
{
|
||||||
// SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
|
SDL_SetRenderTarget(renderer, map_layer1);
|
||||||
// SDL_Rect rect = {0, 208, 320, 32};
|
SDL_SetTextureBlendMode(map_layer1, SDL_BLENDMODE_BLEND);
|
||||||
// SDL_RenderDrawRect(renderer, &rect);
|
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0x00);
|
||||||
// rect = {1, 209, 318, 30};
|
SDL_RenderClear(renderer);
|
||||||
// SDL_RenderDrawRect(renderer, &rect);
|
|
||||||
|
// Dibuja el mapeado de tiles
|
||||||
|
for (int y = 0; y < map_height; ++y)
|
||||||
|
for (int x = 0; x < map_width; ++x)
|
||||||
|
{
|
||||||
|
// Resta uno porque Tiled almacena los indices empezando de 1 en vez de 0.
|
||||||
|
// El problema es que los tiles vacios los pone como 0 y aqui pasan a ser -1
|
||||||
|
// con lo que esta pintando desde fuera de la textura
|
||||||
|
clip.x = ((tilemap_l1[(y * map_width) + x] - 1) % tileset_width) * tile_size;
|
||||||
|
clip.y = ((tilemap_l1[(y * map_width) + x] - 1) / tileset_width) * tile_size;
|
||||||
|
texture_tile->render(renderer, x * tile_size, y * tile_size, &clip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Vuelve a colocar el renderizador
|
// Vuelve a colocar el renderizador
|
||||||
SDL_SetRenderTarget(renderer, nullptr);
|
SDL_SetRenderTarget(renderer, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dibuja el mapa en pantalla
|
// Dibuja todos los elementos del mapa
|
||||||
void Map::render()
|
void Map::render()
|
||||||
{
|
{
|
||||||
// Dibuja la textura con el mapa en pantalla
|
renderLayer0();
|
||||||
SDL_Rect rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
|
renderLayer1();
|
||||||
SDL_RenderCopy(renderer, map_texture, &rect, NULL);
|
renderActors();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja la capa 0
|
||||||
|
void Map::renderLayer0()
|
||||||
|
{
|
||||||
|
// Dibuja la textura con el mapa en pantalla
|
||||||
|
if (bgScroll)
|
||||||
|
{
|
||||||
|
const int offset = PLAY_AREA_WIDTH - ((counter / 20) % PLAY_AREA_WIDTH);
|
||||||
|
SDL_Rect src1 = {PLAY_AREA_X, PLAY_AREA_Y, offset, PLAY_AREA_HEIGHT};
|
||||||
|
SDL_Rect dst1 = {PLAY_AREA_X + PLAY_AREA_WIDTH - offset, PLAY_AREA_Y, offset, PLAY_AREA_HEIGHT};
|
||||||
|
|
||||||
|
SDL_Rect src2 = {PLAY_AREA_X + offset, PLAY_AREA_Y, PLAY_AREA_WIDTH - offset, PLAY_AREA_HEIGHT};
|
||||||
|
SDL_Rect dst2 = {PLAY_AREA_X, PLAY_AREA_Y, PLAY_AREA_WIDTH - offset, PLAY_AREA_HEIGHT};
|
||||||
|
|
||||||
|
SDL_RenderCopy(renderer, map_layer0, &src1, &dst1);
|
||||||
|
SDL_RenderCopy(renderer, map_layer0, &src2, &dst2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//SDL_Rect rect = {PLAY_AREA_X, PLAY_AREA_Y, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT};
|
||||||
|
SDL_RenderCopy(renderer, map_layer0, NULL, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja la capa 1
|
||||||
|
void Map::renderLayer1()
|
||||||
|
{
|
||||||
|
// Dibuja la textura con el mapa en pantalla
|
||||||
|
SDL_Rect rect = {PLAY_AREA_X, PLAY_AREA_Y, PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT};
|
||||||
|
SDL_RenderCopy(renderer, map_layer1, NULL, &rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dibuja los actores
|
||||||
|
void Map::renderActors()
|
||||||
|
{
|
||||||
for (auto actor : actors)
|
for (auto actor : actors)
|
||||||
{
|
{
|
||||||
actor->render();
|
actor->render();
|
||||||
@@ -407,6 +536,8 @@ void Map::render()
|
|||||||
// Actualiza todas las variables
|
// Actualiza todas las variables
|
||||||
void Map::update()
|
void Map::update()
|
||||||
{
|
{
|
||||||
|
counter++;
|
||||||
|
|
||||||
for (auto actor : actors)
|
for (auto actor : actors)
|
||||||
{
|
{
|
||||||
actor->update();
|
actor->update();
|
||||||
@@ -421,21 +552,19 @@ e_tile_map Map::getTile(SDL_Point p)
|
|||||||
const int y = std::max(getPlayArea(b_top), (std::min(p.y, getPlayArea(b_bottom) - 1)));
|
const int y = std::max(getPlayArea(b_top), (std::min(p.y, getPlayArea(b_bottom) - 1)));
|
||||||
|
|
||||||
// Calcula el tile
|
// Calcula el tile
|
||||||
const int tile = tilemap[((y / tile_size) * map_width) + (x / tile_size)];
|
const int tile = collisionmap[((y / tile_size) * map_width) + (x / tile_size)];
|
||||||
const int png_width = 32;
|
|
||||||
|
|
||||||
// Las 8 primeras filas son tiles de fondo
|
if (tile == 0)
|
||||||
if (tile >= 0 && tile < 8 * png_width)
|
|
||||||
{
|
{
|
||||||
return nothing;
|
return nothing;
|
||||||
}
|
}
|
||||||
// De la fila 8 a la 15 hay tiles de muro
|
|
||||||
else if (tile >= (8 * png_width) && tile < 16 * png_width)
|
else if (tile == 5627)
|
||||||
{
|
{
|
||||||
return wall;
|
return wall;
|
||||||
}
|
}
|
||||||
// A partir de la fila 16 son tiles atravesables
|
|
||||||
else
|
else if (tile == 5628)
|
||||||
{
|
{
|
||||||
return passable;
|
return passable;
|
||||||
}
|
}
|
||||||
@@ -449,12 +578,6 @@ int Map::getTileSize()
|
|||||||
return tile_size;
|
return tile_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Devuelve el indice del tile correspondiente a un punto del mapa
|
|
||||||
int Map::getTileIndex(SDL_Point p)
|
|
||||||
{
|
|
||||||
return tilemap[((p.y / tile_size) * map_width) + (p.x / tile_size)];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Devuelve el valor de los bordes de la zona de juego
|
// Devuelve el valor de los bordes de la zona de juego
|
||||||
int Map::getPlayArea(e_border border)
|
int Map::getPlayArea(e_border border)
|
||||||
{
|
{
|
||||||
@@ -511,6 +634,12 @@ std::string Map::getRoomFileName(e_border border)
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Devuelve el nombre del fichero de la habitación
|
||||||
|
std::string Map::getName()
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
// Indica si hay colision con un actor a partir de un rectangulo
|
// Indica si hay colision con un actor a partir de un rectangulo
|
||||||
int Map::actorCollision(SDL_Rect &rect)
|
int Map::actorCollision(SDL_Rect &rect)
|
||||||
{
|
{
|
||||||
@@ -604,3 +733,10 @@ std::string Map::getEnemyFile()
|
|||||||
{
|
{
|
||||||
return enemy_file;
|
return enemy_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recarga las texturas
|
||||||
|
void Map::reLoadTextures()
|
||||||
|
{
|
||||||
|
texture_tile->reLoad();
|
||||||
|
fillMapTexture();
|
||||||
|
}
|
||||||
29
source/map.h
@@ -44,13 +44,18 @@ private:
|
|||||||
std::string room_right; // Identificador de la habitación que se encuentra a la derecha
|
std::string room_right; // Identificador de la habitación que se encuentra a la derecha
|
||||||
std::string enemy_file; // Fichero con los enemigos para la habitación
|
std::string enemy_file; // Fichero con los enemigos para la habitación
|
||||||
std::string tileset_img; // Imagen con los graficos para la habitación
|
std::string tileset_img; // Imagen con los graficos para la habitación
|
||||||
std::vector<int> tilemap; // Indice de los tiles a dibujar en la habitación
|
std::vector<int> tilemap_l0; // Indice de los tiles a dibujar de la capa 0 en la habitación
|
||||||
|
std::vector<int> tilemap_l1; // Indice de los tiles a dibujar de la capa 1 en la habitación
|
||||||
|
std::vector<int> collisionmap; // Indice con los tipos de tile de la habitación
|
||||||
LTexture *texture_tile; // Textura con los graficos de los tiles habitación
|
LTexture *texture_tile; // Textura con los graficos de los tiles habitación
|
||||||
SDL_Texture *map_texture; // Textura para dibujar el mapa de la habitación
|
SDL_Texture *map_layer0; // Textura para dibujar la capa 0 del mapa de la habitación
|
||||||
|
SDL_Texture *map_layer1; // Textura para dibujar la capa 1 del mapa de la habitación
|
||||||
std::vector<Actor *> actors; // Listado con los actores de la habitación
|
std::vector<Actor *> actors; // Listado con los actores de la habitación
|
||||||
color_t bgColor1; // Color superior del degradado de fondo
|
color_t bgColor1; // Color superior del degradado de fondo
|
||||||
color_t bgColor2; // Color inferior del degradado de fondo
|
color_t bgColor2; // Color inferior del degradado de fondo
|
||||||
|
bool bgScroll; // Indica si la capa de fondo se mueve
|
||||||
ItemTracker *itemTracker; // Objeto que gestiona los items que ya se han recogido
|
ItemTracker *itemTracker; // Objeto que gestiona los items que ya se han recogido
|
||||||
|
int counter; // Contador para lo que se necesite
|
||||||
|
|
||||||
int tile_size; // Ancho del tile en pixels
|
int tile_size; // Ancho del tile en pixels
|
||||||
int map_width; // Ancho del mapa en tiles
|
int map_width; // Ancho del mapa en tiles
|
||||||
@@ -79,24 +84,33 @@ public:
|
|||||||
// Actualiza todas las variables
|
// Actualiza todas las variables
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
// Dibuja el objeto
|
// Dibuja todos los elementos del mapa
|
||||||
void render();
|
void render();
|
||||||
|
|
||||||
|
// Dibuja la capa 1
|
||||||
|
void renderLayer0();
|
||||||
|
|
||||||
|
// Dibuja la capa 1
|
||||||
|
void renderLayer1();
|
||||||
|
|
||||||
|
// Dibuja los actores
|
||||||
|
void renderActors();
|
||||||
|
|
||||||
// Devuelve el tipo de tile que hay en un punto
|
// Devuelve el tipo de tile que hay en un punto
|
||||||
e_tile_map getTile(SDL_Point p);
|
e_tile_map getTile(SDL_Point p);
|
||||||
|
|
||||||
// Devuelve el valor de la variable
|
// Devuelve el valor de la variable
|
||||||
int getTileSize();
|
int getTileSize();
|
||||||
|
|
||||||
// Devuelve el indice del tile correspondiente a un punto del mapa
|
|
||||||
int getTileIndex(SDL_Point p);
|
|
||||||
|
|
||||||
// Devuelve el valor de los bordes de la zona de juego
|
// Devuelve el valor de los bordes de la zona de juego
|
||||||
int getPlayArea(e_border border);
|
int getPlayArea(e_border border);
|
||||||
|
|
||||||
// Devuelve el nombre del fichero de la habitación en funcion del borde
|
// Devuelve el nombre del fichero de la habitación en funcion del borde
|
||||||
std::string getRoomFileName(e_border border);
|
std::string getRoomFileName(e_border border);
|
||||||
|
|
||||||
|
// Devuelve el nombre del fichero de la habitación
|
||||||
|
std::string getName();
|
||||||
|
|
||||||
// Indica si hay colision con un actor a partir de un rectangulo
|
// Indica si hay colision con un actor a partir de un rectangulo
|
||||||
int actorCollision(SDL_Rect &rect);
|
int actorCollision(SDL_Rect &rect);
|
||||||
|
|
||||||
@@ -120,6 +134,9 @@ public:
|
|||||||
|
|
||||||
// Obtiene el valor de la variable
|
// Obtiene el valor de la variable
|
||||||
std::string getEnemyFile();
|
std::string getEnemyFile();
|
||||||
|
|
||||||
|
// Recarga las texturas
|
||||||
|
void reLoadTextures();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
313
source/menu.cpp
@@ -2,21 +2,28 @@
|
|||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
Menu::Menu(SDL_Renderer *renderer, Text *text, Input *input)
|
Menu::Menu(SDL_Renderer *renderer, Asset *asset, Input *input, std::string file)
|
||||||
{
|
{
|
||||||
this->renderer = renderer;
|
this->renderer = renderer;
|
||||||
this->text = text;
|
this->asset = asset;
|
||||||
this->input = input;
|
this->input = input;
|
||||||
|
|
||||||
soundMove = nullptr;
|
soundMove = nullptr;
|
||||||
soundAccept = nullptr;
|
soundAccept = nullptr;
|
||||||
soundCancel = nullptr;
|
soundCancel = nullptr;
|
||||||
|
|
||||||
|
init();
|
||||||
|
if (file != "")
|
||||||
|
{
|
||||||
|
load(file);
|
||||||
|
}
|
||||||
|
reorganize();
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu::~Menu()
|
Menu::~Menu()
|
||||||
{
|
{
|
||||||
renderer = nullptr;
|
renderer = nullptr;
|
||||||
text = nullptr;
|
asset = nullptr;
|
||||||
input = nullptr;
|
input = nullptr;
|
||||||
|
|
||||||
if (soundMove)
|
if (soundMove)
|
||||||
@@ -33,21 +40,288 @@ Menu::~Menu()
|
|||||||
{
|
{
|
||||||
JA_DeleteSound(soundCancel);
|
JA_DeleteSound(soundCancel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (text != nullptr)
|
||||||
|
{
|
||||||
|
delete text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inicializador
|
// Carga la configuración del menu desde un archivo de texto
|
||||||
void Menu::init(std::string name, int x, int y, int backgroundType)
|
bool Menu::load(std::string file_path)
|
||||||
|
{
|
||||||
|
// Indicador de éxito en la carga
|
||||||
|
bool success = true;
|
||||||
|
|
||||||
|
// Indica si se ha creado ya el objeto de texto
|
||||||
|
bool textAllocated = false;
|
||||||
|
|
||||||
|
std::string filename = file_path.substr(file_path.find_last_of("\\/") + 1);
|
||||||
|
std::string line;
|
||||||
|
std::ifstream file(file_path);
|
||||||
|
|
||||||
|
// El fichero se puede abrir
|
||||||
|
if (file.good())
|
||||||
|
{
|
||||||
|
// Procesa el fichero linea a linea
|
||||||
|
printf("Reading file %s\n", filename.c_str());
|
||||||
|
while (std::getline(file, line))
|
||||||
|
{
|
||||||
|
if (line == "[item]")
|
||||||
|
{
|
||||||
|
item_t item;
|
||||||
|
item.label = "";
|
||||||
|
item.hPaddingDown = 1;
|
||||||
|
item.selectable = true;
|
||||||
|
item.greyed = false;
|
||||||
|
item.linkedDown = false;
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
|
||||||
|
std::getline(file, line);
|
||||||
|
|
||||||
|
// Encuentra la posición del caracter '='
|
||||||
|
int pos = line.find("=");
|
||||||
|
|
||||||
|
// Procesa las dos subcadenas
|
||||||
|
if (!setItem(&item, line.substr(0, pos), line.substr(pos + 1, line.length())))
|
||||||
|
{
|
||||||
|
printf("Warning: file %s\n, unknown parameter \"%s\"\n", filename.c_str(), line.substr(0, pos).c_str());
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
} while (line != "[/item]");
|
||||||
|
|
||||||
|
addItem(item.label, item.hPaddingDown, item.selectable, item.greyed, item.linkedDown);
|
||||||
|
}
|
||||||
|
|
||||||
|
// En caso contrario se parsea el fichero para buscar las variables y los valores
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Encuentra la posición del caracter '='
|
||||||
|
int pos = line.find("=");
|
||||||
|
// Procesa las dos subcadenas
|
||||||
|
if (!setVars(line.substr(0, pos), line.substr(pos + 1, line.length())))
|
||||||
|
{
|
||||||
|
printf("Warning: file %s, unknown parameter \"%s\"\n", filename.c_str(), line.substr(0, pos).c_str());
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Crea el objeto text tan pronto como se pueda. Necesario para añadir items
|
||||||
|
if (font_png != "" && font_txt != "" && !textAllocated)
|
||||||
|
{
|
||||||
|
text = new Text(asset->get(font_png), asset->get(font_txt), renderer);
|
||||||
|
textAllocated = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cierra el fichero
|
||||||
|
printf("Closing file %s\n\n", filename.c_str());
|
||||||
|
file.close();
|
||||||
|
}
|
||||||
|
// El fichero no se puede abrir
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("Warning: Unable to open %s file\n", filename.c_str());
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Asigna variables a partir de dos cadenas
|
||||||
|
bool Menu::setItem(item_t *item, std::string var, std::string value)
|
||||||
|
{
|
||||||
|
// Indicador de éxito en la asignación
|
||||||
|
bool success = true;
|
||||||
|
|
||||||
|
if (var == "text")
|
||||||
|
{
|
||||||
|
item->label = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "hPaddingDown")
|
||||||
|
{
|
||||||
|
item->hPaddingDown = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "selectable")
|
||||||
|
{
|
||||||
|
item->selectable = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "greyed")
|
||||||
|
{
|
||||||
|
item->greyed = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "linkedDown")
|
||||||
|
{
|
||||||
|
item->linkedDown = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if ((var == "") || (var == "[/item]"))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Asigna variables a partir de dos cadenas
|
||||||
|
bool Menu::setVars(std::string var, std::string value)
|
||||||
|
{
|
||||||
|
// Indicador de éxito en la asignación
|
||||||
|
bool success = true;
|
||||||
|
|
||||||
|
if (var == "font_png")
|
||||||
|
{
|
||||||
|
font_png = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "font_txt")
|
||||||
|
{
|
||||||
|
font_txt = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "sound_cancel")
|
||||||
|
{
|
||||||
|
soundCancel = JA_LoadSound(asset->get(value).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "sound_accept")
|
||||||
|
{
|
||||||
|
soundAccept = JA_LoadSound(asset->get(value).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "sound_move")
|
||||||
|
{
|
||||||
|
soundMove = JA_LoadSound(asset->get(value).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "name")
|
||||||
|
{
|
||||||
|
name = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "x")
|
||||||
|
{
|
||||||
|
x = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "centerX")
|
||||||
|
{
|
||||||
|
centerX = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "centerY")
|
||||||
|
{
|
||||||
|
centerY = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "y")
|
||||||
|
{
|
||||||
|
y = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "backgroundType")
|
||||||
|
{
|
||||||
|
backgroundType = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "backgroundColor")
|
||||||
|
{
|
||||||
|
// Se introducen los valores separados por comas en un vector
|
||||||
|
std::stringstream ss(value);
|
||||||
|
std::string tmp;
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
rectBG.color.r = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
rectBG.color.g = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
rectBG.color.b = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
rectBG.a = std::stoi(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "selector_color")
|
||||||
|
{
|
||||||
|
// Se introducen los valores separados por comas en un vector
|
||||||
|
std::stringstream ss(value);
|
||||||
|
std::string tmp;
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.color.r = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.color.g = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.color.b = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.a = std::stoi(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "selector_text_color")
|
||||||
|
{
|
||||||
|
// Se introducen los valores separados por comas en un vector
|
||||||
|
std::stringstream ss(value);
|
||||||
|
std::string tmp;
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.itemColor.r = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.itemColor.g = std::stoi(tmp);
|
||||||
|
getline(ss, tmp, ',');
|
||||||
|
selector.itemColor.b = std::stoi(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "areElementsCenteredOnX")
|
||||||
|
{
|
||||||
|
areElementsCenteredOnX = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "isCenteredOnX")
|
||||||
|
{
|
||||||
|
isCenteredOnX = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "isCenteredOnY")
|
||||||
|
{
|
||||||
|
isCenteredOnY = value == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "defaultActionWhenCancel")
|
||||||
|
{
|
||||||
|
defaultActionWhenCancel = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inicializa las variables
|
||||||
|
void Menu::init()
|
||||||
{
|
{
|
||||||
// Inicia variables
|
// Inicia variables
|
||||||
this->name = name;
|
name = "";
|
||||||
selector.index = 0;
|
selector.index = 0;
|
||||||
itemSelected = MENU_NO_OPTION;
|
itemSelected = MENU_NO_OPTION;
|
||||||
this->x = x;
|
x = 0;
|
||||||
this->y = y;
|
y = 0;
|
||||||
rectBG.rect = {0, 0, 0, 0};
|
rectBG.rect = {0, 0, 0, 0};
|
||||||
rectBG.color = {0, 0, 0};
|
rectBG.color = {0, 0, 0};
|
||||||
rectBG.a = 0;
|
rectBG.a = 0;
|
||||||
this->backgroundType = backgroundType;
|
backgroundType = MENU_BACKGROUND_SOLID;
|
||||||
isCenteredOnX = false;
|
isCenteredOnX = false;
|
||||||
isCenteredOnY = false;
|
isCenteredOnY = false;
|
||||||
areElementsCenteredOnX = false;
|
areElementsCenteredOnX = false;
|
||||||
@@ -55,6 +329,9 @@ void Menu::init(std::string name, int x, int y, int backgroundType)
|
|||||||
centerY = 0;
|
centerY = 0;
|
||||||
widestItem = 0;
|
widestItem = 0;
|
||||||
colorGreyed = {128, 128, 128};
|
colorGreyed = {128, 128, 128};
|
||||||
|
defaultActionWhenCancel = 0;
|
||||||
|
font_png = "";
|
||||||
|
font_txt = "";
|
||||||
|
|
||||||
// Selector
|
// Selector
|
||||||
selector.originY = 0;
|
selector.originY = 0;
|
||||||
@@ -174,7 +451,7 @@ void Menu::updateSelector()
|
|||||||
// Coloca el selector en una posición específica
|
// Coloca el selector en una posición específica
|
||||||
void Menu::setSelectorPos(int index)
|
void Menu::setSelectorPos(int index)
|
||||||
{
|
{
|
||||||
if (index < item.size())
|
if (index < (int)item.size())
|
||||||
{
|
{
|
||||||
selector.index = index;
|
selector.index = index;
|
||||||
selector.rect.y = selector.y = selector.originY = selector.targetY = item[selector.index].rect.y;
|
selector.rect.y = selector.y = selector.originY = selector.targetY = item[selector.index].rect.y;
|
||||||
@@ -338,8 +615,8 @@ void Menu::render()
|
|||||||
SDL_RenderDrawRect(renderer, &rectBG.rect);
|
SDL_RenderDrawRect(renderer, &rectBG.rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Renderitza el texto
|
// Renderiza el texto
|
||||||
for (int i = 0; i < item.size(); i++)
|
for (int i = 0; i < (int)item.size(); ++i)
|
||||||
{
|
{
|
||||||
if (i == selector.index)
|
if (i == selector.index)
|
||||||
{
|
{
|
||||||
@@ -373,14 +650,14 @@ void Menu::render()
|
|||||||
// Establece el rectangulo de fondo del menu y el selector
|
// Establece el rectangulo de fondo del menu y el selector
|
||||||
void Menu::setRectSize()
|
void Menu::setRectSize()
|
||||||
{
|
{
|
||||||
rectBG.rect.w = findWidth() + text->getCharacterWidth();
|
rectBG.rect.w = findWidth() + text->getCharacterSize();
|
||||||
rectBG.rect.h = findHeight() + text->getCharacterWidth();
|
rectBG.rect.h = findHeight() + text->getCharacterSize();
|
||||||
|
|
||||||
// La posición X es la del menú menos medio caracter
|
// La posición X es la del menú menos medio caracter
|
||||||
rectBG.rect.x = x - (text->getCharacterWidth() / 2);
|
rectBG.rect.x = x - (text->getCharacterSize() / 2);
|
||||||
|
|
||||||
// La posición Y es la del menu menos la altura de medio caracter
|
// La posición Y es la del menu menos la altura de medio caracter
|
||||||
rectBG.rect.y = y - (text->getCharacterWidth() / 2);
|
rectBG.rect.y = y - (text->getCharacterSize() / 2);
|
||||||
|
|
||||||
// Establecemos los valores del rectangulo del selector a partir de los valores del rectangulo de fondo
|
// Establecemos los valores del rectangulo del selector a partir de los valores del rectangulo de fondo
|
||||||
setSelectorPos(selector.index);
|
setSelectorPos(selector.index);
|
||||||
@@ -493,7 +770,7 @@ void Menu::setItemCaption(int index, std::string text)
|
|||||||
{
|
{
|
||||||
item[index].label = text;
|
item[index].label = text;
|
||||||
item[index].rect.w = this->text->lenght(item[index].label);
|
item[index].rect.w = this->text->lenght(item[index].label);
|
||||||
item[index].rect.h = this->text->getCharacterWidth();
|
item[index].rect.h = this->text->getCharacterSize();
|
||||||
reorganize();
|
reorganize();
|
||||||
|
|
||||||
const std::string texto = item[index].label + ":" + std::to_string(item[index].rect.w);
|
const std::string texto = item[index].label + ":" + std::to_string(item[index].rect.w);
|
||||||
@@ -575,7 +852,7 @@ void Menu::replaceElementsOnY()
|
|||||||
{
|
{
|
||||||
item[0].rect.y = y;
|
item[0].rect.y = y;
|
||||||
|
|
||||||
for (int i = 1; i < item.size(); i++)
|
for (int i = 1; i < (int)item.size(); i++)
|
||||||
{
|
{
|
||||||
item[i].rect.y = item[i - 1].rect.y + item[i - 1].rect.h + item[i - 1].hPaddingDown;
|
item[i].rect.y = item[i - 1].rect.y + item[i - 1].rect.h + item[i - 1].hPaddingDown;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,12 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
#include "asset.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "jail_audio.h"
|
#include "jail_audio.h"
|
||||||
|
#include <sstream>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
#ifndef MENU_H
|
#ifndef MENU_H
|
||||||
#define MENU_H
|
#define MENU_H
|
||||||
@@ -85,10 +88,25 @@ private:
|
|||||||
SDL_Renderer *renderer; // Puntero al renderizador de la ventana
|
SDL_Renderer *renderer; // Puntero al renderizador de la ventana
|
||||||
Text *text; // Texto para poder escribir los items del menu
|
Text *text; // Texto para poder escribir los items del menu
|
||||||
Input *input; // Gestor de eventos de entrada de teclado o gamepad
|
Input *input; // Gestor de eventos de entrada de teclado o gamepad
|
||||||
|
Asset *asset; // Objeto para gestionar los ficheros de recursos
|
||||||
color_t colorGreyed; // Color para los elementos agrisados
|
color_t colorGreyed; // Color para los elementos agrisados
|
||||||
rectangle_t rectBG; // Rectangulo de fondo del menu
|
rectangle_t rectBG; // Rectangulo de fondo del menu
|
||||||
std::vector<item_t> item; // Estructura para cada elemento del menu
|
std::vector<item_t> item; // Estructura para cada elemento del menu
|
||||||
selector_t selector; // Variables para pintar el selector del menu
|
selector_t selector; // Variables para pintar el selector del menu
|
||||||
|
std::string font_png;
|
||||||
|
std::string font_txt;
|
||||||
|
|
||||||
|
// Carga la configuración del menu desde un archivo de texto
|
||||||
|
bool load(std::string file_path);
|
||||||
|
|
||||||
|
// Asigna variables a partir de dos cadenas
|
||||||
|
bool setVars(std::string var, std::string value);
|
||||||
|
|
||||||
|
// Asigna variables a partir de dos cadenas
|
||||||
|
bool setItem(item_t *item, std::string var, std::string value);
|
||||||
|
|
||||||
|
// Inicializa las variables
|
||||||
|
void init();
|
||||||
|
|
||||||
// Establece el rectangulo de fondo del menu
|
// Establece el rectangulo de fondo del menu
|
||||||
void setRectSize();
|
void setRectSize();
|
||||||
@@ -125,14 +143,11 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
Menu(SDL_Renderer *renderer, Text *text, Input *input);
|
Menu(SDL_Renderer *renderer, Asset *asset, Input *input, std::string file="");
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Menu();
|
~Menu();
|
||||||
|
|
||||||
// Inicializador
|
|
||||||
void init(std::string name, int x, int y, int backgroundType);
|
|
||||||
|
|
||||||
// Carga los ficheros de audio
|
// Carga los ficheros de audio
|
||||||
void loadAudioFile(std::string file, int sound);
|
void loadAudioFile(std::string file, int sound);
|
||||||
|
|
||||||
@@ -192,6 +207,8 @@ public:
|
|||||||
|
|
||||||
// Establece el estado de enlace de un item
|
// Establece el estado de enlace de un item
|
||||||
void setLinkedDown(int index, bool value);
|
void setLinkedDown(int index, bool value);
|
||||||
|
|
||||||
|
// hacer procedimientos para establecer el titulo, la x, la y, la tipografia y el tipo de fondo
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
#include "player.h"
|
#include "player.h"
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
Player::Player(SDL_Renderer *renderer, Asset *asset, Input *input, Map *map)
|
Player::Player(SDL_Renderer *renderer, Asset *asset, Input *input, Map *map, Debug *debug, int *diamonds)
|
||||||
{
|
{
|
||||||
this->asset = asset;
|
this->asset = asset;
|
||||||
this->renderer = renderer;
|
this->renderer = renderer;
|
||||||
this->input = input;
|
this->input = input;
|
||||||
this->map = map;
|
this->map = map;
|
||||||
|
this->debug = debug;
|
||||||
|
this->diamonds = diamonds;
|
||||||
|
|
||||||
sound_jump = JA_LoadSound(asset->get("sound_player_jump.wav").c_str());
|
sound_jump = JA_LoadSound(asset->get("sound_player_jump.wav").c_str());
|
||||||
sound_death = JA_LoadSound(asset->get("sound_player_death.wav").c_str());
|
sound_death = JA_LoadSound(asset->get("sound_player_death.wav").c_str());
|
||||||
sound_coin = JA_LoadSound(asset->get("sound_player_coin.wav").c_str());
|
sound_coin = JA_LoadSound(asset->get("sound_player_coin.wav").c_str());
|
||||||
|
|
||||||
texture = new LTexture();
|
texture = new LTexture(renderer, asset->get("player.png"));
|
||||||
loadTextureFromFile(texture, asset->get("player.png"), renderer);
|
|
||||||
|
|
||||||
sprite = new AnimatedSprite(texture, renderer, asset->get("player.ani"));
|
sprite = new AnimatedSprite(texture, renderer, asset->get("player.ani"));
|
||||||
|
|
||||||
w = 16;
|
w = 16;
|
||||||
h = 24;
|
h = 24;
|
||||||
x = 3 * 16;
|
x = 8 * map->getTileSize();
|
||||||
y = 168;
|
y = 20 * map->getTileSize();
|
||||||
vx = 0;
|
vx = 0;
|
||||||
vy = 0;
|
vy = 0;
|
||||||
lastPosition = {(int)x, (int)y};
|
lastPosition = {(int)x, (int)y};
|
||||||
@@ -34,14 +34,15 @@ Player::Player(SDL_Renderer *renderer, Asset *asset, Input *input, Map *map)
|
|||||||
maxVX = 1.5f;
|
maxVX = 1.5f;
|
||||||
maxVY = 4.0f;
|
maxVY = 4.0f;
|
||||||
|
|
||||||
state = standing;
|
state = s_standing;
|
||||||
|
living = l_alive;
|
||||||
jumpPressed = false;
|
jumpPressed = false;
|
||||||
key.insert(key.end(), {0, 0, 0, 0, 0, 0});
|
key.insert(key.end(), {0, 0, 0, 0, 0, 0});
|
||||||
const SDL_Point p = {0, 0};
|
const SDL_Point p = {0, 0};
|
||||||
collider.insert(collider.end(), {p, p, p, p, p, p, p, p, p, p, p, p});
|
collider.insert(collider.end(), {p, p, p, p, p, p, p, p, p, p, p, p});
|
||||||
underFeet.insert(underFeet.end(), {p, p, p});
|
underFeet.insert(underFeet.end(), {p, p, p});
|
||||||
hookedOnMovingPlatform = -1;
|
hookedOnMovingPlatform = -1;
|
||||||
diamonds = 0;
|
colliderBox = getRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
@@ -64,6 +65,17 @@ void Player::update()
|
|||||||
move();
|
move();
|
||||||
animate();
|
animate();
|
||||||
checkActors();
|
checkActors();
|
||||||
|
colliderBox = getRect();
|
||||||
|
|
||||||
|
debug->add(std::to_string((int)sprite->getPosX()) + "," + std::to_string((int)sprite->getPosY()) + "," + std::to_string((int)sprite->getWidth()) + "," + std::to_string((int)sprite->getHeight()));
|
||||||
|
debug->add("VY " + std::to_string(vy) + " " + std::to_string(jumpStrenght));
|
||||||
|
debug->add("VX " + std::to_string(vx));
|
||||||
|
debug->add("jump_pressed " + std::to_string(jumpPressed));
|
||||||
|
debug->add("isOnFloor " + std::to_string(isOnFloor()));
|
||||||
|
debug->add("getTile(" + std::to_string(underFeet[0].x) + "," + std::to_string(underFeet[0].y) + ") = " + std::to_string(map->getTile(underFeet[0])));
|
||||||
|
debug->add("state " + std::to_string(state));
|
||||||
|
debug->add(map->getName() + " (" + map->getRoomFileName(b_top) + ", " + map->getRoomFileName(b_right) + ", " + map->getRoomFileName(b_bottom) + ", " + map->getRoomFileName(b_left) + ")");
|
||||||
|
debug->add("hookedOn = " + std::to_string(hookedOnMovingPlatform));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dibuja el objeto
|
// Dibuja el objeto
|
||||||
@@ -77,44 +89,50 @@ void Player::checkInput()
|
|||||||
{
|
{
|
||||||
if (input->checkInput(INPUT_LEFT, REPEAT_TRUE))
|
if (input->checkInput(INPUT_LEFT, REPEAT_TRUE))
|
||||||
{
|
{
|
||||||
vx = std::max(vx -= accelX, -maxVX);
|
vx -= accelX;
|
||||||
|
vx = std::max(vx, -maxVX);
|
||||||
sprite->setFlip(SDL_FLIP_HORIZONTAL);
|
sprite->setFlip(SDL_FLIP_HORIZONTAL);
|
||||||
}
|
}
|
||||||
else if (input->checkInput(INPUT_RIGHT, REPEAT_TRUE))
|
else if (input->checkInput(INPUT_RIGHT, REPEAT_TRUE))
|
||||||
{
|
{
|
||||||
vx = std::min(vx += accelX, maxVX);
|
vx += accelX;
|
||||||
|
vx = std::min(vx, maxVX);
|
||||||
sprite->setFlip(SDL_FLIP_NONE);
|
sprite->setFlip(SDL_FLIP_NONE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (vx > 0.0f)
|
if (vx > 0.0f)
|
||||||
{
|
{
|
||||||
vx = std::max(vx -= accelX, 0.0f);
|
vx -= accelX;
|
||||||
|
vx = std::max(vx, 0.0f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vx = std::min(vx += accelX, 0.0f);
|
vx += accelX;
|
||||||
|
vx = std::min(vx, 0.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->checkInput(INPUT_UP, REPEAT_TRUE))
|
if (input->checkInput(INPUT_UP, REPEAT_TRUE))
|
||||||
{
|
{
|
||||||
if (state == standing)
|
if (state == s_standing)
|
||||||
{
|
{
|
||||||
if (!jumpPressed)
|
if (!jumpPressed)
|
||||||
{
|
{
|
||||||
jumpStrenght = 2.0f;
|
jumpStrenght = 2.0f;
|
||||||
vy -= jumpStrenght;
|
vy -= jumpStrenght;
|
||||||
state = jumping;
|
state = s_jumping;
|
||||||
|
isOn = f_none;
|
||||||
jumpPressed = true;
|
jumpPressed = true;
|
||||||
JA_PlaySound(sound_jump);
|
JA_PlaySound(sound_jump);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (state == jumping)
|
else if (state == s_jumping)
|
||||||
{
|
{
|
||||||
if (jumpPressed)
|
if (jumpPressed)
|
||||||
{
|
{
|
||||||
jumpStrenght = std::max(jumpStrenght -= 0.4f, 0.0f);
|
jumpStrenght -= 0.4f;
|
||||||
|
jumpStrenght = std::max(jumpStrenght, 0.0f);
|
||||||
vy -= jumpStrenght;
|
vy -= jumpStrenght;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,9 +145,9 @@ void Player::checkInput()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
jumpPressed = false;
|
jumpPressed = false;
|
||||||
if (state == jumping)
|
if (state == s_jumping)
|
||||||
{
|
{
|
||||||
state = falling;
|
state = s_falling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -138,9 +156,10 @@ void Player::checkInput()
|
|||||||
void Player::addGravity()
|
void Player::addGravity()
|
||||||
{
|
{
|
||||||
// *** Falta ver pq la gravedad empuja al muñeco hacia abajo en los tiles atravesables
|
// *** Falta ver pq la gravedad empuja al muñeco hacia abajo en los tiles atravesables
|
||||||
if (state != standing)
|
if (state != s_standing)
|
||||||
{
|
{
|
||||||
vy = std::min(vy += gravity, maxVY);
|
vy += gravity;
|
||||||
|
vy = std::min(vy, maxVY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,12 +246,12 @@ void Player::move()
|
|||||||
if (vy > 0.0f)
|
if (vy > 0.0f)
|
||||||
{
|
{
|
||||||
y -= ((int)y + h) % tileSize;
|
y -= ((int)y + h) % tileSize;
|
||||||
state = standing;
|
state = s_standing;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
y += tileSize - ((int)y % tileSize);
|
y += tileSize - ((int)y % tileSize);
|
||||||
state = falling;
|
state = s_falling;
|
||||||
}
|
}
|
||||||
vy = 0.0f;
|
vy = 0.0f;
|
||||||
}
|
}
|
||||||
@@ -253,14 +272,14 @@ void Player::move()
|
|||||||
// Tiene uno de los pies sobre una superficie
|
// Tiene uno de los pies sobre una superficie
|
||||||
if (isOnFloor())
|
if (isOnFloor())
|
||||||
{
|
{
|
||||||
state = standing;
|
state = s_standing;
|
||||||
vy = 0.0f;
|
vy = 0.0f;
|
||||||
y -= ((int)y + h) % tileSize;
|
y -= ((int)y + h) % tileSize;
|
||||||
}
|
}
|
||||||
// Tiene ambos pies sobre el vacío
|
// Tiene ambos pies sobre el vacío
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
state = falling;
|
state = s_falling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,14 +288,14 @@ void Player::move()
|
|||||||
// Si está cayendo
|
// Si está cayendo
|
||||||
if (going_down2)
|
if (going_down2)
|
||||||
{
|
{
|
||||||
state = falling;
|
state = s_falling;
|
||||||
// Si está alineado con el tile mira el suelo (para que no lo mire si está
|
// Si está alineado con el tile mira el suelo (para que no lo mire si está
|
||||||
// dentro de un tile atravesable y lo deje a medias)
|
// dentro de un tile atravesable y lo deje a medias)
|
||||||
if (tile_aligned2)
|
if (tile_aligned2)
|
||||||
{
|
{
|
||||||
if (isOnFloor())
|
if (isOnFloor())
|
||||||
{
|
{
|
||||||
state = standing;
|
state = s_standing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,9 +306,9 @@ void Player::move()
|
|||||||
if (isOnMovingPlatform())
|
if (isOnMovingPlatform())
|
||||||
{
|
{
|
||||||
// Detener la caída y alinearlo con la plataforma
|
// Detener la caída y alinearlo con la plataforma
|
||||||
state = standing;
|
state = s_standing;
|
||||||
vy = 0.0f;
|
vy = 0.0f;
|
||||||
y = -h + map->getActorCollider(hookedOnMovingPlatform).y;
|
y = map->getActorCollider(hookedOnMovingPlatform).y - h;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -298,9 +317,9 @@ void Player::move()
|
|||||||
if (hookedOnMovingPlatform != -1)
|
if (hookedOnMovingPlatform != -1)
|
||||||
{
|
{
|
||||||
// Dejarlo alineado con la plataforma
|
// Dejarlo alineado con la plataforma
|
||||||
state = standing;
|
state = s_standing;
|
||||||
vy = 0.0f;
|
vy = 0.0f;
|
||||||
y = -h + map->getActorCollider(hookedOnMovingPlatform).y;
|
y = map->getActorCollider(hookedOnMovingPlatform).y - h;
|
||||||
x += map->getActorIncX(hookedOnMovingPlatform);
|
x += map->getActorIncX(hookedOnMovingPlatform);
|
||||||
isOnMovingPlatform();
|
isOnMovingPlatform();
|
||||||
}
|
}
|
||||||
@@ -314,13 +333,10 @@ void Player::move()
|
|||||||
// Anima al jugador
|
// Anima al jugador
|
||||||
void Player::animate()
|
void Player::animate()
|
||||||
{
|
{
|
||||||
if (state != standing)
|
if (state != s_standing)
|
||||||
{
|
|
||||||
// if (abs(vy) > 1.0f)
|
|
||||||
{
|
{
|
||||||
sprite->setCurrentAnimation("jump");
|
sprite->setCurrentAnimation("jump");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (abs(vx) < 0.50f)
|
if (abs(vx) < 0.50f)
|
||||||
@@ -339,6 +355,11 @@ void Player::animate()
|
|||||||
// Comprueba si el jugador tiene suelo debajo de los pies
|
// Comprueba si el jugador tiene suelo debajo de los pies
|
||||||
bool Player::isOnFloor()
|
bool Player::isOnFloor()
|
||||||
{
|
{
|
||||||
|
if (isOn == f_platform)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool onFloor = false;
|
bool onFloor = false;
|
||||||
|
|
||||||
updateFeet();
|
updateFeet();
|
||||||
@@ -347,6 +368,16 @@ bool Player::isOnFloor()
|
|||||||
{
|
{
|
||||||
onFloor |= ((map->getTile(f) == wall) || (map->getTile(f) == passable));
|
onFloor |= ((map->getTile(f) == wall) || (map->getTile(f) == passable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (onFloor)
|
||||||
|
{
|
||||||
|
isOn = f_wall;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isOn = f_none;
|
||||||
|
}
|
||||||
|
|
||||||
return onFloor;
|
return onFloor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,6 +387,12 @@ bool Player::isOnMovingPlatform()
|
|||||||
bool onMovingPlatform = false;
|
bool onMovingPlatform = false;
|
||||||
hookedOnMovingPlatform = -1;
|
hookedOnMovingPlatform = -1;
|
||||||
|
|
||||||
|
// Si esta sobre el suelo, no puede estar tambien sobre una plataforma movil
|
||||||
|
if (isOn == f_wall)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
updateFeet();
|
updateFeet();
|
||||||
|
|
||||||
for (auto f : underFeet)
|
for (auto f : underFeet)
|
||||||
@@ -367,6 +404,11 @@ bool Player::isOnMovingPlatform()
|
|||||||
if (!onMovingPlatform)
|
if (!onMovingPlatform)
|
||||||
{
|
{
|
||||||
hookedOnMovingPlatform = -1;
|
hookedOnMovingPlatform = -1;
|
||||||
|
isOn = f_none;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isOn = f_platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
return onMovingPlatform;
|
return onMovingPlatform;
|
||||||
@@ -375,31 +417,33 @@ bool Player::isOnMovingPlatform()
|
|||||||
// Comprueba si está situado en alguno de los cuatro bordes de la habitación
|
// Comprueba si está situado en alguno de los cuatro bordes de la habitación
|
||||||
bool Player::isOnScreenBorder()
|
bool Player::isOnScreenBorder()
|
||||||
{
|
{
|
||||||
bool success = false;
|
|
||||||
border = b_none;
|
border = b_none;
|
||||||
|
|
||||||
if (x < map->getPlayArea(b_left))
|
if (x < map->getPlayArea(b_left))
|
||||||
{
|
{
|
||||||
border = b_left;
|
border = b_left;
|
||||||
success = true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (x > map->getPlayArea(b_right) - w)
|
else if (x > map->getPlayArea(b_right) - w)
|
||||||
{
|
{
|
||||||
border = b_right;
|
border = b_right;
|
||||||
success = true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (y < map->getPlayArea(b_top))
|
else if (y < map->getPlayArea(b_top))
|
||||||
{
|
{
|
||||||
border = b_top;
|
border = b_top;
|
||||||
success = true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (y > map->getPlayArea(b_bottom) - h)
|
else if (y > map->getPlayArea(b_bottom) - h)
|
||||||
{
|
{
|
||||||
border = b_bottom;
|
border = b_bottom;
|
||||||
success = true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Devuelve el valor de la variable
|
// Devuelve el valor de la variable
|
||||||
@@ -451,7 +495,7 @@ int Player::checkActors()
|
|||||||
|
|
||||||
if (name == a_diamond)
|
if (name == a_diamond)
|
||||||
{
|
{
|
||||||
diamonds++;
|
*diamonds = *diamonds + 1;
|
||||||
JA_PlaySound(sound_coin);
|
JA_PlaySound(sound_coin);
|
||||||
map->getItem(index);
|
map->getItem(index);
|
||||||
map->deleteActor(index);
|
map->deleteActor(index);
|
||||||
@@ -459,3 +503,52 @@ int Player::checkActors()
|
|||||||
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recarga las texturas
|
||||||
|
void Player::reLoadTextures()
|
||||||
|
{
|
||||||
|
texture->reLoad();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Devuelve el rectangulo que contiene al enemigo
|
||||||
|
SDL_Rect Player::getRect()
|
||||||
|
{
|
||||||
|
return sprite->getRect();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtiene el rectangulo de colision del enemigo
|
||||||
|
SDL_Rect &Player::getCollider()
|
||||||
|
{
|
||||||
|
return colliderBox;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Comprueba los estados de vida
|
||||||
|
void Player::checkLivingState()
|
||||||
|
{
|
||||||
|
switch (living)
|
||||||
|
{
|
||||||
|
case l_alive:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case l_dying:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case l_dead:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Establece el estado de vida del jugador
|
||||||
|
void Player::setLivingState(e_living value)
|
||||||
|
{
|
||||||
|
living = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtiene el estado de vida del jugador
|
||||||
|
e_living Player::getLivingState()
|
||||||
|
{
|
||||||
|
return living;
|
||||||
|
}
|
||||||