当前位置:网站首页>Write web games in C language
Write web games in C language
2022-07-06 16:03:00 【Programming fish 66】
1. download PainterEngine

2. We start with a PainterEngine Fox Parkour game of ![]()


3. install mingw Configure environment variables
install emscripten( Please refer to the online tutorial ), The tutorial assumes that you have installed D:\emsdk
4. Windows Open the command prompt and enter the following command
D:
emsdk\emsdk_env.bat
emcc -vverification Emscripten Whether it works properly , If it works , You can see the following interface

Then open the emsdk\upstream\emscripten\src\setting.js

modify INITIAL_MEMORY by 268435456( This parameter is the memory space allocated for program operation )

5. Open in text file format PainterEngine\platform\webassembly\makefile, Modify the game project The file path where the directory is located

5. Will you project\assets The required files are placed in PainterEngine\platform\webassembly\assets Under the table of contents ( So you can get through assets/filename To read the file )

6. Enter... At the command prompt
cd PainterEngine\platform\webassembly\
7. Enter... At the command prompt
emmake makeThen wait for the compilation to complete , When you see the following interface , Prompt that the project has been compiled successfully

8. Now? , You can enter
Check the compilation results

The following page , Is the result of game compilation , You can play directly ![]()
C/C++ Getting started video , Provide it to zero based partners C Introduction to language learning , Study C/C++ Programming knowledge , Welcome to your attention UP, You can also enter UP Penguin learning group :828339809 Progress together , More high-quality learning tutorials are constantly updated ~
边栏推荐
- Record of force deduction and question brushing
- Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability
- Research Report of exterior wall insulation system (ewis) industry - market status analysis and development prospect prediction
- 0-1背包問題(一)
- Perform general operations on iptables
- Penetration test (7) -- vulnerability scanning tool Nessus
- nodejs爬虫
- Information security - Epic vulnerability log4j vulnerability mechanism and preventive measures
- Research Report on market supply and demand and strategy of China's earth drilling industry
- Accounting regulations and professional ethics [4]
猜你喜欢

Penetration test (8) -- official document of burp Suite Pro

Penetration test (1) -- necessary tools, navigation

b站 實時彈幕和曆史彈幕 Protobuf 格式解析

Pyside6 signal, slot

信息安全-史诗级漏洞Log4j的漏洞机理和防范措施

Gartner:关于零信任网络访问最佳实践的五个建议

程序员的你,有哪些炫技的代码写法?

STM32 learning record: LED light flashes (register version)

Determine the Photo Position

X-Forwarded-For详解、如何获取到客户端IP
随机推荐
Opencv learning log 31 -- background difference
数据在内存中的存储&载入内存,让程序运行起来
【练习-2】(Uva 712) S-Trees (S树)
E. Breaking the Wall
Penetration test (2) -- penetration test system, target, GoogleHacking, Kali tool
Ball Dropping
Alice and Bob (2021牛客暑期多校训练营1)
【练习-10】 Unread Messages(未读消息)
Pyside6 signal, slot
Accounting regulations and professional ethics [2]
Borg maze (bfs+ minimum spanning tree) (problem solving report)
[exercise-6] (PTA) divide and conquer
【练习-11】4 Values whose Sum is 0(和为0的4个值)
Opencv learning log 12 binarization of Otsu method
[exercise -11] 4 values why sum is 0 (and 4 values of 0)
China's earthwork equipment market trend report, technical dynamic innovation and market forecast
mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
Research Report of exterior wall insulation system (ewis) industry - market status analysis and development prospect prediction
【练习4-1】Cake Distribution(分配蛋糕)
X-forwarded-for details, how to get the client IP