main.cpp
来自「LBreakout a breakout-style arcade game f」· C++ 代码 · 共 55 行
CPP
55 行
/*************************************************************************** main.cpp - description ------------------- begin : Die Feb 29 13:27:43 MET 2000 copyright : (C) 2000 by Michael Speck email : ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifdef HAVE_CONFIG_H#include "../config.h"#endif#include <stdlib.h>#include "game.h"#include "sndsrv.h"char *src_dir = SRC_DIR;char *home_dir;int fast_quit = 0;int main(int argc, char *argv[]){ // version // printf("LBreakout %s\nCopyright 2000 Michael Speck\n", VERSION); printf("Level Charts by Jean-Philippe Martin\n"); printf("Enjoy the game!\n-----\n");// home_dir = getenv("HOME"); home_dir = "/root";#ifdef SOUND SndSrv_Init(16);#endif Game *game = new Game(); game->Run(); printf( "before delete game\n" ); delete game; printf( "after delete game\n" ); #ifdef SOUND SndSrv_Quit();#endif printf( "END\n" ); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?