English 中文(简体)
动物设计——使用物体特性?
原标题:Game Design - Reusing an objects properties?
  • 时间:2010-07-01 16:24:30
  •  标签:
  • iphone
  • xcode

我是奥比克新到的,但已经开发了许多类型的闪电游戏。 我有多个具有相同特性的广场(UIImageView);

  • can be collision detected (converted to CGRect)
  • can have a background image (image.png)
  • can set an int variable on itself to set state (0-3)
  • can be a type of square represented by another int variable (0-3)

在闪电中,我可以设立电影院,并界定它在这方面的特性。 然后,我可以重复审理,给出不同的名字。 现在,所有情况都可以根据自己的国家自行决定自己的财产。

我如何在英国圣公会中这样做。 是否有办法界定物体,如UIImageView *square,该词还有CGRect.frame、后地财产、无国家变数以及无固定类型变数? 然后,如果我立案并称其为01,平方米,等等...... 这是可能的吗?

我现在要看一下,我不得不为我所知的每个广场制作一份UIImage语、一张CGRect语和两英寸var。 我想对我的法典加以修正和简化,以便我感到开始这样做时,我的准则不会被人手。

提前感谢,

最佳回答

在闪电中,电影剪辑(或子级)的比照率不同。 它们基本上是为了作为“世界”的组成部分,以便用你想要的方式发言,能够包含除其形象表述和位置之外的许多额外信息。

A UIIage 观点并不如此。 其目的是在屏幕上显示一个地点的形象,即所有地点。 不要试图把它当作一个闪电影像,而是试图另设一个类别(例如,世界遗产)。 储存你提到的所有数据。 之后,这种方法将在某种程度上将这些信息转化为一种可观的形式。 例如,你可以采用这种方法,形成一种UIImageView,并通过该信来看待世界重要案例所储存的形象。

问题回答

暂无回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签