- [x] Erreur saut infini mario
- [x] Erreur -> Gestion params velocite en fonction taille bloc
This commit is contained in:
parent
57c029aadd
commit
09cc1952f1
843
SDL#4/err.log
843
SDL#4/err.log
|
@ -1,140 +1,276 @@
|
|||
WINDOW CREATED
|
||||
RENDERER CREATED
|
||||
INDEX: bottom-left0 AT 0
|
||||
INDEX: grass10 AT 0
|
||||
(-32,576) -> (32, 32)
|
||||
INDEX: bottom-left1 AT 1
|
||||
INDEX: grass11 AT 1
|
||||
(0,576) -> (32, 32)
|
||||
INDEX: bottom-left2 AT 2
|
||||
INDEX: grass12 AT 2
|
||||
(32,576) -> (32, 32)
|
||||
INDEX: bottom-left3 AT 3
|
||||
INDEX: grass13 AT 3
|
||||
(64,576) -> (32, 32)
|
||||
INDEX: bottom-left4 AT 4
|
||||
INDEX: grass14 AT 4
|
||||
(96,576) -> (32, 32)
|
||||
INDEX: bottom-left5 AT 5
|
||||
INDEX: grass15 AT 5
|
||||
(128,576) -> (32, 32)
|
||||
INDEX: bottom-left6 AT 6
|
||||
INDEX: grass16 AT 6
|
||||
(160,576) -> (32, 32)
|
||||
INDEX: bottom-left7 AT 7
|
||||
INDEX: grass17 AT 7
|
||||
(192,576) -> (32, 32)
|
||||
INDEX: bottom-left8 AT 8
|
||||
INDEX: grass18 AT 8
|
||||
(224,576) -> (32, 32)
|
||||
INDEX: bottom-left9 AT 9
|
||||
INDEX: grass19 AT 9
|
||||
(256,576) -> (32, 32)
|
||||
INDEX: bottom-left10 AT 10
|
||||
(-32,608) -> (32, 32)
|
||||
INDEX: bottom-left11 AT 11
|
||||
(0,608) -> (32, 32)
|
||||
INDEX: bottom-left12 AT 12
|
||||
(32,608) -> (32, 32)
|
||||
INDEX: bottom-left13 AT 13
|
||||
(64,608) -> (32, 32)
|
||||
INDEX: bottom-left14 AT 14
|
||||
(96,608) -> (32, 32)
|
||||
INDEX: bottom-left15 AT 15
|
||||
(128,608) -> (32, 32)
|
||||
INDEX: bottom-left16 AT 16
|
||||
(160,608) -> (32, 32)
|
||||
INDEX: bottom-left17 AT 17
|
||||
(192,608) -> (32, 32)
|
||||
INDEX: bottom-left18 AT 18
|
||||
(224,608) -> (32, 32)
|
||||
INDEX: bottom-left19 AT 19
|
||||
(256,608) -> (32, 32)
|
||||
INDEX: bottom-left20 AT 20
|
||||
(-32,640) -> (32, 32)
|
||||
INDEX: bottom-left21 AT 21
|
||||
(0,640) -> (32, 32)
|
||||
INDEX: bottom-left22 AT 22
|
||||
(32,640) -> (32, 32)
|
||||
INDEX: bottom-left23 AT 23
|
||||
(64,640) -> (32, 32)
|
||||
INDEX: bottom-left24 AT 24
|
||||
(96,640) -> (32, 32)
|
||||
INDEX: bottom-left25 AT 25
|
||||
(128,640) -> (32, 32)
|
||||
INDEX: bottom-left26 AT 26
|
||||
(160,640) -> (32, 32)
|
||||
INDEX: bottom-left27 AT 27
|
||||
(192,640) -> (32, 32)
|
||||
INDEX: bottom-left28 AT 28
|
||||
(224,640) -> (32, 32)
|
||||
INDEX: bottom-left29 AT 29
|
||||
(256,640) -> (32, 32)
|
||||
INDEX: bottom-center0 AT 30
|
||||
INDEX: grass110 AT 10
|
||||
(288,576) -> (32, 32)
|
||||
INDEX: grass111 AT 11
|
||||
(320,576) -> (32, 32)
|
||||
INDEX: grass112 AT 12
|
||||
(352,576) -> (32, 32)
|
||||
INDEX: grass113 AT 13
|
||||
(384,576) -> (32, 32)
|
||||
INDEX: bottom-center1 AT 31
|
||||
INDEX: grass114 AT 14
|
||||
(416,576) -> (32, 32)
|
||||
INDEX: bottom-center2 AT 32
|
||||
INDEX: grass115 AT 15
|
||||
(448,576) -> (32, 32)
|
||||
INDEX: bottom-center3 AT 33
|
||||
INDEX: grass116 AT 16
|
||||
(480,576) -> (32, 32)
|
||||
INDEX: bottom-center4 AT 34
|
||||
INDEX: grass117 AT 17
|
||||
(512,576) -> (32, 32)
|
||||
INDEX: bottom-center5 AT 35
|
||||
INDEX: grass118 AT 18
|
||||
(544,576) -> (32, 32)
|
||||
INDEX: bottom-center6 AT 36
|
||||
INDEX: grass119 AT 19
|
||||
(576,576) -> (32, 32)
|
||||
INDEX: bottom-center7 AT 37
|
||||
INDEX: grass120 AT 20
|
||||
(608,576) -> (32, 32)
|
||||
INDEX: bottom-center8 AT 38
|
||||
INDEX: grass121 AT 21
|
||||
(640,576) -> (32, 32)
|
||||
INDEX: bottom-center9 AT 39
|
||||
INDEX: grass122 AT 22
|
||||
(672,576) -> (32, 32)
|
||||
INDEX: bottom-center10 AT 40
|
||||
INDEX: grass123 AT 23
|
||||
(704,576) -> (32, 32)
|
||||
INDEX: grass124 AT 24
|
||||
(736,576) -> (32, 32)
|
||||
INDEX: grass125 AT 25
|
||||
(768,576) -> (32, 32)
|
||||
INDEX: grass126 AT 26
|
||||
(800,576) -> (32, 32)
|
||||
INDEX: grass127 AT 27
|
||||
(832,576) -> (32, 32)
|
||||
INDEX: grass128 AT 28
|
||||
(864,576) -> (32, 32)
|
||||
INDEX: grass129 AT 29
|
||||
(896,576) -> (32, 32)
|
||||
INDEX: grass130 AT 30
|
||||
(928,576) -> (32, 32)
|
||||
INDEX: grass131 AT 31
|
||||
(960,576) -> (32, 32)
|
||||
INDEX: grass132 AT 32
|
||||
(992,576) -> (32, 32)
|
||||
INDEX: grass133 AT 33
|
||||
(1024,576) -> (32, 32)
|
||||
INDEX: grass134 AT 34
|
||||
(-32,608) -> (32, 32)
|
||||
INDEX: grass135 AT 35
|
||||
(0,608) -> (32, 32)
|
||||
INDEX: grass136 AT 36
|
||||
(32,608) -> (32, 32)
|
||||
INDEX: grass137 AT 37
|
||||
(64,608) -> (32, 32)
|
||||
INDEX: grass138 AT 38
|
||||
(96,608) -> (32, 32)
|
||||
INDEX: grass139 AT 39
|
||||
(128,608) -> (32, 32)
|
||||
INDEX: grass140 AT 40
|
||||
(160,608) -> (32, 32)
|
||||
INDEX: grass141 AT 41
|
||||
(192,608) -> (32, 32)
|
||||
INDEX: grass142 AT 42
|
||||
(224,608) -> (32, 32)
|
||||
INDEX: grass143 AT 43
|
||||
(256,608) -> (32, 32)
|
||||
INDEX: grass144 AT 44
|
||||
(288,608) -> (32, 32)
|
||||
INDEX: grass145 AT 45
|
||||
(320,608) -> (32, 32)
|
||||
INDEX: grass146 AT 46
|
||||
(352,608) -> (32, 32)
|
||||
INDEX: grass147 AT 47
|
||||
(384,608) -> (32, 32)
|
||||
INDEX: bottom-center11 AT 41
|
||||
INDEX: grass148 AT 48
|
||||
(416,608) -> (32, 32)
|
||||
INDEX: bottom-center12 AT 42
|
||||
INDEX: grass149 AT 49
|
||||
(448,608) -> (32, 32)
|
||||
INDEX: bottom-center13 AT 43
|
||||
INDEX: grass150 AT 50
|
||||
(480,608) -> (32, 32)
|
||||
INDEX: bottom-center14 AT 44
|
||||
INDEX: grass151 AT 51
|
||||
(512,608) -> (32, 32)
|
||||
INDEX: bottom-center15 AT 45
|
||||
INDEX: grass152 AT 52
|
||||
(544,608) -> (32, 32)
|
||||
INDEX: bottom-center16 AT 46
|
||||
INDEX: grass153 AT 53
|
||||
(576,608) -> (32, 32)
|
||||
INDEX: bottom-center17 AT 47
|
||||
INDEX: grass154 AT 54
|
||||
(608,608) -> (32, 32)
|
||||
INDEX: bottom-center18 AT 48
|
||||
INDEX: grass155 AT 55
|
||||
(640,608) -> (32, 32)
|
||||
INDEX: bottom-center19 AT 49
|
||||
INDEX: grass156 AT 56
|
||||
(672,608) -> (32, 32)
|
||||
INDEX: bottom-center20 AT 50
|
||||
INDEX: grass157 AT 57
|
||||
(704,608) -> (32, 32)
|
||||
INDEX: grass158 AT 58
|
||||
(736,608) -> (32, 32)
|
||||
INDEX: grass159 AT 59
|
||||
(768,608) -> (32, 32)
|
||||
INDEX: grass160 AT 60
|
||||
(800,608) -> (32, 32)
|
||||
INDEX: grass161 AT 61
|
||||
(832,608) -> (32, 32)
|
||||
INDEX: grass162 AT 62
|
||||
(864,608) -> (32, 32)
|
||||
INDEX: grass163 AT 63
|
||||
(896,608) -> (32, 32)
|
||||
INDEX: grass164 AT 64
|
||||
(928,608) -> (32, 32)
|
||||
INDEX: grass165 AT 65
|
||||
(960,608) -> (32, 32)
|
||||
INDEX: grass166 AT 66
|
||||
(992,608) -> (32, 32)
|
||||
INDEX: grass167 AT 67
|
||||
(1024,608) -> (32, 32)
|
||||
INDEX: grass168 AT 68
|
||||
(-32,640) -> (32, 32)
|
||||
INDEX: grass169 AT 69
|
||||
(0,640) -> (32, 32)
|
||||
INDEX: grass170 AT 70
|
||||
(32,640) -> (32, 32)
|
||||
INDEX: grass171 AT 71
|
||||
(64,640) -> (32, 32)
|
||||
INDEX: grass172 AT 72
|
||||
(96,640) -> (32, 32)
|
||||
INDEX: grass173 AT 73
|
||||
(128,640) -> (32, 32)
|
||||
INDEX: grass174 AT 74
|
||||
(160,640) -> (32, 32)
|
||||
INDEX: grass175 AT 75
|
||||
(192,640) -> (32, 32)
|
||||
INDEX: grass176 AT 76
|
||||
(224,640) -> (32, 32)
|
||||
INDEX: grass177 AT 77
|
||||
(256,640) -> (32, 32)
|
||||
INDEX: grass178 AT 78
|
||||
(288,640) -> (32, 32)
|
||||
INDEX: grass179 AT 79
|
||||
(320,640) -> (32, 32)
|
||||
INDEX: grass180 AT 80
|
||||
(352,640) -> (32, 32)
|
||||
INDEX: grass181 AT 81
|
||||
(384,640) -> (32, 32)
|
||||
INDEX: bottom-center21 AT 51
|
||||
INDEX: grass182 AT 82
|
||||
(416,640) -> (32, 32)
|
||||
INDEX: bottom-center22 AT 52
|
||||
INDEX: grass183 AT 83
|
||||
(448,640) -> (32, 32)
|
||||
INDEX: bottom-center23 AT 53
|
||||
INDEX: grass184 AT 84
|
||||
(480,640) -> (32, 32)
|
||||
INDEX: bottom-center24 AT 54
|
||||
INDEX: grass185 AT 85
|
||||
(512,640) -> (32, 32)
|
||||
INDEX: bottom-center25 AT 55
|
||||
INDEX: grass186 AT 86
|
||||
(544,640) -> (32, 32)
|
||||
INDEX: bottom-center26 AT 56
|
||||
INDEX: grass187 AT 87
|
||||
(576,640) -> (32, 32)
|
||||
INDEX: bottom-center27 AT 57
|
||||
INDEX: grass188 AT 88
|
||||
(608,640) -> (32, 32)
|
||||
INDEX: bottom-center28 AT 58
|
||||
INDEX: grass189 AT 89
|
||||
(640,640) -> (32, 32)
|
||||
INDEX: bottom-center29 AT 59
|
||||
INDEX: grass190 AT 90
|
||||
(672,640) -> (32, 32)
|
||||
INDEX: green-sheel AT 60
|
||||
INDEX: grass191 AT 91
|
||||
(704,640) -> (32, 32)
|
||||
INDEX: grass192 AT 92
|
||||
(736,640) -> (32, 32)
|
||||
INDEX: grass193 AT 93
|
||||
(768,640) -> (32, 32)
|
||||
INDEX: grass194 AT 94
|
||||
(800,640) -> (32, 32)
|
||||
INDEX: grass195 AT 95
|
||||
(832,640) -> (32, 32)
|
||||
INDEX: grass196 AT 96
|
||||
(864,640) -> (32, 32)
|
||||
INDEX: grass197 AT 97
|
||||
(896,640) -> (32, 32)
|
||||
INDEX: grass198 AT 98
|
||||
(928,640) -> (32, 32)
|
||||
INDEX: grass199 AT 99
|
||||
(960,640) -> (32, 32)
|
||||
INDEX: grass1100 AT 100
|
||||
(992,640) -> (32, 32)
|
||||
INDEX: grass1101 AT 101
|
||||
(1024,640) -> (32, 32)
|
||||
INDEX: bottom-center0 AT 102
|
||||
(384,576) -> (32, 32)
|
||||
INDEX: bottom-center1 AT 103
|
||||
(416,576) -> (32, 32)
|
||||
INDEX: bottom-center2 AT 104
|
||||
(448,576) -> (32, 32)
|
||||
INDEX: bottom-center3 AT 105
|
||||
(480,576) -> (32, 32)
|
||||
INDEX: bottom-center4 AT 106
|
||||
(512,576) -> (32, 32)
|
||||
INDEX: bottom-center5 AT 107
|
||||
(544,576) -> (32, 32)
|
||||
INDEX: bottom-center6 AT 108
|
||||
(576,576) -> (32, 32)
|
||||
INDEX: bottom-center7 AT 109
|
||||
(608,576) -> (32, 32)
|
||||
INDEX: bottom-center8 AT 110
|
||||
(640,576) -> (32, 32)
|
||||
INDEX: bottom-center9 AT 111
|
||||
(672,576) -> (32, 32)
|
||||
INDEX: bottom-center10 AT 112
|
||||
(384,608) -> (32, 32)
|
||||
INDEX: bottom-center11 AT 113
|
||||
(416,608) -> (32, 32)
|
||||
INDEX: bottom-center12 AT 114
|
||||
(448,608) -> (32, 32)
|
||||
INDEX: bottom-center13 AT 115
|
||||
(480,608) -> (32, 32)
|
||||
INDEX: bottom-center14 AT 116
|
||||
(512,608) -> (32, 32)
|
||||
INDEX: bottom-center15 AT 117
|
||||
(544,608) -> (32, 32)
|
||||
INDEX: bottom-center16 AT 118
|
||||
(576,608) -> (32, 32)
|
||||
INDEX: bottom-center17 AT 119
|
||||
(608,608) -> (32, 32)
|
||||
INDEX: bottom-center18 AT 120
|
||||
(640,608) -> (32, 32)
|
||||
INDEX: bottom-center19 AT 121
|
||||
(672,608) -> (32, 32)
|
||||
INDEX: bottom-center20 AT 122
|
||||
(384,640) -> (32, 32)
|
||||
INDEX: bottom-center21 AT 123
|
||||
(416,640) -> (32, 32)
|
||||
INDEX: bottom-center22 AT 124
|
||||
(448,640) -> (32, 32)
|
||||
INDEX: bottom-center23 AT 125
|
||||
(480,640) -> (32, 32)
|
||||
INDEX: bottom-center24 AT 126
|
||||
(512,640) -> (32, 32)
|
||||
INDEX: bottom-center25 AT 127
|
||||
(544,640) -> (32, 32)
|
||||
INDEX: bottom-center26 AT 128
|
||||
(576,640) -> (32, 32)
|
||||
INDEX: bottom-center27 AT 129
|
||||
(608,640) -> (32, 32)
|
||||
INDEX: bottom-center28 AT 130
|
||||
(640,640) -> (32, 32)
|
||||
INDEX: bottom-center29 AT 131
|
||||
(672,640) -> (32, 32)
|
||||
INDEX: green-sheel AT 132
|
||||
(163,553) -> (25, 22)
|
||||
INDEX: brick1 AT 61
|
||||
INDEX: brick AT 133
|
||||
(128,448) -> (32, 32)
|
||||
INDEX: mystery-bloc AT 62
|
||||
INDEX: mystery-bloc AT 134
|
||||
(160,448) -> (32, 32)
|
||||
INDEX: brick2 AT 63
|
||||
(192,448) -> (32, 32)
|
||||
INDEX: mystery-bloc2 AT 64
|
||||
(480,448) -> (32, 32)
|
||||
INDEX: mystery-bloc3 AT 65
|
||||
(544,480) -> (32, 32)
|
||||
INDEX: mystery-bloc4 AT 66
|
||||
(608,512) -> (32, 32)
|
||||
INDEX: mario AT 67
|
||||
INDEX: mario AT 135
|
||||
(547,544) -> (25, 32)
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
|
@ -177,529 +313,6 @@ Grass collided with Mario from bottom
|
|||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from right
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from left
|
||||
bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
Grass collided with Mario from bottom
|
||||
|
|
|
@ -31,20 +31,16 @@ int main(int argc, char* argv[]) {
|
|||
/* [2] On definit le terrain
|
||||
=========================================================*/
|
||||
// On cree un bout du terrain
|
||||
xMarioGrass btmleft(mgr, (SDL_Rect){-1, 20-2, 10, 3} );
|
||||
btmleft.push("bottom-left");
|
||||
xMarioGrass g1(mgr, (SDL_Rect){-1, 20-2, 32+2, 3} );
|
||||
g1.push("grass1");
|
||||
|
||||
// On cree un bout du terrain
|
||||
xMarioGrass btmcenter(mgr, (SDL_Rect){12, 20-2, 10, 3} );
|
||||
btmcenter.push("bottom-center");
|
||||
|
||||
|
||||
// xMarioGrass floattcenter(mgr, (SDL_Rect){14, 20-5, 1, 1} );
|
||||
// floattcenter.push("float-top");
|
||||
|
||||
|
||||
|
||||
/* [3] Gestion des animations (blocs animes)
|
||||
/* [3] Gestion des blocs
|
||||
=========================================================*/
|
||||
// On cree une coquille verte
|
||||
xMarioGreenShell gs(mgr, 5, 20-3);
|
||||
|
@ -52,34 +48,16 @@ int main(int argc, char* argv[]) {
|
|||
gs.start(80, SPRITE_ANIM_INFINITE);
|
||||
|
||||
// On cree une brique
|
||||
xMarioBrick mbr1(mgr, 4, 20-6, 10); // 10 sauts
|
||||
mbr1.push("brick1");
|
||||
xMarioBrick mBrick(mgr, 4, 20-6, 10); // 10 sauts
|
||||
mBrick.push("brick");
|
||||
|
||||
// On cree un bloc mystere
|
||||
xMarioMysteryBloc mb(mgr, 5, 20-6, 2); // 2 sauts
|
||||
mb.push("mystery-bloc");
|
||||
mb.start(150, SPRITE_ANIM_INFINITE);
|
||||
|
||||
// On cree une brique
|
||||
xMarioBrick mbr2(mgr, 6, 20-6, 2); // 2 sauts
|
||||
mbr2.push("brick2");
|
||||
xMarioMysteryBloc mMystery(mgr, 5, 20-6, 2); // 2 sauts
|
||||
mMystery.push("mystery-bloc");
|
||||
mMystery.start(150, SPRITE_ANIM_INFINITE);
|
||||
|
||||
|
||||
xMarioMysteryBloc mb1(mgr, 15, 20-6, 1); // 1 saut
|
||||
mb1.push("mystery-bloc2");
|
||||
mb1.start(150, SPRITE_ANIM_INFINITE);
|
||||
|
||||
xMarioMysteryBloc mb2(mgr, 17, 20-5, 1); // 1 saut
|
||||
mb2.push("mystery-bloc3");
|
||||
mb2.start(150, SPRITE_ANIM_INFINITE);
|
||||
|
||||
xMarioMysteryBloc mb3(mgr, 19, 20-4, 6); // 6 sauts
|
||||
mb3.push("mystery-bloc4");
|
||||
mb3.start(150, SPRITE_ANIM_INFINITE);
|
||||
|
||||
// On cree un bloc normal
|
||||
// xMarioBloc bl(mgr, (SDL_Rect){16, 20-5, 1, 1});
|
||||
// bl.push("bloc-bottom-left");
|
||||
|
||||
// On cree mario
|
||||
mario = new xMarioMario(mgr, 17, 20-3);
|
||||
|
|
BIN
SDL#4/main.o
BIN
SDL#4/main.o
Binary file not shown.
|
@ -8,10 +8,12 @@ EN COURS
|
|||
- [x] Refaire texture xGreenShell
|
||||
- [ ] Gestion arret animation + reprise (switch)
|
||||
- [ ] Gestion du deplacement xGreenShell
|
||||
- [ ] Erreur saut infini mario
|
||||
|
||||
FAIT
|
||||
====
|
||||
- [x] Erreur saut infini mario
|
||||
- [x] Erreur -> Gestion params velocite en fonction taille bloc
|
||||
|
||||
- [x] Gestion du unjump() auto pour les blocs cassables
|
||||
- [x] Classe parente pour blocs cassables xBreakableBloc
|
||||
- [x] Erreur accrochage quand saut sur un coin
|
||||
|
|
|
@ -22,23 +22,23 @@ xMarioMario::xMarioMario(xManager *m, int x, int y)
|
|||
// Position frame par defaut
|
||||
_pos = "NR"; // bottom-center
|
||||
|
||||
_gravity = 8;
|
||||
_gravity = BLOC_SIZE * 0.25;
|
||||
|
||||
// Constantes de mouvement sur X
|
||||
_velocity[0] = 0.0;
|
||||
_mult[0] = 10;
|
||||
_dec[0] = .7;
|
||||
_acc[0] = 1.6;
|
||||
_min_vel[0] = 0.1;
|
||||
_max_vel[0] = 10;
|
||||
_velocity[0] = BLOC_SIZE * 0.0;
|
||||
_mult[0] = BLOC_SIZE * 0.3125;
|
||||
_dec[0] = BLOC_SIZE * 0.021875;
|
||||
_acc[0] = BLOC_SIZE * 0.05;
|
||||
_min_vel[0] = BLOC_SIZE * 0.003125;
|
||||
_max_vel[0] = BLOC_SIZE * 0.3125;
|
||||
|
||||
// Constantes de mouvement sur Y
|
||||
_velocity[1] = 0.0;
|
||||
_mult[1] = 40;
|
||||
_dec[1] = .3;
|
||||
_acc[1] = 3;
|
||||
_min_vel[1] = 0.2;
|
||||
_max_vel[1] = 100;
|
||||
_velocity[1] = BLOC_SIZE * 0.0;
|
||||
_mult[1] = BLOC_SIZE * 1.25;
|
||||
_dec[1] = BLOC_SIZE * 0.009375;
|
||||
_acc[1] = BLOC_SIZE * 0.09375;
|
||||
_min_vel[1] = BLOC_SIZE * 0.00625;
|
||||
_max_vel[1] = BLOC_SIZE * 3.125;
|
||||
|
||||
// On definit les frames de l'animation par defaut
|
||||
this->addFrame( (SDL_Rect){238, 0, 19, 29} );
|
||||
|
@ -75,7 +75,7 @@ void xMarioMario::moveFromVelocity(){
|
|||
// Si touche haut
|
||||
if( _up ){
|
||||
// Si au sol et premier saut ou autre saut (pour la hauteur)
|
||||
if( this->onFloor() || this->onWall() && _jumps == 0 || _jumps == 1 ){
|
||||
if( this->onFloor() && _jumps == 0 || _jumps == 1 ){
|
||||
this->velocity(0, -1);
|
||||
_jumps++;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ void xMarioMario::moveFromVelocity(){
|
|||
// cerr << "y -> " << _velocity[1] << endl;
|
||||
|
||||
// cout << endl;
|
||||
// usleep(20000);
|
||||
usleep(20000);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue