?? background.h
字號:
#ifndef BACKGROUND_H#define BACKGROUND_H#include <SDL/SDL.h>void InitBackground(void);/* Initializes the background drawing system. */void DrawBackground(SDL_Surface *dest, int camera_x, int camera_y);/* Draws the background on the screen, with respect to the global "camera" position. The camera marks the 640x480 section of the world that we can see at any given time. This is usually in the vicinity of the player's ship. */void DrawParallax(SDL_Surface *dest, int camera_x, int camera_y);/* Same as above, but draws the upper (parallaxing) layer of the background. */#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -