当前位置:网站首页>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 ~
边栏推荐
- 【练习-7】Crossword Answers
- [exercise-6] (PTA) divide and conquer
- 【高老师软件需求分析】20级云班课习题答案合集
- JS call camera
- Information security - threat detection engine - common rule engine base performance comparison
- Research Report on shell heater industry - market status analysis and development prospect forecast
- [exercise-3] (UVA 442) matrix chain multiplication
- 基于web的照片数码冲印网站
- D - Function(HDU - 6546)女生赛
- 差分(一维,二维,三维) 蓝桥杯三体攻击
猜你喜欢
数据在内存中的存储&载入内存,让程序运行起来
[exercise-7] crossover answers
Determine the Photo Position
Pyside6 signal, slot
入门C语言基础问答
[teacher Gao UML software modeling foundation] collection of exercises and answers for level 20 cloud class
C语言数组的概念
【高老师软件需求分析】20级云班课习题答案合集
STM32 learning record: LED light flashes (register version)
程序员的你,有哪些炫技的代码写法?
随机推荐
Interesting drink
[exercise-4] (UVA 11988) broken keyboard = = (linked list)
Nodejs+vue online fresh flower shop sales information system express+mysql
【练习-6】(Uva 725)Division(除法)== 暴力
Penetration test (7) -- vulnerability scanning tool Nessus
Research Report of cylindrical grinder industry - market status analysis and development prospect forecast
If you want to apply for a programmer, your resume should be written like this [essence summary]
Opencv learning log 33 Gaussian mean filtering
CEP used by Flink
b站 實時彈幕和曆史彈幕 Protobuf 格式解析
Opencv learning log 12 binarization of Otsu method
VS2019初步使用
[teacher Gao UML software modeling foundation] collection of exercises and answers for level 20 cloud class
China's earthwork tire market trend report, technical dynamic innovation and market forecast
Research Report on market supply and demand and strategy of China's land incineration plant industry
China's salt water membrane market trend report, technological innovation and market forecast
[exercise -10] unread messages
【练习-3】(Uva 442)Matrix Chain Multiplication(矩阵链乘)
SSM框架常用配置文件
通俗地理解什么是编程语言