mirror of https://github.com/nmlgc/ReC98.git
[Maintenance] Make the playfield fraction functions available to ≥TH02
Part of P0146, funded by -Tom- and Ember2528.
This commit is contained in:
parent
08bc188e7d
commit
8426f3e13f
|
@ -1,3 +1,4 @@
|
|||
#if (GAME == 1)
|
||||
static const screen_x_t PLAYFIELD_LEFT = 0;
|
||||
static const screen_y_t PLAYFIELD_TOP = 64;
|
||||
static const screen_x_t PLAYFIELD_RIGHT = RES_X;
|
||||
|
@ -13,8 +14,9 @@ static const screen_x_t PLAYFIELD_CENTER_X = (
|
|||
static const screen_y_t PLAYFIELD_CENTER_Y = (
|
||||
((PLAYFIELD_BOTTOM - PLAYFIELD_TOP) / 2) + PLAYFIELD_TOP
|
||||
);
|
||||
#endif
|
||||
|
||||
inline pixel_t playfield_fraction_x(float fraction = 1.0f) {
|
||||
static inline pixel_t playfield_fraction_x(float fraction = 1.0f) {
|
||||
return ((int)(PLAYFIELD_W * fraction));
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ extern "C" {
|
|||
#include "pc98.h"
|
||||
#include "planar.h"
|
||||
#include "master.hpp"
|
||||
#include "th02/main/playfld.h"
|
||||
#include "th02/main/playfld.hpp"
|
||||
#include "th02/main/tile.hpp"
|
||||
#include "th02/formats/mpn.hpp"
|
||||
|
||||
|
|
|
@ -23,3 +23,5 @@
|
|||
// (Future games use a near function.)
|
||||
void far playfield_tram_wipe(void);
|
||||
#endif
|
||||
|
||||
#include "th01/main/playfld.hpp"
|
|
@ -11,7 +11,7 @@ extern "C" {
|
|||
#include "pc98.h"
|
||||
#include "planar.h"
|
||||
#include "master.hpp"
|
||||
#include "th02/main/playfld.h"
|
||||
#include "th02/main/playfld.hpp"
|
||||
#include "th02/main/tile.hpp"
|
||||
#include "th02/formats/mpn.hpp"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ extern "C" {
|
|||
#include "pc98.h"
|
||||
#include "planar.h"
|
||||
#include "master.hpp"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
#include "th04/main/tile.hpp"
|
||||
#include "th04/formats/mpn.hpp"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ extern "C" {
|
|||
#include "pc98.h"
|
||||
#include "planar.h"
|
||||
#include "master.hpp"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
#include "th04/main/tile.hpp"
|
||||
#include "th04/formats/mpn.hpp"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "th04/hardware/grcg.h"
|
||||
#include "th04/math/motion.hpp"
|
||||
#include "th04/main/null.hpp"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
#include "th04/main/tile.hpp"
|
||||
#include "th04/main/scroll.hpp"
|
||||
#include "th04/main/hud/popup.hpp"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "th02/main/playfld.h"
|
||||
#include "th02/main/playfld.hpp"
|
||||
|
||||
// Fills the playfield area on the text RAM with transparent spaces.
|
||||
void near playfield_tram_wipe(void);
|
|
@ -24,7 +24,7 @@
|
|||
#include "th04/score.h"
|
||||
/// ------
|
||||
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
|
||||
/// Stages
|
||||
/// ------
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* Update code for Part 1 of the Stage 4 boss fight, against both Mai and Yuki
|
||||
*/
|
||||
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/math/vector.hpp"
|
||||
#include "th05/sprites/main_pat.h"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "th01/math/subpixel.hpp"
|
||||
#include "th04/math/vector.hpp"
|
||||
#include "th04/main/drawp.hpp"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
|
||||
/// Structures
|
||||
/// ----------
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "th01/math/subpixel.hpp"
|
||||
#include "th04/math/vector.hpp"
|
||||
#include "th04/math/randring.h"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
#include "th04/main/frames.h"
|
||||
#include "th04/main/circles.hpp"
|
||||
#include "th05/sprites/main_pat.h"
|
||||
|
|
|
@ -9,7 +9,7 @@ extern "C" {
|
|||
#include "ReC98.h"
|
||||
#include "th01/math/subpixel.hpp"
|
||||
#include "th01/math/area.hpp"
|
||||
#include "th04/main/playfld.h"
|
||||
#include "th04/main/playfld.hpp"
|
||||
#include "th04/math/motion.hpp"
|
||||
#include "th05/main/boss/boss.hpp"
|
||||
#include "th05/main/boss/bx.cpp"
|
||||
|
|
Loading…
Reference in New Issue