当前位置:网站首页>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 ~
边栏推荐
- C语言数组的概念
- [exercise-4] (UVA 11988) broken keyboard = = (linked list)
- Essai de pénétration (1) - - outils nécessaires, navigation
- China chart recorder market trend report, technology dynamic innovation and market forecast
- Web based photo digital printing website
- [exercise-1] (UVA 673) parentheses balance/ balanced brackets (stack)
- Opencv learning log 13 corrosion, expansion, opening and closing operations
- 通俗地理解什么是编程语言
- PySide6 信号、槽
- 渗透测试 ( 7 ) --- 漏洞扫描工具 Nessus
猜你喜欢
随机推荐
New to redis
【练习-11】4 Values whose Sum is 0(和为0的4个值)
Borg Maze (BFS+最小生成树)(解题报告)
【练习-7】(Uva 10976)Fractions Again?!(分数拆分)
C语言数组的概念
【练习-4】(Uva 11988)Broken Keyboard(破损的键盘) ==(链表)
[exercise-3] (UVA 442) matrix chain multiplication
STM32 how to use stlink download program: light LED running light (Library version)
JS调用摄像头
[exercise-2] (UVA 712) s-trees
7-1 懂的都懂 (20 分)
F - Birthday Cake(山东省赛)
[exercise-6] (PTA) divide and conquer
Research Report on market supply and demand and strategy of China's earth drilling industry
Penetration test (7) -- vulnerability scanning tool Nessus
CS zero foundation introductory learning record
想应聘程序员,您的简历就该这样写【精华总结】
Research Report of exterior wall insulation system (ewis) industry - market status analysis and development prospect prediction
Auto.js入门
信息安全-安全编排自动化与响应 (SOAR) 技术解析



![[exercise-7] crossover answers](/img/66/3dcba2e70a4cd899fbd78ce4d5bea2.png)





