检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:苏雄 张宏桥 段凌飞 曾晓华 SU Xiong;ZHANG Hongqiao;DUAN Lingfei;ZENG Xiaohua(College of Electronic Information and Electrical Engineering,Xiangnan University,Chenzhou 423000)
机构地区:[1]湘南学院电子信息与电气工程学院,郴州423000
出 处:《现代计算机》2021年第21期152-157,共6页Modern Computer
基 金:2019年国家级大学生创新创业训练计划项目(No.S201910545001);2019年度湖南省大学生创新创业训练计划项目(No.1783)。
摘 要:出于教学目的,本文基于C99标准,利用跨平台SDL2库提供的音视频操作等功能,设计了一套开源简易的跨平台2D游戏框架CSimpleEngine,该框架主要包含通用功能、事件编辑、输入控制、声音管理、精灵管理、文字绘制、物体管理七大模块,流程上使用事件轮询方式进行驱动。框架只包含3个文件:2个核心文件CSimpleEngine.h与CSimpleEngine.c,1个配置文件CSimplConfig.h,使用起来方便简洁。本文利用该框架快速实现了Windows版本的双人弹球,并利用C4Droid生成Android版本的FlappyBird应用,验证了该框架的易用性和跨平台性。For teaching purposes,this paper uses the cross-platform SDL2 library and based on the C language to design a simple cross-platform 2D game framework:CSimpleEngine.It mainly includes general functions,event editing,input control,sound management,sprite manage⁃ment,text drawing,and object management modules and is driven by event polling.The framework is convenient and simple to use and only contains 3 files:2 core files CSimpleEngine.h and CSimpleEngine.c,1 configuration file CSimplConfig.h.This article uses the frame⁃work to quickly implement the Windows application of the multiplayer PingPong,and then uses C4Droid to generate the Android APK for FlappyBird which verifying the ease of use and cross-platform of the framework.
分 类 号:TP317[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.145.163.13