当前位置:网站首页>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 -v
verification 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 make
Then 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 ~
边栏推荐
- 快速转 TypeScript 指南
- Alice and Bob (2021 Niuke summer multi school training camp 1)
- 渗透测试 ( 4 ) --- Meterpreter 命令详解
- Opencv learning log 19 skin grinding
- Opencv learning log 15 count the number of solder joints and output
- TCP的三次握手与四次挥手
- 【练习-8】(Uva 246)10-20-30==模拟
- Information security - threat detection - detailed design of NAT log access threat detection platform
- Opencv learning log 14 - count the number of coins in the picture (regardless of overlap)
- 洛谷P1102 A-B数对(二分,map,双指针)
猜你喜欢
[exercise-7] crossover answers
PySide6 信号、槽
mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
Frida hook so layer, protobuf data analysis
Web based photo digital printing website
Nodejs+vue online fresh flower shop sales information system express+mysql
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
基于web的照片数码冲印网站
【练习-4】(Uva 11988)Broken Keyboard(破损的键盘) ==(链表)
B - 代码派对(女生赛)
随机推荐
0-1 knapsack problem (I)
滲透測試 ( 1 ) --- 必備 工具、導航
China's earthwork equipment market trend report, technical dynamic innovation and market forecast
[exercise-4] (UVA 11988) broken keyboard = = (linked list)
渗透测试 2 --- XSS、CSRF、文件上传、文件包含、反序列化漏洞
渗透测试 ( 7 ) --- 漏洞扫描工具 Nessus
Nodejs+vue online fresh flower shop sales information system express+mysql
信息安全-安全专业名称|CVE|RCE|POC|VUL|0DAY
Borg Maze (BFS+最小生成树)(解题报告)
VS2019初步使用
China's peripheral catheter market trend report, technological innovation and market forecast
Penetration test (8) -- official document of burp Suite Pro
Gartner: five suggestions on best practices for zero trust network access
【练习-6】(Uva 725)Division(除法)== 暴力
Opencv learning log 14 - count the number of coins in the picture (regardless of overlap)
Borg maze (bfs+ minimum spanning tree) (problem solving report)
The most complete programming language online API document
C语言是低级和高级的分水岭
Frida hook so layer, protobuf data analysis
E. Breaking the Wall