当前位置:网站首页>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 ~
边栏推荐
- Truck History
- [exercise-7] (UVA 10976) fractions again?! (fraction split)
- 信息安全-威胁检测引擎-常见规则引擎底座性能比较
- China's earthwork tire market trend report, technical dynamic innovation and market forecast
- 渗透测试 ( 7 ) --- 漏洞扫描工具 Nessus
- Research Report on surgical fluid treatment industry - market status analysis and development prospect prediction
- Opencv learning log 19 skin grinding
- Accounting regulations and professional ethics [4]
- 树莓派CSI/USB摄像头使用mjpg实现网页摄像头监控
- D - Function(HDU - 6546)女生赛
猜你喜欢
Nodejs+vue网上鲜花店销售信息系统express+mysql
Matlab comprehensive exercise: application in signal and system
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
Nodejs+vue online fresh flower shop sales information system express+mysql
B - 代码派对(女生赛)
渗透测试 ( 3 ) --- Metasploit Framework ( MSF )
【练习-4】(Uva 11988)Broken Keyboard(破损的键盘) ==(链表)
[exercise-4] (UVA 11988) broken keyboard = = (linked list)
Penetration test (8) -- official document of burp Suite Pro
Essai de pénétration (1) - - outils nécessaires, navigation
随机推荐
滲透測試 ( 1 ) --- 必備 工具、導航
The most complete programming language online API document
Cost accounting [22]
【练习-9】Zombie’s Treasure Chest
E. Breaking the Wall
【练习-1】(Uva 673) Parentheses Balance/平衡的括号 (栈stack)
X-forwarded-for details, how to get the client IP
Information security - security professional name | CVE | rce | POC | Vul | 0day
Alice and Bob (2021 Niuke summer multi school training camp 1)
[exercise-8] (UVA 246) 10-20-30== simulation
JS call camera
China earth moving machinery market trend report, technical dynamic innovation and market forecast
Truck History
渗透测试 ( 2 ) --- 渗透测试系统、靶机、GoogleHacking、kali工具
China's earthwork equipment market trend report, technical dynamic innovation and market forecast
Opencv learning log 15 count the number of solder joints and output
Interesting drink
b站 实时弹幕和历史弹幕 Protobuf 格式解析
Perinatal Software Industry Research Report - market status analysis and development prospect forecast
【练习-5】(Uva 839)Not so Mobile(天平)