Compare commits
2 Commits
6b63dbd70a
...
6d9c902f2d
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d9c902f2d | |||
| 66fee27b50 |
@@ -27,9 +27,6 @@ namespace gamestate
|
||||
{
|
||||
sub_state = postfase::state::initial;
|
||||
|
||||
font::selectFont(font::type::colored);
|
||||
font::setColor(font::color::red);
|
||||
|
||||
if (game::getConfig("fase") == 30) {
|
||||
gamestate::sequence::init();
|
||||
return;
|
||||
@@ -48,14 +45,12 @@ namespace gamestate
|
||||
void initVictoria()
|
||||
{
|
||||
sub_state = postfase::state::victoria;
|
||||
draw::surface *fondo = nullptr;
|
||||
|
||||
char filename[12] = "final00.GIF";
|
||||
filename[6]= game::getConfig("fase") / 5;
|
||||
fondo = draw::loadSurface(filename, true);
|
||||
|
||||
draw::setSource(fondo);
|
||||
draw::draw(0,0,320,200,0,0);
|
||||
draw::surface *fondo = draw::loadSurface(filename, true);
|
||||
draw::draw(fondo);
|
||||
draw::freeSurface(fondo);
|
||||
|
||||
draw::fadein();
|
||||
@@ -65,14 +60,14 @@ namespace gamestate
|
||||
void initPassword()
|
||||
{
|
||||
sub_state = postfase::state::password;
|
||||
draw::surface *fondo = draw::loadSurface("postfase.gif", true);
|
||||
|
||||
std::string password = getPassword();
|
||||
|
||||
draw::setSource(fondo);
|
||||
draw::draw(0,0,320,200,0,0);
|
||||
draw::surface *fondo = draw::loadSurface("postfase.gif", true);
|
||||
draw::draw(fondo);
|
||||
draw::freeSurface(fondo);
|
||||
|
||||
font::selectFont(font::type::colored);
|
||||
font::setColor(font::color::red);
|
||||
font::print(175, 166, password);
|
||||
|
||||
draw::fadein();
|
||||
|
||||
@@ -327,7 +327,7 @@ namespace arounders
|
||||
void initPujarCorda(arounder *a)
|
||||
{
|
||||
a->frame = 0;
|
||||
a->prevista = arounders::accions::pujarcorda;
|
||||
a->accio = arounders::accions::pujarcorda;
|
||||
a->x = a->orientacio == arounders::orientacions::dreta ? a->x + 3 : a->x - 3;
|
||||
procesarPujarCorda(a);
|
||||
}
|
||||
@@ -335,7 +335,7 @@ namespace arounders
|
||||
void initBaixarCorda(arounder *a)
|
||||
{
|
||||
a->frame = 0;
|
||||
a->prevista = arounders::accions::baixarcorda;
|
||||
a->accio = arounders::accions::baixarcorda;
|
||||
if (a->orientacio == arounders::orientacions::dreta) {
|
||||
a->x += 2;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user