52ky 发表于 2022-11-9 14:26:26

Android研究院之游戏开发触摸轨迹曲线(十四)源码

在上一章的学习中我们现已认识如何管理游戏中的接触事情,这一章将向同学们介绍制作游戏接触轨道的曲线图,在onTouchEvent方法中我们可以拿到手指在屏幕中接触点XY不时的坐标,这章我们研究的课题就是如何把这些点变成一种无规则轨道并且将这条无规则曲线显示在屏幕中。

(In the previous chapter, we have now learned how to manage the contact events in the game. This chapter will introduce to the students how to make the curve graph of the game contact track. In the onTouchEvent method, we can get the coordinates of the contact points XY in the screen from time to time. In this chapter, we study how to turn these points into an irregular track and display the irregular curve on the screen.)




页: [1]
查看完整版本: Android研究院之游戏开发触摸轨迹曲线(十四)源码