SDLÎÊÌâ
ÎÒ¸Õ½Ó´¥linuxϱà³Ì£¬ËùÒÔ²»¶®£¬Âé·³¸÷λ°ïÎÒ¿´¿´ÊÇʲôÎÊÌâf lZu!fX³ÌÐò´úÂë
O*|;q/y$^`j
#include <stdio.h> 1^^eb5n[
#include <stdlib.h>2P.^8{NI!KY
#include <SDL.h>
#include <SDL_image.h>
#define DIR_UP 0
#define DIR_LEFT 17rZ!oP$fft&r
#define DIR_DOWN 2
#define DIR_RIGHT 3Y ekq*M/Bj)D z$D
SDL_Surface *screen;
typedef struct Sprite_t {
int width;
int height;%D3H"fr:}
int x;;O u E8G4OHF
int y;
int ox;
int oy;C|q5A"F3F&R$g$L3R;D
int dir;
int subframe;C|W M1O g
int speed;
int timer;
int moving; //use to calculate subframe
SDL_Surface *image;