続・DXLIBの自作のサンプルプログラム集2
■メタルスラッグのヘビィマシンガン風の弾の動かし方#include"DxLib.h"
#include<math.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hP,LPSTR lpC,int nC)
{
ChangeWindowMode(TRUE); //ウィンドウモードで起動
SetGraphMode(320,240,16);
SetMainWindowText("HMGun"); //ウィンドウのタイトル
if(DxLib_Init() == -1) return (-1); //DXライブラリ初期化
srand(GetTickCount());
DrawString( 0 , 0 , "データ読み込み中" , GetColor(255,255,255) );
//乱数の初期化
srand((unsigned)GetTickCount());
SetDrawScreen(DX_SCREEN_BACK);
const int R=1;
const int L=2;
double TamaX[32]={0},TamaY[32]={0},TamaA[32]={0};
double TamaVX[32]={0},TamaVY[32]={0};
int TamaF[32]={0};
int muki=R;
double vx=5,vy=0;
int JikiX=160,JikiY=120;
while(ProcessMessage()==0 && Che
0