写在前面 首先,祝大家新年快乐! 即将迎来新的一年——癸卯兔年,祝大家成绩、事业“兔”飞猛进,必定红红火火! 在这篇文章中,将用烟花致以大家最好的祝福! 烟花代码将会用到 Easyx 图形库,可以去官网下载:easyx.cn 代码思路 1 烟花结构体 2 初始化烟花 3 烟花上升 4 烟花爆炸 5 绘制烟花 不需要任何图片、音效(本来想加的,你要加自己加吧) 开始编写 提前声明:代码纯原创! 需要用到的头文件以及宏: #include <graphics.h> #include <math.h> #include <time.h> #include <stdio.h> #define MAXNUM 15 #define WIDTH 640 #define HEIGHT 480 #define PI 3.1415926 1 烟花结构体 定义的参数如下: struct Fire { int nowx; int nowy; int endy; int radio; int explode; int rgb[3]; COLORREF color; }fire[MAXNUM]; 2...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile