Android*

Using compilervars File

Before you invoke the compiler component of the Intel® System Studio (ISS) you must set certain environment variables that define the location of compiler-related components.

The Intel® C++ Compiler includes the compilervars scripts that you can run to set environment variables.

Android* Platform

Intel® C++ Compiler 15.0 is compatible with the GCC compiler in the Android* NDK and can be used to develop applications for x86-based devices that run on Android target systems. The Android NDK can be downloaded from http://developer.android.com/sdk/ndk/index.html.

With the Intel compiler and Android NDK you can develop Android applications on Windows* or Linux* hosts.

quick-cocos2d-x 游戏开发 [20] —— scheduler 定时器

定时器用的地方还是比较多的,游戏中的逻辑判断很多都是采用每帧执行。quick对于schedule的封装在scheduler这个lua文件中。如果是第一次接触quick的话,可能按照官方的api来写一个定时器被报错,提示schedule是一个nil值,这是因为其他的模块在初始化时都是被加载的,唯独这个scheduler没有载入,所以在使用的时候,第一件事是引入这个模块,

  1. local scheduler = require("framework.scheduler")  

 

剩下的就可以看着api来写了,在写quick的定时器之前还是再复习一下cocos2dx原生lua对于定时器的写法。

 

每帧调用的,

void scheduleUpdateWithPriority (int priority)

void scheduleUpdateWithPriorityLua (int nHandler,int priority)

Suscribirse a Android*