⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 realball.h

📁 一个在tc3.0下面写的棋类游戏 很经典 值得好好研究
💻 H
字号:
#ifndef __REALBALL_H
#define __REALBALL_H
/*----------------------------------------------------------------------*/
typedef struct BALL{
int x,y,oldx,oldy;
int vx,vy;
int radius;
int color;
struct BALL *next;
void *buf;
void *oldbuf;
int attribute;
} BALL;

typedef struct Blocks{
int x,y,height,width;
void *buf;
unsigned int treasure;
unsigned int thick;
unsigned int active;
} BLOCKS;
typedef struct Border{
int x,y,oldx;
int width,length,height;
void *buf;
void *oldbuf;

}BORDER;
typedef struct USER{
int life;
long score;
int attribute;     /*attribute 0: normalball, 1 slowball,2 quick ball,...   */
int round;

}USER;
typedef struct Treasure{
int x,y,oldx,oldy,width,height;
int vx,vy;
int treasure;
void *buf;
void *oldbuf;
struct Treasure *next;
}TREASURE;


  int paint_ball(BALL *,USER *);
  int paint_treasure(TREASURE *,BORDER *);
  void paint_border(BORDER *);
  void paint_blocks();
  void initblocks(int);
  void loadpictures();
  void freemem_realball();
  void set_screen();
  void show_score();
  void show_life();
  int play();
  int pause();
  int realball();
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -