游戏&项目
文章平均质量分 79
DannyPassante
这个作者很懒,什么都没留下…
展开
-
SDL ttf输入
//http://www.youtube.com/user/thecplusplusguy //Thanks for the typed in code to Tapit85 //you need a ttf font called Test.ttf and the tree_animation.bmp from the last source #include #inc原创 2013-04-08 07:11:28 · 772 阅读 · 0 评论 -
snake game
#include #include #include #include #include #ifndef SNAKE_H #define SNAKE_H struct snakepart{ int x,y; snakepart(int col,int row); snak转载 2013-04-08 07:17:31 · 880 阅读 · 0 评论 -
三字棋游戏
#include "stdio.h" #include "malloc.h" #define SIZE 3 #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #define NONE 0 #define PLAYER_A 1 #define PLAYER_B 2 #define W转载 2013-04-09 04:27:09 · 748 阅读 · 0 评论 -
动画效果
#include void setrects(SDL_Rect* clip) { for(int i = 0; i < 10; i += 1) { clip[i].x = 0 + i*100; clip[i].y = 0; clip[i].转载 2013-04-10 03:34:35 · 490 阅读 · 0 评论