Skip to content

Commit 59bb7c7

Browse files
authored
更新见说明
终于把音乐加进去了
1 parent 7385e80 commit 59bb7c7

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

MapReader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//导入标准库
1313
#include<windows.h>
1414
#include<stdlib.h>
15+
#include<direct.h>
1516
#include<string>
1617
//include custom library
1718
//导入自定义库
@@ -21,12 +22,11 @@ int main(int argc,char ** argv){
2122
//Instantiate Object
2223
//实例化对象
2324
Map G;
24-
People p(false);
25+
People p;
2526
Egg egg;
26-
AudioClip musicplayer;
27+
system(("cd \""+string(_getcwd(NULL,0))+"\"").c_str());
28+
system("start \"\" \".\\defines\\sound\\1st.mp3\"");
2729
init(p,G,egg,argc,argv);//调用初始化函数(Call initialization function)
28-
// cout << (musicplayer.load("defines/music/1st.mp3")?"Load sucessfully":"Load fail");
29-
// system("pause");
3030
//游戏循环(Game cycle)
3131
//游戏的刷新速度约为100次/秒(Running speed of the game is about 100 ticks/second)
3232
while(true){

MapReader.exe

-14.5 KB
Binary file not shown.

README-EN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Of course, you can also set modes, view help, and create archives. These parts a
2929

3030
### V2.3
3131

32+
#### V2.3.8
33+
34+
You can play the music now.
35+
3236
#### V2.3.7
3337

3438
1. Fixed some minor bugs.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030

3131
### V2.3
3232

33+
#### V2.3.8
34+
35+
现在可以播放音乐了。
36+
3337
#### V2.3.7
3438

3539
1. 修复了一些小bug。

main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//导入标准库
1313
#include<windows.h>
1414
#include<stdlib.h>
15+
#include<direct.h>
1516
#include<string>
1617
//include custom library
1718
//导入自定义库
@@ -23,10 +24,9 @@ int main(int argc,char ** argv){
2324
Map G;
2425
People p;
2526
Egg egg;
26-
AudioClip musicplayer;
27+
system(("cd \""+string(_getcwd(NULL,0))+"\"").c_str());
28+
system("start \"\" \".\\defines\\sound\\1st.mp3\"");
2729
init(p,G,egg,argc,argv);//调用初始化函数(Call initialization function)
28-
// cout << (musicplayer.load("defines/music/1st.mp3")?"Load sucessfully":"Load fail");
29-
// system("pause");
3030
//游戏循环(Game cycle)
3131
//游戏的刷新速度约为100次/秒(Running speed of the game is about 100 ticks/second)
3232
while(true){

main.exe

-14.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)