Tony 的 apps development 日誌
2011年12月25日 星期日
思考
那是每一round運算時間是2xnxm,現在是<2xnxm
可能能降低至nxm,快了一半。
那就用第二種方法吧。
可能的bug?目標死了,那就另找目標吧。
需要雙方都有這個尋找嗎?還是一方就行?
因為近是雙面的,你離a近代表a離你也近。
那就。。
電腦依靠玩家士兵的距離感來決定該殺誰?
bug可能出於次序問題。
1. a find path
2. if the old distance is same or shorter, just remain. else, find a new one.
3. a walk, random at walk up or left
4. yeah, b gotta find path too, otherwise, there must be bug
then the sequence of units is another problem now.
it cannot say all units attack together.
the sequence base on the sequence of putting units.
if defense, then how?
the athogithm of defense is base on grid.
that need recursive function.
yeah, that will work.
and then the computer's ai?
how to put units?
i guess i will give it limited numbers of units.
actually players vs me.
and then the campign story?
that needs lots of drawing.
思考
那就另找士兵?
那是每一round運算時間是2xnxm,現在是
可能能降低至nxm,快了一半。
那就用第二種方法吧。
可能的bug?目標死了,那就另找目標吧。
需要雙方都有這個尋找嗎?還是一方就行?
因為近是雙面的,你離a近代表a離你也近。
那就。。
電腦依靠玩家士兵的距離感來決定該殺誰?
bug可能出於次序問題。
1. a find path
2. if the old distance is same or shorter, just remain. else, find a new one.
3. a walk, random at walk up or left
4. yeah, b gotta find path too, otherwise, there must be bug
then the sequence of units is another problem now.
it cannot say all units attack together.
the sequence base on the sequence of putting units.
if defense, then how?
the athogithm of defense is base on grid.
that need recursive function.
yeah, that will work.
and then the computer's ai?
how to put units?
i guess i will give it limited numbers of units.
actually players vs me.
and then the campign story?
that needs lots of drawing.
2011年4月19日 星期二
設計
所以,我得請人幫我畫。
你可能問,值得冒這種風險嗎?這game play system也許是不成功的,沒樂趣的。這裡必須透露一個支持我的意念的秘密了。其實這個遊戲,是很多年前一個大富翁環遊世界的小遊戲的複雜版,增加的東西不少,類似的遊戲也很多,(如zombie vs plant),因此不涉及copy right。不過,那時候我最愛玩的就是那個小遊戲,超愛的。對,就是這樣。。
繼續請畫的問題。jesus christ,這麼11個unit的花費總共是一兩千元?其實,也算合理了,1個角色才100元,得畫一兩個小時,再低的話再沒人接這活了。
果然,隔行如隔山。本來,對,本來以為我一個人能夠勝任這些工作,程式,level design,畫圖,結果,果然不行。在認識宋先生之前我是不知道原來angry bird的那個bird是遊戲團隊專雇了外面的設計師設計的= =,據說版權費也是六位數字。
2011年3月15日 星期二
2011年2月14日 星期一
繼續前進
讓我看看,昨晚finished camping ai. let me see, what next to do? camping ai is so far so good. but level programming needed to be improve. Code is still redundant now.
let me see, level one is 1 wolves. = 1w
level 2 is 2 wolves. = 2w
level 3 is 4 wolves. = 3w
level 4 is 3 wolves in random. (7,2 - 7,5) = 2w
enemy area is in red.
level 5 is 4 wolves in random. (2 area separated) (6,0 - 7,1 , 6,6 - 7,7) = 3w
count is array length.
level 6 is 6 wolves in random (big area: 6,1 - 7,6) = 4w
level 7 is 4 little wolves + 2 big wolves (6,1 - 7,6, big wolf back, little wolf front) = 4w
level 8 is 4 little wolves + 3 big wolves area same = 4w
one little lake
forest
level 9 is 3 big wolves + 4 littles wolves = 4w separate area
top score!
2011年2月9日 星期三
flash!
就是說:flash在iphone上的運行速度到了一個限制。
致命啊!
一個300x300的藍色正方,一直往右邊平移竟然lag的!
adobe,那不是什麼複雜圖案,而只是一塊正方型!
那以後再複雜的圖案怎辦?
地圖的dragging怎辦?
多致命。
這麼lag,我是不會玩的。
也不用旨意能放上istore。
怎辦?
算了。
我也知道算了。
待flash出更新吧。
否則就以後再把東西移植到另一個develop platform 上。
2011年2月1日 星期二
中途站
然後又搞掂了ai的部份
今晚看看怎樣。。
中途stop
就是說,玩家中途restart game都不會有負面的影響
都不會產生bug
怎辦?
那a-star的function花的時間是一至兩毫秒
假如在這段時間之間把game停止,必造成bug
然後,就是level的core function
就是說,在最初的level,player不能做的事多著
怎樣去定義呢?
看看
unit selection
defend state available
map size
zoom degree available
area that player can put unit on
after start, unit selection bar disappear
map is round
grid is lines
when drag selection button, map view move to that area
terrain
rearrange unit buttons
flag
gold
bottom bar is grey, translative
and two round buttons
one is zoom, one is menu
one is start/continue
top is flag button/other functions
walls
second story is pig empire
map is like link
firing houses
firing farm
