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()
{
全部评论 (0)
还没有任何评论哟~
