首页|基于移动定位的AR精灵游戏设计

基于移动定位的AR精灵游戏设计

扫码查看
增强现实(Augmented Reality)AR游戏应用的核心是将现实场景虚拟进游戏世界,实现所处环境在虚拟世界的地理映射,给玩家带来良好的沉浸感和互动性.为了提高游戏的体验感,该文基于移动定位设计了一款AR精灵游戏.游戏将GPS坐标值作为游戏角色在地图中的显示坐标,利用GoogleMap进行地图映射,采用Haversine公式实时计算角色与精灵的间距,实现抓取捕获精灵的过程.游戏以Unity3D为开发平台,采用MonoDevelop作为游戏编辑器,应用C#语言编写游戏脚本,实现虚拟AR精灵在现实场景中的捕获过程.
Design of AR Elf Game Based on Mobile Positioning
The core of augmented reality(AR)game applications is to virtualize real scenes into the game world,achieve geographical mapping of the environment in the virtual world,and bring players a good sense of immersion and interactivity.In order to improve the gaming experience,this article designs an AR sprite game based on mobile positioning.The game uses GPS coordinate values as the display coordinates of the game character on the map,uses GoogleMap as the map mapping,and uses Haversine formula to calculate the real-time distance between the character and the sprite,achieving the process of grabbing and capturing sprites.The game is developed using Unity3D as the development platform,MonoDevelop as the game editor,and C#language to write game scripts,achieving the capture process of virtual AR sprites in real scenes.

augmented reality(AR)GPSmobile positioning

张璘、董锦、陶琳

展开 >

厦门理工学院光电与通信工程学院,福建 厦门 361024

增强现实AR 全球卫星定位系统(GPS) 移动定位

2024

数字通信世界
电子工业出版社

数字通信世界

影响因子:0.162
ISSN:1672-7274
年,卷(期):2024.(10)