code style

顯示具有 apple 標籤的文章。 顯示所有文章
顯示具有 apple 標籤的文章。 顯示所有文章

9/03/2015

How to induce low memory warnings on iOS device?

It's difficult to test game function in low memory scenario.

Someone suggests using iOS simulator to do the test.

Someone says write codes to allocate large chunk of memory to induce that, or call private method
[[UIApplication sharedApplication] performSelector:@selector(_performMemoryWarning)];

Rather than writing code in the project, you could use Xcode debugger to execute the private function.

Edit the action of breakpoint and enter
expr (void)[[UIApplication sharedApplication] performSelector:@selector(_performMemoryWarning)];
Voilà, mission completed.

By the way, my indie game "Nimble Jump" Android version is in beta testing now.
Please try it and give some feedback. Thank you!
play.google.com/apps/testing/com.jbyu.ninja.





7/29/2009

iPhone 3D engine survey

[open source]
SIO2
indie certifiate $99
Blender as the tool chain
Bullet as the physics engine
Lua script integrated
rich tutorials

Oolong, author's blog
ARM VFP math library

Irrlicht
OGRE

note: SIO2, Oolong mainly focus on iPhone.

[commercial]
Torgue
2D: indie $750, commercial $2,250
3D: indie $650, commercial $1,749

ShiVa
unlimited: €169,00
advanced: €1499,00

unity3D
foundation: indie $199, pro $1499
iPhone: basic $399, pro $1499

2/12/2009

Hackintosh

iPhone 3G當紅,害我也很想買一隻來玩玩

最吸引我的當然是開發iPhone上面的app.囉

雖然windows也有toolchain可以開發iPhone app.

不過用mac開發才是王道阿! (握拳)

但因為在下實在是"真。窮人",買不起macbook

所以只好轉進hackintosh這個罪惡的淵藪 :>

剛好我的電腦是dell inspiron 530,有強者提供了完整攻略

在此我也簡單地說一下我的攻略
  1. download iATKOS 5i and leopard HD install helper
  2. create 2 partitions, one for mac os and one for HD helper
  3. use HD helper to dump iso into the partition
  4. reboot
  5. choose iATKOS to boot
  6. earse mac os parition into mac journal format
  7. customize installer
  8. install
至於audio/network,強者攻略中有提供方法就不再贅述

有圖有真相

2/11/2009

[教學] Mac OS X 常用快速鍵

作者: rofu (心若冰清天褟不驚) 看板: MAC
標題: [教學] Mac OS X 常用快速鍵
時間: Sun Sep 23 15:54:37 2007

簡單介紹,給大家參考參考.

command: 蘋果鍵
option: alt鍵
ctrl: ctrl鍵
退出鍵: 光碟退出鍵
↓: 上下左右的下鍵

command + tab 在不同的程式間作切換(往後)
command + shift + tab 在不同的程式間作切換(往前)
command + ` 在相同程式間的不同視窗作切換(往前)
command + ~ 在相同程式間的不同視窗作切換(往後)

command + c 複製
command + v 貼下
command + x 剪下

command + n 開新視窗
command + w 關閉分頁
command + option + w 關閉所有分頁,但是不關掉程式
command + q 關閉整個程式

command + a 全選
command + f 尋找
command + o 打開檔案
command + s 儲存檔案

command + m 最小化(不推薦使用)
command + h 隱藏目前程式(推薦使用,command + tab可以直接切回來)
command + option + h 隱藏除了目前程式以外的所有視窗

command + e 在外接設備的圖示中按下這個相當於退出
command + d 製作備份
command + ↓ 相當於執行(在圖示上按下enter只能改檔名,按下這個才會執行)
command + shift + a 在finder中可以直接開啟應用工具資料夾


ctrl + 退出鍵 關機詢問視窗(=按下電源鍵)
command + option + esc 強制結束此程式
command + option + 退出鍵 休眠
command + option + ctrl + 退出鍵 關機
command + ctrl + 電源鍵 強制重開機

command + shift + 3 全螢幕快照
command + shift + 4 螢幕快照 選取範圍
command + shift + 4 + 空白鍵 螢幕快照 選取應用程式

開機時:
option 選擇開機磁碟
T 你的mac變成一個外接硬碟(請使用firewire連接其他電腦)
C 從光碟開機

滑鼠右鍵: ctrl + 左鍵 = 右鍵
兩根手在touch pannel上 + 左鍵 = 右鍵

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.90.99