Success compiles.
This commit is contained in:
parent
229d79242a
commit
61e112a34e
5 changed files with 380 additions and 116 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
dlm.*
|
||||||
|
|
2
Makefile
Normal file
2
Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
debug:
|
||||||
|
emcc -g4 dxlib.cpp loadg.cpp main.cpp -o dlm.html
|
157
dxlib.cpp
Normal file
157
dxlib.cpp
Normal file
|
@ -0,0 +1,157 @@
|
||||||
|
#include "dxlib.h"
|
||||||
|
|
||||||
|
// グラフィックに設定する透過色をセットする
|
||||||
|
int SetTransColor(int Red, int Green, int Blue) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 画像ファイルのメモリへの読みこみ
|
||||||
|
int LoadGraph(const char *FileName, int NotUse3DFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 指定のグラフィックの指定部分だけを抜き出して新たなグラフィックハンドルを作成する
|
||||||
|
int DerivationGraph(int SrcX, int SrcY, int Width, int Height, int SrcGraphHandle) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// グラフィックのサイズを得る
|
||||||
|
int GetGraphSize(int GrHandle, int *SizeXBuf, int *SizeYBuf) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 作成するサウンドのデータ形式を設定する( DX_SOUNDDATATYPE_MEMNOPRESS 等 )
|
||||||
|
int SetCreateSoundDataType(int SoundDataType) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// サウンドデータを追加する
|
||||||
|
int LoadSoundMem(const char *WaveName, int BufferNum, int UnionHandle) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// メモリに読みこんだWAVEデータの再生にボリュームを設定する( パーセント指定 )
|
||||||
|
int ChangeVolumeSoundMem(int VolumePal, int SoundHandle) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 画面モードを設定する
|
||||||
|
int SetGraphMode(int ScreenSizeX, int ScreenSizeY, int ColorBitDepth, int RefreshRate) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ライブラリ初期化関数
|
||||||
|
int DxLib_Init(void) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ライブラリ使用の終了関数
|
||||||
|
int DxLib_End(void) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 描画するフォントのサイズをセットする
|
||||||
|
int SetFontSize(int FontSize) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// フォントの太さをセット
|
||||||
|
int SetFontThickness(int ThickPal) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 描画先画面のセット
|
||||||
|
int SetDrawScreen(int DrawScreen) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 画面の状態を初期化する
|
||||||
|
int ClearDrawScreen() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3原色値から現在の画面モードに対応した色データ値を得る
|
||||||
|
uint32_t GetColor(int Red, int Green, int Blue) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 書式指定文字列を描画する
|
||||||
|
int DrawFormatString(int x, int y, int Color, const char *FormatString, ...) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// グラフィックの回転描画
|
||||||
|
int DrawRotaGraph(int x, int y, double ExRate, double Angle, int GrHandle, int TransFlag, int TurnFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// フォントタイプの変更
|
||||||
|
int ChangeFontType(int FontType) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// キーの入力待ち
|
||||||
|
int WaitKey(void) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 裏画面と表画面を交換する
|
||||||
|
int ScreenFlip(void) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// ミリ秒単位の精度を持つカウンタの現在値を得る
|
||||||
|
int GetNowCount(int UseRDTSCFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// ジョイバッドの入力状態取得
|
||||||
|
int GetJoypadInputState(int InputType) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// メモリに読み込んだWAVEデータの再生を止める
|
||||||
|
int StopSoundMem(int SoundHandle) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// メモリに読みこんだWAVEデータを再生する
|
||||||
|
int PlaySoundMem(int SoundHandle, int PlayType, int TopPositionFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// キーボードの入力状態取得
|
||||||
|
int CheckHitKey(int KeyCode) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 指定の時間だけ処理をとめる
|
||||||
|
int WaitTimer(int WaitTime) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 乱数を取得する( RandMax : 返って来る値の最大値 )
|
||||||
|
int GetRand(int RandMax) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 点を描画する
|
||||||
|
int DrawPixel(int x, int y, int Color) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 線を描画
|
||||||
|
int DrawLine(int x1, int y1, int x2, int y2, int Color, int Thickness) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 四角形の描画
|
||||||
|
int DrawBox(int x1, int y1, int x2, int y2, int Color, int FillFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 楕円を描く
|
||||||
|
int DrawOval(int x, int y, int rx, int ry, int Color, int FillFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// グラフィックの描画
|
||||||
|
int DrawGraph(int x, int y, int GrHandle, int TransFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 画像の左右反転描画
|
||||||
|
int DrawTurnGraph(int x, int y, int GrHandle, int TransFlag) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// 文字列の描画
|
||||||
|
int DrawString(int x, int y, const char *String, int Color, int EdgeColor) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
// メモリに読みこんだWAVEデータが再生中か調べる
|
||||||
|
int CheckSoundMem(int SoundHandle) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
129
dxlib.h
Normal file
129
dxlib.h
Normal file
|
@ -0,0 +1,129 @@
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <emscripten.h>
|
||||||
|
|
||||||
|
typedef uint8_t byte;
|
||||||
|
#define TRUE 1
|
||||||
|
#define FALSE 0
|
||||||
|
|
||||||
|
|
||||||
|
#define DX_SOUNDDATATYPE_MEMPRESS (2) // 圧縮された全データはシステムメモリに格納され、再生する部分だけ逐次解凍しながらサウンドメモリに格納する(鳴らし終わると解凍したデータは破棄されるので何度も解凍処理が行われる)
|
||||||
|
#define DX_SOUNDDATATYPE_MEMNOPRESS (0) // 圧縮された全データは再生が始まる前にサウンドメモリにすべて解凍され、格納される
|
||||||
|
|
||||||
|
#define DX_SCREEN_BACK (0xfffffffe)
|
||||||
|
#define DX_FONTTYPE_EDGE (1) // エッジつきフォント
|
||||||
|
#define DX_FONTTYPE_NORMAL (0) // ノーマルフォント
|
||||||
|
#define DX_INPUT_KEY_PAD1 (0x1001) // キー入力とパッド1入力
|
||||||
|
|
||||||
|
|
||||||
|
#define DX_PLAYTYPE_LOOPBIT (0x0002) // ループ再生ビット
|
||||||
|
#define DX_PLAYTYPE_BACKBIT (0x0001) // バックグラウンド再生ビット
|
||||||
|
|
||||||
|
#define DX_PLAYTYPE_NORMAL (0) // ノーマル再生
|
||||||
|
#define DX_PLAYTYPE_BACK (DX_PLAYTYPE_BACKBIT) // バックグラウンド再生
|
||||||
|
#define DX_PLAYTYPE_LOOP (DX_PLAYTYPE_LOOPBIT | DX_PLAYTYPE_BACKBIT) // ループ再生
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define PAD_INPUT_LEFT (0x00000002) // ←チェックマスク
|
||||||
|
#define PAD_INPUT_RIGHT (0x00000004) // →チェックマスク
|
||||||
|
#define PAD_INPUT_DOWN (0x00000001) // ↓チェックマスク
|
||||||
|
#define KEY_INPUT_F1 1 // F1キー
|
||||||
|
|
||||||
|
#define KEY_INPUT_0 0 // 0キー
|
||||||
|
#define KEY_INPUT_O 0 // Oキー
|
||||||
|
#define PAD_INPUT_UP (0x00000008) // ↑チェックマスク
|
||||||
|
#define KEY_INPUT_Z 0 // Zキー
|
||||||
|
#define KEY_INPUT_1 0 // Zキー
|
||||||
|
#define KEY_INPUT_ESCAPE 0 // エスケープキー
|
||||||
|
#define KEY_INPUT_SPACE 0 // エスケープキー
|
||||||
|
#define KEY_INPUT_RETURN 0 // エスケープキー
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// グラフィックに設定する透過色をセットする
|
||||||
|
extern int SetTransColor(int Red, int Green, int Blue);
|
||||||
|
|
||||||
|
// 画像ファイルのメモリへの読みこみ
|
||||||
|
extern int LoadGraph(const char *FileName, int NotUse3DFlag = false);
|
||||||
|
|
||||||
|
// 指定のグラフィックの指定部分だけを抜き出して新たなグラフィックハンドルを作成する
|
||||||
|
extern int DerivationGraph(int SrcX, int SrcY, int Width, int Height, int SrcGraphHandle);
|
||||||
|
|
||||||
|
// グラフィックのサイズを得る
|
||||||
|
extern int GetGraphSize(int GrHandle, int *SizeXBuf, int *SizeYBuf);
|
||||||
|
|
||||||
|
// 作成するサウンドのデータ形式を設定する( DX_SOUNDDATATYPE_MEMNOPRESS 等 )
|
||||||
|
extern int SetCreateSoundDataType(int SoundDataType);
|
||||||
|
|
||||||
|
// サウンドデータを追加する
|
||||||
|
extern int LoadSoundMem(const char *WaveName, int BufferNum = 3, int UnionHandle = -1);
|
||||||
|
|
||||||
|
// メモリに読みこんだWAVEデータの再生にボリュームを設定する( パーセント指定 )
|
||||||
|
extern int ChangeVolumeSoundMem(int VolumePal, int SoundHandle);
|
||||||
|
|
||||||
|
// 画面モードを設定する
|
||||||
|
extern int SetGraphMode(int ScreenSizeX, int ScreenSizeY, int ColorBitDepth, int RefreshRate = 60);
|
||||||
|
|
||||||
|
// ライブラリ初期化関数
|
||||||
|
extern int DxLib_Init(void);
|
||||||
|
// ライブラリ使用の終了関数
|
||||||
|
extern int DxLib_End(void);
|
||||||
|
|
||||||
|
|
||||||
|
// 描画するフォントのサイズをセットする
|
||||||
|
extern int SetFontSize(int FontSize);
|
||||||
|
// フォントの太さをセット
|
||||||
|
extern int SetFontThickness(int ThickPal);
|
||||||
|
// 描画先画面のセット
|
||||||
|
extern int SetDrawScreen(int DrawScreen);
|
||||||
|
// 画面の状態を初期化する
|
||||||
|
extern int ClearDrawScreen();
|
||||||
|
|
||||||
|
// 3原色値から現在の画面モードに対応した色データ値を得る
|
||||||
|
extern uint32_t GetColor(int Red, int Green, int Blue);
|
||||||
|
|
||||||
|
// 書式指定文字列を描画する
|
||||||
|
extern int DrawFormatString(int x, int y, int Color, const char *FormatString, ...);
|
||||||
|
// グラフィックの回転描画
|
||||||
|
extern int DrawRotaGraph(int x, int y, double ExRate, double Angle, int GrHandle, int TransFlag, int TurnFlag = FALSE);
|
||||||
|
// フォントタイプの変更
|
||||||
|
extern int ChangeFontType(int FontType);
|
||||||
|
|
||||||
|
// キーの入力待ち
|
||||||
|
extern int WaitKey(void);
|
||||||
|
// 裏画面と表画面を交換する
|
||||||
|
extern int ScreenFlip(void);
|
||||||
|
// ミリ秒単位の精度を持つカウンタの現在値を得る
|
||||||
|
extern int GetNowCount(int UseRDTSCFlag = FALSE);
|
||||||
|
// ジョイバッドの入力状態取得
|
||||||
|
extern int GetJoypadInputState(int InputType);
|
||||||
|
// メモリに読み込んだWAVEデータの再生を止める
|
||||||
|
extern int StopSoundMem(int SoundHandle);
|
||||||
|
// メモリに読みこんだWAVEデータを再生する
|
||||||
|
extern int PlaySoundMem(int SoundHandle, int PlayType, int TopPositionFlag = TRUE);
|
||||||
|
// キーボードの入力状態取得
|
||||||
|
extern int CheckHitKey(int KeyCode);
|
||||||
|
// 指定の時間だけ処理をとめる
|
||||||
|
extern int WaitTimer(int WaitTime);
|
||||||
|
// 乱数を取得する( RandMax : 返って来る値の最大値 )
|
||||||
|
extern int GetRand(int RandMax);
|
||||||
|
|
||||||
|
// 点を描画する
|
||||||
|
extern int DrawPixel(int x, int y, int Color);
|
||||||
|
// 線を描画
|
||||||
|
extern int DrawLine(int x1, int y1, int x2, int y2, int Color, int Thickness = 1);
|
||||||
|
// 四角形の描画
|
||||||
|
extern int DrawBox(int x1, int y1, int x2, int y2, int Color, int FillFlag);
|
||||||
|
// 楕円を描く
|
||||||
|
extern int DrawOval(int x, int y, int rx, int ry, int Color, int FillFlag);
|
||||||
|
// グラフィックの描画
|
||||||
|
extern int DrawGraph(int x, int y, int GrHandle, int TransFlag);
|
||||||
|
// 画像の左右反転描画
|
||||||
|
extern int DrawTurnGraph(int x, int y, int GrHandle, int TransFlag);
|
||||||
|
// 文字列の描画
|
||||||
|
extern int DrawString(int x, int y, const char *String, int Color, int EdgeColor = 0);
|
||||||
|
// メモリに読みこんだWAVEデータが再生中か調べる
|
||||||
|
extern int CheckSoundMem(int SoundHandle);
|
207
main.cpp
207
main.cpp
|
@ -4,15 +4,14 @@
|
||||||
|
|
||||||
void loadg();
|
void loadg();
|
||||||
|
|
||||||
//String 使用
|
static inline int abs(int v) {
|
||||||
#include <string>
|
return v < 0 ? -v : v;
|
||||||
using namespace std;
|
}
|
||||||
|
|
||||||
|
|
||||||
//プログラム中
|
//プログラム中
|
||||||
//main-10
|
//main-10
|
||||||
//タイトル-100
|
//タイトル-100
|
||||||
int main = 100, maintm = 0;
|
int mainproc = 100, maintm = 0;
|
||||||
|
|
||||||
//ステージ
|
//ステージ
|
||||||
int stagecolor = 0;
|
int stagecolor = 0;
|
||||||
|
@ -49,9 +48,9 @@ int maint;
|
||||||
|
|
||||||
//サブクラス
|
//サブクラス
|
||||||
//(ウエイト系
|
//(ウエイト系
|
||||||
void wait(int interval);
|
static void wait(int interval);
|
||||||
void wait2(long stime, long etime, int FLAME_TIME);
|
static void wait2(long stime, long etime, int FLAME_TIME);
|
||||||
int rand(int Rand);
|
static int rand(int Rand);
|
||||||
void end();
|
void end();
|
||||||
|
|
||||||
//描画
|
//描画
|
||||||
|
@ -67,7 +66,7 @@ void fillrect(int a, int b, int c, int d);
|
||||||
void drawarc(int a, int b, int c, int d);
|
void drawarc(int a, int b, int c, int d);
|
||||||
void fillarc(int a, int b, int c, int d);
|
void fillarc(int a, int b, int c, int d);
|
||||||
int grap[161][8], mgrap[51];
|
int grap[161][8], mgrap[51];
|
||||||
int loadimage(string b);
|
int loadimage(const char* b);
|
||||||
int loadimage(int a, int x, int y, int r, int z);
|
int loadimage(int a, int x, int y, int r, int z);
|
||||||
int mirror;
|
int mirror;
|
||||||
void drawimage(int mx, int a, int b);
|
void drawimage(int mx, int a, int b);
|
||||||
|
@ -79,7 +78,7 @@ int oto[151];
|
||||||
void ot(int x); void bgmchange(int x);
|
void ot(int x); void bgmchange(int x);
|
||||||
|
|
||||||
//文字
|
//文字
|
||||||
void str(string c, int a, int b);
|
void str(const char* c, int a, int b);
|
||||||
|
|
||||||
|
|
||||||
//)
|
//)
|
||||||
|
@ -148,7 +147,7 @@ int titem[tmax], txtype[tmax];
|
||||||
|
|
||||||
//メッセージブロック
|
//メッセージブロック
|
||||||
int tmsgtm, tmsgtype, tmsgx, tmsgy, tmsgnobix, tmsgnobiy, tmsg;
|
int tmsgtm, tmsgtype, tmsgx, tmsgy, tmsgnobix, tmsgnobiy, tmsg;
|
||||||
void ttmsg(); void txmsg(string x, int a);
|
void ttmsg(); void txmsg(const char* x, int a);
|
||||||
void setfont(int x, int y);
|
void setfont(int x, int y);
|
||||||
|
|
||||||
//効果を持たないグラ
|
//効果を持たないグラ
|
||||||
|
@ -203,7 +202,7 @@ int srsok[srmax], srmovep[srmax], srmove[srmax];
|
||||||
//スクロール範囲
|
//スクロール範囲
|
||||||
int fx = 0, fy = 0, fzx, fzy, scrollx, scrolly;
|
int fx = 0, fy = 0, fzx, fzy, scrollx, scrolly;
|
||||||
//全体のポイント
|
//全体のポイント
|
||||||
int fma = 0, fmb = 0;
|
int fma1 = 0, fmb = 0;
|
||||||
//強制スクロール
|
//強制スクロール
|
||||||
int kscroll = 0;
|
int kscroll = 0;
|
||||||
//画面サイズ(ファミコンサイズ×2)(256-224)
|
//画面サイズ(ファミコンサイズ×2)(256-224)
|
||||||
|
@ -222,7 +221,7 @@ int blacktm = 1, blackx = 0;
|
||||||
//自由な値
|
//自由な値
|
||||||
int xx[91];
|
int xx[91];
|
||||||
double xd[11];
|
double xd[11];
|
||||||
string xs[31];
|
const char* xs[31];
|
||||||
|
|
||||||
|
|
||||||
//タイマー測定
|
//タイマー測定
|
||||||
|
@ -231,30 +230,14 @@ long stime;
|
||||||
|
|
||||||
|
|
||||||
// プログラムは WinMain から始まります
|
// プログラムは WinMain から始まります
|
||||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
|
int main() {
|
||||||
|
|
||||||
//画面サイズ設定
|
//画面サイズ設定
|
||||||
SetGraphMode(fxmax / 100, fymax / 100, 16);
|
SetGraphMode(fxmax / 100, fymax / 100, 16);
|
||||||
//
|
|
||||||
SetWindowIconID(127);
|
|
||||||
//最大化の防止
|
|
||||||
ChangeWindowMode(TRUE);
|
|
||||||
//タイトルの変更
|
|
||||||
SetMainWindowText("しょぼんのアクション");
|
|
||||||
//applog無効
|
|
||||||
SetOutApplicationLogValidFlag(false);
|
|
||||||
|
|
||||||
|
|
||||||
// DXライブラリ初期化処理(エラーが起きたら直ちに終了)
|
// DXライブラリ初期化処理(エラーが起きたら直ちに終了)
|
||||||
if (DxLib_Init() == -1) return -1;
|
if (DxLib_Init() == -1) return -1;
|
||||||
|
|
||||||
// 点を打つ
|
|
||||||
//DrawPixel( 320 , 240 , 0xffff ) ;
|
|
||||||
|
|
||||||
// キー入力待ち
|
|
||||||
//WaitKey();
|
|
||||||
|
|
||||||
|
|
||||||
//全ロード
|
//全ロード
|
||||||
loadg();
|
loadg();
|
||||||
|
|
||||||
|
@ -262,18 +245,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
SetFontSize(16);
|
SetFontSize(16);
|
||||||
SetFontThickness(4);
|
SetFontThickness(4);
|
||||||
|
|
||||||
//ループ
|
// Main loop
|
||||||
//for (maint=0;maint<=2;maint++){
|
emscripten_set_main_loop(Mainprogram, 60, 1);
|
||||||
while (ProcessMessage() == 0 && CheckHitKey(KEY_INPUT_ESCAPE) == 0) {
|
|
||||||
|
|
||||||
maint = 0; Mainprogram();
|
|
||||||
if (maint == 3) break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//DXライブラリ使用の終了処理
|
|
||||||
DxLib_End();
|
|
||||||
|
|
||||||
// ソフトの終了
|
// ソフトの終了
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -311,7 +284,7 @@ void rpaint() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (main == 1 && zxon >= 1) {
|
if (mainproc == 1 && zxon >= 1) {
|
||||||
|
|
||||||
|
|
||||||
//背景
|
//背景
|
||||||
|
@ -330,13 +303,13 @@ void rpaint() {
|
||||||
|
|
||||||
//51
|
//51
|
||||||
if (ntype[t] == 100) {
|
if (ntype[t] == 100) {
|
||||||
DrawFormatString(xx[0] / 100 + fma, xx[1] / 100 + fmb, GetColor(255, 255, 255), "51");
|
DrawFormatString(xx[0] / 100 + fma1, xx[1] / 100 + fmb, GetColor(255, 255, 255), "51");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ntype[t] == 101)
|
if (ntype[t] == 101)
|
||||||
DrawFormatString(xx[0] / 100 + fma, xx[1] / 100 + fmb, GetColor(255, 255, 255), "ゲームクリアー");
|
DrawFormatString(xx[0] / 100 + fma1, xx[1] / 100 + fmb, GetColor(255, 255, 255), "ゲームクリアー");
|
||||||
if (ntype[t] == 102)
|
if (ntype[t] == 102)
|
||||||
DrawFormatString(xx[0] / 100 + fma, xx[1] / 100 + fmb, GetColor(255, 255, 255), "プレイしてくれてありがとー");
|
DrawFormatString(xx[0] / 100 + fma1, xx[1] / 100 + fmb, GetColor(255, 255, 255), "プレイしてくれてありがとー");
|
||||||
|
|
||||||
}
|
}
|
||||||
} //t
|
} //t
|
||||||
|
@ -384,12 +357,12 @@ void rpaint() {
|
||||||
} //4
|
} //4
|
||||||
|
|
||||||
//if (egtype[t]==1){
|
//if (egtype[t]==1){
|
||||||
//drawimage(image[0],xx[0]/100+fma+5,xx[1]/100+fmb+5,0,0,10,10);
|
//drawimage(image[0],xx[0]/100+fma1+5,xx[1]/100+fmb+5,0,0,10,10);
|
||||||
//おもしろ
|
//おもしろ
|
||||||
//drawimage(image[2],xx[0]/100+fma,xx[1]/100+fmb,0,0,20,20);
|
//drawimage(image[2],xx[0]/100+fma1,xx[1]/100+fmb,0,0,20,20);
|
||||||
//}
|
//}
|
||||||
//if (egtype[t]==2)
|
//if (egtype[t]==2)
|
||||||
//drawimage(image[11],xx[0]/100+fma,xx[1]/100+fmb,0,0,25,16);
|
//drawimage(image[11],xx[0]/100+fma1,xx[1]/100+fmb,0,0,25,16);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -457,26 +430,26 @@ void rpaint() {
|
||||||
if (srgtype[t]==1){setcolor(40,40,240);}
|
if (srgtype[t]==1){setcolor(40,40,240);}
|
||||||
if (srgtype[t]>=2 && srgtype[t]<=6)setcolor(240,240,40);
|
if (srgtype[t]>=2 && srgtype[t]<=6)setcolor(240,240,40);
|
||||||
if (srgtype[t]==7)setcolor(0,240,0);
|
if (srgtype[t]==7)setcolor(0,240,0);
|
||||||
fillrect(xx[0]/100+fma,xx[1]/100+fmb, src[t]/100, srd[t]/100);
|
fillrect(xx[0]/100+fma1,xx[1]/100+fmb, src[t]/100, srd[t]/100);
|
||||||
setc0();
|
setc0();
|
||||||
if (srgtype[t]==0){setcolor(160,80,0);}
|
if (srgtype[t]==0){setcolor(160,80,0);}
|
||||||
if (srgtype[t]==1){setcolor(0,0,200);}
|
if (srgtype[t]==1){setcolor(0,0,200);}
|
||||||
if (srgtype[t]>=2 && srgtype[t]<=6)setcolor(200,200,0);
|
if (srgtype[t]>=2 && srgtype[t]<=6)setcolor(200,200,0);
|
||||||
if (srgtype[t]==7)setcolor(0,210,0);
|
if (srgtype[t]==7)setcolor(0,210,0);
|
||||||
drawrect(xx[0]/100+fma,xx[1]/100+0+fmb, src[t]/100, srd[t]/100);
|
drawrect(xx[0]/100+fma1,xx[1]/100+0+fmb, src[t]/100, srd[t]/100);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
//(トゲ)
|
//(トゲ)
|
||||||
if (srtype[t]==1 || srtype[t]==2){
|
if (srtype[t]==1 || srtype[t]==2){
|
||||||
if (srtype[t]==2)setre2();
|
if (srtype[t]==2)setre2();
|
||||||
//drawimage(image[6],xx[0]/100+fma,xx[1]/100+fmb,0,0,src[t]/100, srd[t]/100+2);
|
//drawimage(image[6],xx[0]/100+fma1,xx[1]/100+fmb,0,0,src[t]/100, srd[t]/100+2);
|
||||||
|
|
||||||
xx[20]=2000;
|
xx[20]=2000;
|
||||||
for (tt=0;tt<=src[t]/xx[20];tt++){
|
for (tt=0;tt<=src[t]/xx[20];tt++){
|
||||||
xx[6]=xx[20]/100;xx[7]=xx[20]/100;if (src[t]/xx[20]==tt){xx[7]=(src[t]%xx[20])/100;}
|
xx[6]=xx[20]/100;xx[7]=xx[20]/100;if (src[t]/xx[20]==tt){xx[7]=(src[t]%xx[20])/100;}
|
||||||
if (xx[6]<=0)xx[6]=1;if (xx[7]<=0)xx[7]=1;
|
if (xx[6]<=0)xx[6]=1;if (xx[7]<=0)xx[7]=1;
|
||||||
//drawimage(im[0],xx[0]/100+fma+tt*(xx[6]),xx[1]/100+fmb,5,0,xx[7],10);
|
//drawimage(im[0],xx[0]/100+fma1+tt*(xx[6]),xx[1]/100+fmb,5,0,xx[7],10);
|
||||||
drawimage(image[6],xx[0]/100+fma+tt*(xx[6]),xx[1]/100+fmb,0,0,xx[7], srd[t]/100+2);
|
drawimage(image[6],xx[0]/100+fma1+tt*(xx[6]),xx[1]/100+fmb,0,0,xx[7], srd[t]/100+2);
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -567,7 +540,7 @@ void rpaint() {
|
||||||
|
|
||||||
//デフラグさん
|
//デフラグさん
|
||||||
if (atype[t] == 6) {
|
if (atype[t] == 6) {
|
||||||
if (atm[t] >= 10 && atm[t] <= 19 || atm[t] >= 100 && atm[t] <= 119 || atm[t] >= 200) {
|
if ((atm[t] >= 10 && atm[t] <= 19) || (atm[t] >= 100 && atm[t] <= 119) || atm[t] >= 200) {
|
||||||
drawimage(grap[150][3], xx[0] / 100, xx[1] / 100);
|
drawimage(grap[150][3], xx[0] / 100, xx[1] / 100);
|
||||||
} else {
|
} else {
|
||||||
drawimage(grap[6][3], xx[0] / 100, xx[1] / 100);
|
drawimage(grap[6][3], xx[0] / 100, xx[1] / 100);
|
||||||
|
@ -678,15 +651,15 @@ void rpaint() {
|
||||||
|
|
||||||
if (txtype[t] != 10) {
|
if (txtype[t] != 10) {
|
||||||
|
|
||||||
if (ttype[t] == 100 || ttype[t] == 101 || ttype[t] == 102 || ttype[t] == 103 || ttype[t] == 104 && txtype[t] == 1 || ttype[t] == 114 && txtype[t] == 1 || ttype[t] == 116) {
|
if (ttype[t] == 100 || ttype[t] == 101 || ttype[t] == 102 || ttype[t] == 103 || (ttype[t] == 104 && txtype[t] == 1) || (ttype[t] == 114 && txtype[t] == 1) || ttype[t] == 116) {
|
||||||
xx[6] = 2 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
xx[6] = 2 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ttype[t] == 112 || ttype[t] == 104 && txtype[t] == 0 || ttype[t] == 115 && txtype[t] == 1) {
|
if (ttype[t] == 112 || (ttype[t] == 104 && txtype[t] == 0) || (ttype[t] == 115 && txtype[t] == 1)) {
|
||||||
xx[6] = 1 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
xx[6] = 1 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ttype[t] == 111 || ttype[t] == 113 || ttype[t] == 115 && txtype[t] == 0 || ttype[t] == 124) {
|
if (ttype[t] == 111 || ttype[t] == 113 || (ttype[t] == 115 && txtype[t] == 0) || ttype[t] == 124) {
|
||||||
xx[6] = 3 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
xx[6] = 3 + xx[9]; drawimage(grap[xx[6]][1], xx[0] / 100, xx[1] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -747,32 +720,32 @@ void rpaint() {
|
||||||
|
|
||||||
if (stype[t] == 0) {
|
if (stype[t] == 0) {
|
||||||
setcolor(40, 200, 40);
|
setcolor(40, 200, 40);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
||||||
drawrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
drawrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
||||||
}
|
}
|
||||||
//土管
|
//土管
|
||||||
if (stype[t] == 1) {
|
if (stype[t] == 1) {
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
||||||
setc0();
|
setc0();
|
||||||
drawrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
drawrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
||||||
}
|
}
|
||||||
//土管(下)
|
//土管(下)
|
||||||
if (stype[t] == 2) {
|
if (stype[t] == 2) {
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
||||||
setc0();
|
setc0();
|
||||||
drawline((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
drawline((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
||||||
drawline((sa[t] - fx) / 100 + fma + sc[t] / 100, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma + sc[t] / 100, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
drawline((sa[t] - fx) / 100 + fma1 + sc[t] / 100, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma1 + sc[t] / 100, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
//土管(横)
|
//土管(横)
|
||||||
if (stype[t] == 5) {
|
if (stype[t] == 5) {
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
||||||
setc0();
|
setc0();
|
||||||
drawline((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma + sc[t] / 100, (sb[t] - fy) / 100 + fmb);
|
drawline((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, (sa[t] - fx) / 100 + fma1 + sc[t] / 100, (sb[t] - fy) / 100 + fmb);
|
||||||
drawline((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + sd[t] / 100, (sa[t] - fx) / 100 + fma + sc[t] / 100, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
drawline((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + sd[t] / 100, (sa[t] - fx) / 100 + fma1 + sc[t] / 100, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -780,25 +753,25 @@ void rpaint() {
|
||||||
if (stype[t] == 51) {
|
if (stype[t] == 51) {
|
||||||
if (sxtype[t] == 0) {
|
if (sxtype[t] == 0) {
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
drawimage(grap[1][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
drawimage(grap[1][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sxtype[t] == 1 || sxtype[t] == 2) {
|
if (sxtype[t] == 1 || sxtype[t] == 2) {
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
drawimage(grap[31][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
drawimage(grap[31][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sxtype[t] == 3 || sxtype[t] == 4) {
|
if (sxtype[t] == 3 || sxtype[t] == 4) {
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
||||||
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + 29 * t2 + fmb);
|
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + 29 * t2 + fmb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sxtype[t] == 10) {
|
if (sxtype[t] == 10) {
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,18 +784,18 @@ void rpaint() {
|
||||||
|
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
if (sxtype[t] == 0) {
|
if (sxtype[t] == 0) {
|
||||||
drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb);
|
||||||
if (stagecolor != 4) {drawimage(grap[6 + xx[29]][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb + 29); } else {drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb + 29); }
|
if (stagecolor != 4) {drawimage(grap[6 + xx[29]][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb + 29); } else {drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb + 29); }
|
||||||
}
|
}
|
||||||
if (sxtype[t] == 1) {
|
if (sxtype[t] == 1) {
|
||||||
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
||||||
drawimage(grap[1 + xx[29]][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb + 29 * t2);
|
drawimage(grap[1 + xx[29]][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb + 29 * t2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sxtype[t] == 2) {
|
if (sxtype[t] == 2) {
|
||||||
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
||||||
drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + fmb + 29 * t2);
|
drawimage(grap[5 + xx[29]][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + fmb + 29 * t2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -835,7 +808,7 @@ void rpaint() {
|
||||||
if (stype[t] >= 100 && stype[t] <= 299) {
|
if (stype[t] >= 100 && stype[t] <= 299) {
|
||||||
if (stagecolor <= 1 || stagecolor == 3) setc0();
|
if (stagecolor <= 1 || stagecolor == 3) setc0();
|
||||||
if (stagecolor == 2 || stagecolor == 4) setc1();
|
if (stagecolor == 2 || stagecolor == 4) setc1();
|
||||||
drawrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
drawrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb, sc[t] / 100, sd[t] / 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -866,30 +839,30 @@ void rpaint() {
|
||||||
//入る土管(右)
|
//入る土管(右)
|
||||||
if (stype[t] == 40) {
|
if (stype[t] == 40) {
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
||||||
setc0();
|
setc0();
|
||||||
drawrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
drawrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, sc[t] / 100, sd[t] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
//とぶ土管
|
//とぶ土管
|
||||||
if (stype[t] == 50) {
|
if (stype[t] == 50) {
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma + 5, (sb[t] - fy) / 100 + fmb + 30, 50, sd[t] / 100 - 30);
|
fillrect((sa[t] - fx) / 100 + fma1 + 5, (sb[t] - fy) / 100 + fmb + 30, 50, sd[t] / 100 - 30);
|
||||||
setc0();
|
setc0();
|
||||||
drawline((sa[t] - fx) / 100 + 5 + fma, (sb[t] - fy) / 100 + fmb + 30, (sa[t] - fx) / 100 + fma + 5, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
drawline((sa[t] - fx) / 100 + 5 + fma1, (sb[t] - fy) / 100 + fmb + 30, (sa[t] - fx) / 100 + fma1 + 5, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
||||||
drawline((sa[t] - fx) / 100 + 5 + fma + 50, (sb[t] - fy) / 100 + fmb + 30, (sa[t] - fx) / 100 + fma + 50 + 5, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
drawline((sa[t] - fx) / 100 + 5 + fma1 + 50, (sb[t] - fy) / 100 + fmb + 30, (sa[t] - fx) / 100 + fma1 + 50 + 5, (sb[t] - fy) / 100 + fmb + sd[t] / 100);
|
||||||
|
|
||||||
setcolor(0, 230, 0);
|
setcolor(0, 230, 0);
|
||||||
fillrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, 60, 30);
|
fillrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, 60, 30);
|
||||||
setc0();
|
setc0();
|
||||||
drawrect((sa[t] - fx) / 100 + fma, (sb[t] - fy) / 100 + fmb + 1, 60, 30);
|
drawrect((sa[t] - fx) / 100 + fma1, (sb[t] - fy) / 100 + fmb + 1, 60, 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
//地面(ブロック)
|
//地面(ブロック)
|
||||||
if (stype[t] == 200) {
|
if (stype[t] == 200) {
|
||||||
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
for (t3 = 0; t3 <= sc[t] / 3000; t3++) {
|
||||||
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
for (t2 = 0; t2 <= sd[t] / 3000; t2++) {
|
||||||
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma + 29 * t3, (sb[t] - fy) / 100 + 29 * t2 + fmb);
|
drawimage(grap[65][1], (sa[t] - fx) / 100 + fma1 + 29 * t3, (sb[t] - fy) / 100 + 29 * t2 + fmb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1100,10 +1073,10 @@ void rpaint() {
|
||||||
|
|
||||||
//DrawFormatString(10,10,GetColor(255,255,255),"X … %d",anobib[0]);
|
//DrawFormatString(10,10,GetColor(255,255,255),"X … %d",anobib[0]);
|
||||||
|
|
||||||
} //if (main==1){
|
} //if (mainproc==1){
|
||||||
|
|
||||||
|
|
||||||
if (main == 2) {
|
if (mainproc == 2) {
|
||||||
|
|
||||||
setcolor(255, 255, 255);
|
setcolor(255, 255, 255);
|
||||||
str("制作・プレイに関わった方々", 240 - 13 * 20 / 2, xx[12] / 100);
|
str("制作・プレイに関わった方々", 240 - 13 * 20 / 2, xx[12] / 100);
|
||||||
|
@ -1130,7 +1103,7 @@ void rpaint() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (main == 10) {
|
if (mainproc == 10) {
|
||||||
|
|
||||||
setc0();
|
setc0();
|
||||||
fillrect(0, 0, fxmax, fymax);
|
fillrect(0, 0, fxmax, fymax);
|
||||||
|
@ -1142,11 +1115,11 @@ void rpaint() {
|
||||||
DrawFormatString(230, 200, GetColor(255, 255, 255), " × %d", nokori);
|
DrawFormatString(230, 200, GetColor(255, 255, 255), " × %d", nokori);
|
||||||
|
|
||||||
|
|
||||||
} //if (main==10){
|
} //if (mainproc==10){
|
||||||
|
|
||||||
|
|
||||||
//タイトル
|
//タイトル
|
||||||
if (main == 100) {
|
if (mainproc == 100) {
|
||||||
|
|
||||||
setcolor(160, 180, 250);
|
setcolor(160, 180, 250);
|
||||||
fillrect(0, 0, fxmax, fymax);
|
fillrect(0, 0, fxmax, fymax);
|
||||||
|
@ -1167,7 +1140,7 @@ void rpaint() {
|
||||||
setcolor(0, 0, 0);
|
setcolor(0, 0, 0);
|
||||||
str("Enterキーを押せ!!", 240 - 8 * 20 / 2, 250);
|
str("Enterキーを押せ!!", 240 - 8 * 20 / 2, 250);
|
||||||
|
|
||||||
} //if (main==100){
|
} //if (mainproc==100){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1189,14 +1162,14 @@ void Mainprogram() {
|
||||||
stime = long(GetNowCount());
|
stime = long(GetNowCount());
|
||||||
|
|
||||||
|
|
||||||
if (ending == 1) main = 2;
|
if (ending == 1) mainproc = 2;
|
||||||
|
|
||||||
|
|
||||||
//キー
|
//キー
|
||||||
key = GetJoypadInputState(DX_INPUT_KEY_PAD1);
|
key = GetJoypadInputState(DX_INPUT_KEY_PAD1);
|
||||||
|
|
||||||
|
|
||||||
if (main == 1 && tmsgtype == 0) {
|
if (mainproc == 1 && tmsgtype == 0) {
|
||||||
|
|
||||||
|
|
||||||
if (zxon == 0) {
|
if (zxon == 0) {
|
||||||
|
@ -1281,7 +1254,7 @@ void Mainprogram() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (CheckHitKey(KEY_INPUT_F1)==1){end();}
|
//if (CheckHitKey(KEY_INPUT_F1)==1){end();}
|
||||||
if (CheckHitKey(KEY_INPUT_F1) == 1) {main = 100; }
|
if (CheckHitKey(KEY_INPUT_F1) == 1) {mainproc = 100; }
|
||||||
//if (CheckHitKey(KEY_INPUT_Q)==1){mkeytm=0;}
|
//if (CheckHitKey(KEY_INPUT_Q)==1){mkeytm=0;}
|
||||||
if (CheckHitKey(KEY_INPUT_O) == 1) {if (mhp >= 1) mhp = 0; if (stc >= 5) {stc = 0; stagepoint = 0; }}
|
if (CheckHitKey(KEY_INPUT_O) == 1) {if (mhp >= 1) mhp = 0; if (stc >= 5) {stc = 0; stagepoint = 0; }}
|
||||||
|
|
||||||
|
@ -1399,7 +1372,7 @@ void Mainprogram() {
|
||||||
if (mtm <= 11) {mc = 0; md = 0; }
|
if (mtm <= 11) {mc = 0; md = 0; }
|
||||||
if (mtm == 12) {md = -1200; }
|
if (mtm == 12) {md = -1200; }
|
||||||
if (mtm >= 12) {mc = 0; }
|
if (mtm >= 12) {mc = 0; }
|
||||||
if (mtm >= 100 || fast == 1) {zxon = 0; main = 10; mtm = 0; mkeytm = 0; nokori--; if (fast == 1) mtype = 0; } //mtm>=100
|
if (mtm >= 100 || fast == 1) {zxon = 0; mainproc = 10; mtm = 0; mkeytm = 0; nokori--; if (fast == 1) mtype = 0; } //mtm>=100
|
||||||
} //mtype==200
|
} //mtype==200
|
||||||
|
|
||||||
|
|
||||||
|
@ -1487,7 +1460,7 @@ void Mainprogram() {
|
||||||
if (mtm > 43 && mtm <= 108) {mc = 300; }
|
if (mtm > 43 && mtm <= 108) {mc = 300; }
|
||||||
if (mtm == 110) {mb = -80000000; mc = 0; }
|
if (mtm == 110) {mb = -80000000; mc = 0; }
|
||||||
if (mtm == 250) {
|
if (mtm == 250) {
|
||||||
stb++; stc = 0; zxon = 0; tyuukan = 0; main = 10; maintm = 0;
|
stb++; stc = 0; zxon = 0; tyuukan = 0; mainproc = 10; maintm = 0;
|
||||||
}
|
}
|
||||||
} //mtype==300
|
} //mtype==300
|
||||||
|
|
||||||
|
@ -1496,7 +1469,7 @@ void Mainprogram() {
|
||||||
|
|
||||||
if (mtm <= 1) {mc = 0; md = 0; }
|
if (mtm <= 1) {mc = 0; md = 0; }
|
||||||
|
|
||||||
if (mtm >= 2 && (mtype == 301 && mtm <= 102 || mtype == 302 && mtm <= 60)) {
|
if (mtm >= 2 && ((mtype == 301 && mtm <= 102) || (mtype == 302 && mtm <= 60))) {
|
||||||
xx[5] = 500;
|
xx[5] = 500;
|
||||||
ma -= xx[5]; fx += xx[5]; fzx += xx[5];
|
ma -= xx[5]; fx += xx[5]; fzx += xx[5];
|
||||||
}
|
}
|
||||||
|
@ -2002,7 +1975,7 @@ void Mainprogram() {
|
||||||
if (sxtype[t] == 2 && sb[28] >= 48000 && t != 28 && sgtype[t] == 0 && mhp >= 1) {
|
if (sxtype[t] == 2 && sb[28] >= 48000 && t != 28 && sgtype[t] == 0 && mhp >= 1) {
|
||||||
sgtype[t] = 1; sr[t] = 0;
|
sgtype[t] = 1; sr[t] = 0;
|
||||||
}
|
}
|
||||||
if ((sxtype[t] == 3 && mb >= 30000 || sxtype[t] == 4 && mb >= 25000) && sgtype[t] == 0 && mhp >= 1 && ma + mnobia > xx[8] + xx[0] + 3000 - 300 && ma < xx[8] + sc[t] - xx[0]) {
|
if (((sxtype[t] == 3 && mb >= 30000) || (sxtype[t] == 4 && mb >= 25000)) && sgtype[t] == 0 && mhp >= 1 && ma + mnobia > xx[8] + xx[0] + 3000 - 300 && ma < xx[8] + sc[t] - xx[0]) {
|
||||||
sgtype[t] = 1; sr[t] = 0;
|
sgtype[t] = 1; sr[t] = 0;
|
||||||
if (sxtype[t] == 4) sr[t] = 100;
|
if (sxtype[t] == 4) sr[t] = 100;
|
||||||
}
|
}
|
||||||
|
@ -2092,7 +2065,7 @@ void Mainprogram() {
|
||||||
else {
|
else {
|
||||||
if (ma + mnobia > xx[8] + xx[0] && ma<xx[8] + sc[t] - xx[0] && mb + mnobib>xx[9] && mb < xx[9] + sd[t] + xx[0]) {
|
if (ma + mnobia > xx[8] + xx[0] && ma<xx[8] + sc[t] - xx[0] && mb + mnobib>xx[9] && mb < xx[9] + sd[t] + xx[0]) {
|
||||||
if (stype[t] == 100) {
|
if (stype[t] == 100) {
|
||||||
if (sxtype[t] == 0 || sxtype[t] == 1 && ttype[1] != 3) {
|
if (sxtype[t] == 0 || (sxtype[t] == 1 && ttype[1] != 3)) {
|
||||||
ayobi(sa[t] + 1000, 32000, 0, 0, 0, 3, 0); sa[t] = -800000000; ot(oto[10]);
|
ayobi(sa[t] + 1000, 32000, 0, 0, 0, 3, 0); sa[t] = -800000000; ot(oto[10]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2301,7 +2274,7 @@ void Mainprogram() {
|
||||||
//落下
|
//落下
|
||||||
if ((sracttype[t] == 1) && sron[t] == 0) sron[t] = 1;
|
if ((sracttype[t] == 1) && sron[t] == 0) sron[t] = 1;
|
||||||
|
|
||||||
if (sracttype[t] == 1 && sron[t] == 1 || sracttype[t] == 3 || sracttype[t] == 5) {
|
if ((sracttype[t] == 1 && sron[t] == 1) || sracttype[t] == 3 || sracttype[t] == 5) {
|
||||||
mb += sre[t];
|
mb += sre[t];
|
||||||
//if (srmuki[t]==0)
|
//if (srmuki[t]==0)
|
||||||
//if (srf[t]<0)
|
//if (srf[t]<0)
|
||||||
|
@ -3269,11 +3242,11 @@ void Mainprogram() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} //if (main==1){
|
} //if (mainproc==1){
|
||||||
|
|
||||||
|
|
||||||
//スタッフロール
|
//スタッフロール
|
||||||
if (main == 2) {
|
if (mainproc == 2) {
|
||||||
maintm++;
|
maintm++;
|
||||||
|
|
||||||
xx[7] = 46;
|
xx[7] = 46;
|
||||||
|
@ -3315,24 +3288,25 @@ void Mainprogram() {
|
||||||
} //t
|
} //t
|
||||||
|
|
||||||
if (xx[30] == -200) {bgmchange(oto[106]); }
|
if (xx[30] == -200) {bgmchange(oto[106]); }
|
||||||
if (xx[30] <= -400) {main = 100; nokori = 2; maintm = 0; ending = 0; }
|
if (xx[30] <= -400) {mainproc = 100; nokori = 2; maintm = 0; ending = 0; }
|
||||||
|
|
||||||
} //main==2
|
} //mainproc==2
|
||||||
|
|
||||||
|
|
||||||
if (main == 10) {
|
if (mainproc == 10) {
|
||||||
maintm++;
|
maintm++;
|
||||||
|
|
||||||
if (fast == 1) maintm += 2;
|
if (fast == 1) maintm += 2;
|
||||||
if (maintm >= 30) {maintm = 0; main = 1; zxon = 0; }
|
if (maintm >= 30) {maintm = 0; mainproc = 1; zxon = 0; }
|
||||||
} //if (main==10){
|
} //if (mainproc==10){
|
||||||
|
|
||||||
|
|
||||||
//タイトル
|
//タイトル
|
||||||
if (main == 100) {
|
if (mainproc == 100) {
|
||||||
maintm++; xx[0] = 0;
|
maintm++; xx[0] = 0;
|
||||||
if (maintm <= 10) {maintm = 11; sta = 1; stb = 1; stc = 0; over = 0; }
|
if (maintm <= 10) {maintm = 11; sta = 1; stb = 1; stc = 0; over = 0; }
|
||||||
|
|
||||||
|
/*
|
||||||
if (CheckHitKey(KEY_INPUT_1) == 1) {sta = 1; stb = 1; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_1) == 1) {sta = 1; stb = 1; stc = 0; }
|
||||||
if (CheckHitKey(KEY_INPUT_2) == 1) {sta = 1; stb = 2; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_2) == 1) {sta = 1; stb = 2; stc = 0; }
|
||||||
if (CheckHitKey(KEY_INPUT_3) == 1) {sta = 1; stb = 3; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_3) == 1) {sta = 1; stb = 3; stc = 0; }
|
||||||
|
@ -3341,6 +3315,7 @@ void Mainprogram() {
|
||||||
if (CheckHitKey(KEY_INPUT_6) == 1) {sta = 2; stb = 2; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_6) == 1) {sta = 2; stb = 2; stc = 0; }
|
||||||
if (CheckHitKey(KEY_INPUT_7) == 1) {sta = 2; stb = 3; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_7) == 1) {sta = 2; stb = 3; stc = 0; }
|
||||||
if (CheckHitKey(KEY_INPUT_8) == 1) {sta = 2; stb = 4; stc = 0; }
|
if (CheckHitKey(KEY_INPUT_8) == 1) {sta = 2; stb = 4; stc = 0; }
|
||||||
|
*/
|
||||||
//if (CheckHitKey(KEY_INPUT_9)==1){sta=3;stb=1;stc=0;}
|
//if (CheckHitKey(KEY_INPUT_9)==1){sta=3;stb=1;stc=0;}
|
||||||
if (CheckHitKey(KEY_INPUT_0) == 1) {xx[0] = 1; over = 1; }
|
if (CheckHitKey(KEY_INPUT_0) == 1) {xx[0] = 1; over = 1; }
|
||||||
|
|
||||||
|
@ -3351,7 +3326,7 @@ void Mainprogram() {
|
||||||
if (CheckHitKey(KEY_INPUT_Z) == 1) {xx[0] = 1; }
|
if (CheckHitKey(KEY_INPUT_Z) == 1) {xx[0] = 1; }
|
||||||
|
|
||||||
if (xx[0] == 1) {
|
if (xx[0] == 1) {
|
||||||
main = 10; zxon = 0; maintm = 0;
|
mainproc = 10; zxon = 0; maintm = 0;
|
||||||
nokori = 2;
|
nokori = 2;
|
||||||
|
|
||||||
fast = 0; trap = 0; tyuukan = 0;
|
fast = 0; trap = 0; tyuukan = 0;
|
||||||
|
@ -3436,7 +3411,7 @@ void tekizimen() {
|
||||||
|
|
||||||
//左右
|
//左右
|
||||||
xx[27] = 0;
|
xx[27] = 0;
|
||||||
if ((atype[t] >= 100 || (ttype[tt] != 7 || ttype[tt] == 7 && atype[t] == 2)) && ttype[tt] != 117) {
|
if ((atype[t] >= 100 || (ttype[tt] != 7 || (ttype[tt] == 7 && atype[t] == 2))) && ttype[tt] != 117) {
|
||||||
if (aa[t] + anobia[t] - fx > xx[8] && aa[t] - fx<xx[8] + xx[2] && ab[t] + anobib[t] - fy>xx[9] + xx[1] / 2 - xx[0] && ab[t] - fy < xx[9] + xx[2]) {aa[t] = xx[8] - anobia[t] + fx; ac[t] = 0; amuki[t] = 0; xx[27] = 1; }
|
if (aa[t] + anobia[t] - fx > xx[8] && aa[t] - fx<xx[8] + xx[2] && ab[t] + anobib[t] - fy>xx[9] + xx[1] / 2 - xx[0] && ab[t] - fy < xx[9] + xx[2]) {aa[t] = xx[8] - anobia[t] + fx; ac[t] = 0; amuki[t] = 0; xx[27] = 1; }
|
||||||
if (aa[t] + anobia[t] - fx > xx[8] + xx[1] - xx[0] * 2 && aa[t] - fx<xx[8] + xx[1] && ab[t] + anobib[t] - fy>xx[9] + xx[1] / 2 - xx[0] && ab[t] - fy < xx[9] + xx[2]) {aa[t] = xx[8] + xx[1] + fx; ac[t] = 0; amuki[t] = 1; xx[27] = 1; }
|
if (aa[t] + anobia[t] - fx > xx[8] + xx[1] - xx[0] * 2 && aa[t] - fx<xx[8] + xx[1] && ab[t] + anobib[t] - fy>xx[9] + xx[1] / 2 - xx[0] && ab[t] - fy < xx[9] + xx[2]) {aa[t] = xx[8] + xx[1] + fx; ac[t] = 0; amuki[t] = 1; xx[27] = 1; }
|
||||||
//こうらブレイク
|
//こうらブレイク
|
||||||
|
@ -3531,9 +3506,9 @@ void drawarc(int a, int b, int c, int d) {DrawOval(a, b, c, d, color, FALSE); }
|
||||||
void fillarc(int a, int b, int c, int d) {DrawOval(a, b, c, d, color, TRUE); }
|
void fillarc(int a, int b, int c, int d) {DrawOval(a, b, c, d, color, TRUE); }
|
||||||
|
|
||||||
//画像の読み込み
|
//画像の読み込み
|
||||||
int loadimage(string x) {
|
int loadimage(const char* x) {
|
||||||
//mgrap[a]=LoadGraph(b);
|
//mgrap[a]=LoadGraph(b);
|
||||||
return LoadGraph(x.c_str());
|
return LoadGraph(x);
|
||||||
}
|
}
|
||||||
int loadimage(int a, int x, int y, int r, int z) {
|
int loadimage(int a, int x, int y, int r, int z) {
|
||||||
return DerivationGraph(x, y, r, z, a);
|
return DerivationGraph(x, y, r, z, a);
|
||||||
|
@ -3569,9 +3544,9 @@ void setno() {} //g.setFlipMode(Graphics.FLIP_NONE);}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//文字
|
//文字
|
||||||
void str(string x, int a, int b) {
|
void str(const char *x, int a, int b) {
|
||||||
//char d[]="あ";
|
//char d[]="あ";
|
||||||
DrawString(a, b, x.c_str(), color);
|
DrawString(a, b, x, color);
|
||||||
//DrawString(10,10,xs[3].c_str(),color);
|
//DrawString(10,10,xs[3].c_str(),color);
|
||||||
|
|
||||||
xx[2] = 4;
|
xx[2] = 4;
|
||||||
|
@ -5587,7 +5562,7 @@ void ttmsg() {
|
||||||
|
|
||||||
} //ttmsg
|
} //ttmsg
|
||||||
|
|
||||||
void txmsg(string x, int a) {
|
void txmsg(const char *x, int a) {
|
||||||
int xx = 6;
|
int xx = 6;
|
||||||
|
|
||||||
str(x, 60 + xx, 40 + xx + a * 24);
|
str(x, 60 + xx, 40 + xx + a * 24);
|
||||||
|
@ -5703,4 +5678,4 @@ void ayobi(int xa, int xb, int xc, int xd, int xnotm, int xtype, int xxtype) {
|
||||||
//if (bz[t]==1){bz[t]=0;}
|
//if (bz[t]==1){bz[t]=0;}
|
||||||
} //rz
|
} //rz
|
||||||
|
|
||||||
} //ayobi
|
} //ayobi
|
||||||
|
|
Loading…
Add table
Reference in a new issue