This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
float PlayerX = 0; | |
float PlayerY = 240; | |
bool RightKeyON = false; | |
bool LeftKeyON = false; | |
bool UpKeyON = false; | |
bool DownKeyON = false; | |
const float PlayerSpeed = 3.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 右壁の作成 x:壁のX座標 y1:壁の上方 y2:壁の下方 | |
void GameControl::SetRightWall(float x, float y1, float y2) { | |
if (x <= Player->GetX() && Player->GetX() <= x + 3.0f && Player->GetY() <= y1 && Player->GetY() >= y2) { | |
if (Player->GetX() <= x + 0.20f) { | |
Player->SetX(x + 0.20f); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 壁の描画 | |
void ClassStage::DrawWallandCookie() { | |
for (int Heigth = 0; Heigth < 15; ++Heigth) { | |
for (int Width = 0; Width < 15; ++Width) { | |
// 壁の描画 | |
if (Map[Heigth][Width].GetAttribute() == enumWall) { | |
Sprite_Wall.Draw((float)Heigth * HEIGTH, (float)Width * WIDTH, false, 255, 255, 255, 255); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <d3dx9.h> | |
#include <dxerr.h> | |
#pragma comment( lib, "d3d9.lib" ) | |
#if defined(DEBUG) || defined(_DEBUG) | |
#pragma comment( lib, "d3dx9d.lib" ) | |
#else | |
#pragma comment( lib, "d3dx9.lib" ) | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
float PlayerX = 0; | |
float PlayerY = 240; | |
bool RightKeyON = false; | |
void SetLeftWall(float x); | |
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { | |
// ---ここから設定--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
#include <math.h> | |
const float DEGTORAD = 0.017453293f; // 度数表記をラジアンに変換する定数 | |
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { | |
// ---ここから設定--- | |
ChangeWindowMode(TRUE), SetMainWindowText("きれいなジャンプ"), SetGraphMode(640, 480, 32), | |
SetDoubleStartValidFlag(TRUE); DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK); | |
// ---ここまで設定--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
#include <math.h> | |
const float DEGTORAD = 0.017453293f; // 度数表記をラジアンに変換する定数 | |
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { | |
// ---ここから設定--- | |
ChangeWindowMode(TRUE), SetMainWindowText("へにょり弾"), SetGraphMode(640, 480, 32), | |
SetDoubleStartValidFlag(TRUE); DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK); | |
// ---ここまで設定--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
#include <math.h> | |
const float DEGTORAD = 0.017453293f; // 度数表記をラジアンに変換する定数 | |
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { | |
// ---ここから設定--- | |
ChangeWindowMode(TRUE), SetMainWindowText("きれいな画面フェード"), SetGraphMode(640, 480, 32), | |
SetDoubleStartValidFlag(TRUE); DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK); | |
// ---ここまで設定--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DxLib.h" | |
#include <math.h> | |
const float DEGTORAD = 0.017453293f; // 度数表記をラジアンに変換する定数 | |
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { | |
// ---ここから設定--- | |
ChangeWindowMode(TRUE), SetMainWindowText("斜め方向に移動する玉"), SetGraphMode(640, 480, 32), | |
SetDoubleStartValidFlag(TRUE); DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK); | |
// ---ここまで設定--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <ios> | |
#include <iomanip> | |
#pragma warning(disable:4996) | |
using namespace std; | |
const int DECK_NUM = 40; // デッキの総枚数 | |
int main() { |
NewerOlder