forked from jaildesigner-jailgames/jaildoctors_dilemma
Resuelto bug al cambiar de paleta con los tiles animados
This commit is contained in:
9
data/enemies/batman_fire.ani
Normal file
9
data/enemies/batman_fire.ani
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
frameWidth=16
|
||||||
|
frameHeight=16
|
||||||
|
|
||||||
|
[animation]
|
||||||
|
name=default
|
||||||
|
speed=4
|
||||||
|
loop=0
|
||||||
|
frames=0,1,2,3
|
||||||
|
[/animation]
|
||||||
BIN
data/enemies/batman_fire.png
Normal file
BIN
data/enemies/batman_fire.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 343 B |
@@ -1,5 +1,5 @@
|
|||||||
name=FEEL THE HEAT
|
name=FEEL THE PRESSURE
|
||||||
bgColor=red
|
bgColor=bright_black
|
||||||
border=black
|
border=black
|
||||||
tileMapFile=45.tmx
|
tileMapFile=45.tmx
|
||||||
tileSetFile=standard.png
|
tileSetFile=standard.png
|
||||||
|
|||||||
@@ -3,22 +3,22 @@
|
|||||||
<tileset firstgid="1" source="standard.tsx"/>
|
<tileset firstgid="1" source="standard.tsx"/>
|
||||||
<layer id="1" name="Capa de patrones 1" width="32" height="16">
|
<layer id="1" name="Capa de patrones 1" width="32" height="16">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
|
30,30,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,
|
||||||
|
30,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,
|
||||||
|
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,
|
||||||
|
30,0,0,0,0,0,0,0,0,0,0,323,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
30,0,0,0,0,0,0,0,323,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
30,0,0,0,0,323,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
30,0,323,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
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,323,323,0,323,323,323,323,323,0,323,323,323,323,323,0,323,323,323,323,0,395,0,0,0,395,395,395,399,395,395,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,399,0,0,0,0,0,0,0,0,0,
|
||||||
|
30,30,30,0,0,0,395,395,395,0,0,0,395,399,395,0,0,0,395,395,395,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
30,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,
|
||||||
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,
|
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,
|
||||||
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,
|
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,
|
||||||
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,
|
556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556
|
||||||
30,0,0,0,0,0,0,0,0,0,0,0,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
30,0,0,0,0,0,0,0,0,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
30,0,0,0,0,0,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
30,0,0,323,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
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,323,323,323,323,323,323,323,323,323,323,323,323,323,323,323,323,323,323,0,275,0,0,0,275,275,275,275,275,275,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,275,0,0,0,0,0,0,0,0,0,
|
|
||||||
30,30,30,0,0,0,275,275,275,0,0,0,275,275,275,0,0,0,275,275,275,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
||||||
554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554,554
|
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
@@ -1,33 +1,53 @@
|
|||||||
name=no 46
|
name=FEEL THE HEAT
|
||||||
bgColor=black
|
bgColor=bright_black
|
||||||
border=red
|
border=bright_yellow
|
||||||
tileMapFile=46.tmx
|
tileMapFile=46.tmx
|
||||||
tileSetFile=standard.png
|
tileSetFile=standard.png
|
||||||
roomUp=0
|
roomUp=0
|
||||||
roomDown=0
|
roomDown=0
|
||||||
roomLeft=45.room
|
roomLeft=45.room
|
||||||
roomRight=0
|
roomRight=0
|
||||||
|
itemColor1=red
|
||||||
|
itemColor2=magenta
|
||||||
|
autoSurface=left
|
||||||
|
|
||||||
|
|
||||||
[enemy]
|
[enemy]
|
||||||
tileSetFile=diskette.png
|
tileSetFile=dimallas_v.png
|
||||||
animation=diskette.ani
|
animation=dimallas_v.ani
|
||||||
width=16
|
width=16
|
||||||
height=16
|
height=16
|
||||||
x=2
|
x=11
|
||||||
|
y=7
|
||||||
|
vx=0
|
||||||
|
vy=0.5
|
||||||
|
x1=11
|
||||||
|
y1=1
|
||||||
|
x2=11
|
||||||
|
y2=12
|
||||||
|
color=green
|
||||||
|
[/enemy]
|
||||||
|
|
||||||
|
[enemy]
|
||||||
|
tileSetFile=dimallas_v.png
|
||||||
|
animation=dimallas_v.ani
|
||||||
|
width=16
|
||||||
|
height=16
|
||||||
|
x=18
|
||||||
y=2
|
y=2
|
||||||
vx=0
|
vx=0
|
||||||
vy=0
|
vy=0.8
|
||||||
x1=2
|
x1=18
|
||||||
y1=2
|
y1=1
|
||||||
x2=2
|
x2=18
|
||||||
y2=2
|
y2=12
|
||||||
color=magenta
|
color=green
|
||||||
[/enemy]
|
[/enemy]
|
||||||
|
|
||||||
[item]
|
[item]
|
||||||
tileSetFile=items.png
|
tileSetFile=items.png
|
||||||
tile=1
|
tile=28
|
||||||
x=1
|
x=28
|
||||||
y=1
|
y=6
|
||||||
counter=1
|
counter=1
|
||||||
[/item]
|
[/item]
|
||||||
@@ -3,22 +3,22 @@
|
|||||||
<tileset firstgid="1" source="standard.tsx"/>
|
<tileset firstgid="1" source="standard.tsx"/>
|
||||||
<layer id="1" name="Capa de patrones 1" width="32" height="16">
|
<layer id="1" name="Capa de patrones 1" width="32" height="16">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,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,26,
|
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,26,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,135,
|
||||||
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26
|
481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,481,135
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 9.0 KiB |
@@ -138,17 +138,6 @@ void Credits::fillTexture()
|
|||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
|
|
||||||
//texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")});
|
|
||||||
//texts.push_back({"", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"USE 'CURSORS' TO MOVE AND JUMP", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"'F1-F4' TO CHANGE WINDOWS SIZE", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"'F' TO SWITCH TO FULLSCREEN", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"'B' TO SWITCH THE BORDER SCREEN", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"'M' TO TURN ON/OFF THE MUSIC", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"'ESC' TO LEAVE THE GAME", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"", stringToColor(options->palette, "white")});
|
|
||||||
//texts.push_back({"", stringToColor(options->palette, "white")});
|
|
||||||
|
|
||||||
texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")});
|
texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"CURSORS: MOVE AND JUMP", stringToColor(options->palette, "white")});
|
texts.push_back({"CURSORS: MOVE AND JUMP", stringToColor(options->palette, "white")});
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ void Director::loadResources(section_t section)
|
|||||||
textureList.push_back("arounders_machine.png");
|
textureList.push_back("arounders_machine.png");
|
||||||
textureList.push_back("bat.png");
|
textureList.push_back("bat.png");
|
||||||
textureList.push_back("batman_bell.png");
|
textureList.push_back("batman_bell.png");
|
||||||
|
textureList.push_back("batman_fire.png");
|
||||||
textureList.push_back("batman.png");
|
textureList.push_back("batman.png");
|
||||||
textureList.push_back("bell.png");
|
textureList.push_back("bell.png");
|
||||||
textureList.push_back("bin.png");
|
textureList.push_back("bin.png");
|
||||||
@@ -326,6 +327,7 @@ void Director::loadResources(section_t section)
|
|||||||
animationList.push_back("arounders_machine.ani");
|
animationList.push_back("arounders_machine.ani");
|
||||||
animationList.push_back("bat.ani");
|
animationList.push_back("bat.ani");
|
||||||
animationList.push_back("batman_bell.ani");
|
animationList.push_back("batman_bell.ani");
|
||||||
|
animationList.push_back("batman_fire.ani");
|
||||||
animationList.push_back("batman.ani");
|
animationList.push_back("batman.ani");
|
||||||
animationList.push_back("bell.ani");
|
animationList.push_back("bell.ani");
|
||||||
animationList.push_back("bin.ani");
|
animationList.push_back("bin.ani");
|
||||||
@@ -837,10 +839,10 @@ bool Director::setFileList()
|
|||||||
asset->add("/data/tilesets/standard_zxarne.png", t_bitmap);
|
asset->add("/data/tilesets/standard_zxarne.png", t_bitmap);
|
||||||
|
|
||||||
// Enemigos
|
// Enemigos
|
||||||
asset->add("/data/enemies/abad.ani", t_data);
|
|
||||||
asset->add("/data/enemies/abad.png", t_bitmap);
|
|
||||||
asset->add("/data/enemies/abad_bell.ani", t_data);
|
asset->add("/data/enemies/abad_bell.ani", t_data);
|
||||||
asset->add("/data/enemies/abad_bell.png", t_bitmap);
|
asset->add("/data/enemies/abad_bell.png", t_bitmap);
|
||||||
|
asset->add("/data/enemies/abad.ani", t_data);
|
||||||
|
asset->add("/data/enemies/abad.png", t_bitmap);
|
||||||
asset->add("/data/enemies/amstrad_character_set.ani", t_data);
|
asset->add("/data/enemies/amstrad_character_set.ani", t_data);
|
||||||
asset->add("/data/enemies/amstrad_character_set.png", t_bitmap);
|
asset->add("/data/enemies/amstrad_character_set.png", t_bitmap);
|
||||||
asset->add("/data/enemies/arounder_fly.ani", t_data);
|
asset->add("/data/enemies/arounder_fly.ani", t_data);
|
||||||
@@ -857,6 +859,8 @@ bool Director::setFileList()
|
|||||||
asset->add("/data/enemies/bat.png", t_bitmap);
|
asset->add("/data/enemies/bat.png", t_bitmap);
|
||||||
asset->add("/data/enemies/batman_bell.ani", t_data);
|
asset->add("/data/enemies/batman_bell.ani", t_data);
|
||||||
asset->add("/data/enemies/batman_bell.png", t_bitmap);
|
asset->add("/data/enemies/batman_bell.png", t_bitmap);
|
||||||
|
asset->add("/data/enemies/batman_fire.ani", t_data);
|
||||||
|
asset->add("/data/enemies/batman_fire.png", t_bitmap);
|
||||||
asset->add("/data/enemies/batman.ani", t_data);
|
asset->add("/data/enemies/batman.ani", t_data);
|
||||||
asset->add("/data/enemies/batman.png", t_bitmap);
|
asset->add("/data/enemies/batman.png", t_bitmap);
|
||||||
asset->add("/data/enemies/bell.ani", t_data);
|
asset->add("/data/enemies/bell.ani", t_data);
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as
|
|||||||
|
|
||||||
// ****
|
// ****
|
||||||
// this->debug->setEnabled(true);
|
// this->debug->setEnabled(true);
|
||||||
currentRoom = "25.room";
|
currentRoom = "46.room";
|
||||||
const int x = 30;
|
const int x = 0;
|
||||||
const int y = 7;
|
const int y = 6;
|
||||||
spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
|
spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
|
||||||
// ****
|
// ****
|
||||||
|
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ void Player::move()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Si está bajando la rampa, recoloca al jugador
|
// Si está bajando la rampa, recoloca al jugador
|
||||||
if (isOnDownSlope())
|
if (isOnDownSlope() && state != s_jumping)
|
||||||
{
|
{
|
||||||
y += 1;
|
y += 1;
|
||||||
}
|
}
|
||||||
@@ -418,7 +418,7 @@ void Player::move()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Si está bajando la rampa, recoloca al jugador
|
// Si está bajando la rampa, recoloca al jugador
|
||||||
if (isOnDownSlope())
|
if (isOnDownSlope() && state != s_jumping)
|
||||||
{
|
{
|
||||||
y += 1;
|
y += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -816,13 +816,12 @@ void Room::reLoadPalette()
|
|||||||
screen->setBorderColor(stringToColor(options->palette, borderColor));
|
screen->setBorderColor(stringToColor(options->palette, borderColor));
|
||||||
|
|
||||||
// Cambia la textura
|
// Cambia la textura
|
||||||
if (options->palette == p_zxspectrum)
|
texture = (options->palette == p_zxspectrum) ? textureA : textureB;
|
||||||
|
|
||||||
|
// Pone la nueva textura a los tiles animados
|
||||||
|
for (auto tile : aTile)
|
||||||
{
|
{
|
||||||
texture = textureA;
|
tile.sprite->setTexture(texture);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
texture = textureB;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recarga las texturas
|
// Recarga las texturas
|
||||||
|
|||||||
Reference in New Issue
Block a user