我试图在GameState中创建一个游戏状态系统,我创建了窗口类和MainLoop函数,起初我相信这是因为循环不是主要的,但结果相同。 Window.cpp: #include "Window.h"
using namespace std;
Window::Window(char* title, int width, int height, Uint32 flags)
{
if
嗨我试图触发多个音乐在这里播放,这里有一些代码。 Mix_Music *mix_list[MUSIC_COUNT] ;
//init music with SDL
int result = 0;
int flags = MIX_INIT_MP3;
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
printf("Fail