当前位置:网站首页>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 ~
边栏推荐
- Optimization method of path problem before dynamic planning
- China's salt water membrane market trend report, technological innovation and market forecast
- Information security - threat detection - detailed design of NAT log access threat detection platform
- Research Report of peripheral venous catheter (pivc) industry - market status analysis and development prospect prediction
- Analyse du format protobuf du rideau en temps réel et du rideau historique de la station B
- Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability
- nodejs爬虫
- Borg maze (bfs+ minimum spanning tree) (problem solving report)
- STM32 how to use stlink download program: light LED running light (Library version)
- 信息安全-史诗级漏洞Log4j的漏洞机理和防范措施
猜你喜欢
MySQL import database error [err] 1273 - unknown collation: 'utf8mb4_ 0900_ ai_ ci’
洛谷P1102 A-B数对(二分,map,双指针)
入门C语言基础问答
C语言学习笔记
Analyse du format protobuf du rideau en temps réel et du rideau historique de la station B
【高老师软件需求分析】20级云班课习题答案合集
Analysis of protobuf format of real-time barrage and historical barrage at station B
1010 things that college students majoring in it must do before graduation
Frida hook so layer, protobuf data analysis
信息安全-安全编排自动化与响应 (SOAR) 技术解析
随机推荐
Opencv learning log 30 -- histogram equalization
Information security - threat detection - Flink broadcast stream broadcaststate dual stream merging application in filtering security logs
MySQL import database error [err] 1273 - unknown collation: 'utf8mb4_ 0900_ ai_ ci’
入门C语言基础问答
Record of brushing questions with force deduction -- complete knapsack problem (I)
编程到底难在哪里?
Opencv learning log 13 corrosion, expansion, opening and closing operations
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
Information security - security professional name | CVE | rce | POC | Vul | 0day
b站 實時彈幕和曆史彈幕 Protobuf 格式解析
【高老师UML软件建模基础】20级云班课习题答案合集
Opencv learning log 31 -- background difference
Penetration test (1) -- necessary tools, navigation
Perform general operations on iptables
【练习-4】(Uva 11988)Broken Keyboard(破损的键盘) ==(链表)
Accounting regulations and professional ethics [4]
MySQL授予用户指定内容的操作权限
【练习-7】(Uva 10976)Fractions Again?!(分数拆分)
Analyse du format protobuf du rideau en temps réel et du rideau historique de la station B
[exercise -10] unread messages