C/C++项目——鸣人释放技能螺旋丸
一个简单地小代码
实现鸣人能够释放技能螺旋丸
代码如下
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <conio.h>
#include <mmsystem.h>
#pragma comment(lib,"winmm.lib")
IMAGE background;
IMAGE array[16];
IMAGE arrayY[16];
struct bgInfo
{
int x;
int y;
int speed;
};
struct bgInfo bg = {
1000, 0, 5 };
enum 方向{
LEFT,RIGHT};
struct roleInfo
{
int x;
int y;
int direct;
};
struct roleInfo role = {
300, 400 ,RIGHT};
void loadResource()
{
loadimage(&background, "Background\\background.jpg");
for (int i = 0; i < 16; i++<