/* * Metro Siberia 4 - A sequel to Dark Storm's Metro Siberia 3 for CASIO calculators. * Copyright (C) 2015 Dark Storm * Copyright (C) 2022 Mibi88 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ #include "includes.h" extern Ship ship; void init_ship(void) { ship.position.x = 0; ship.position.y = 32; ship.speed.x = HORIZONTAL_SPEED / TIMER_PHYSIC; ship.speed.y = 0; ship.acceleration.x = 0; ship.acceleration.y = 0; ship.thrust = false; } void init_tops(void) { ship.tops[0].x = SHIP_TOP_1_X; ship.tops[0].y = SHIP_TOP_1_Y; ship.tops[1].x = SHIP_TOP_2_X; ship.tops[1].y = SHIP_TOP_2_Y; ship.tops[2].x = SHIP_TOP_3_X; ship.tops[2].y = SHIP_TOP_3_Y; }