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日 星期二

設計

沒有想過FYP 竟要到達這個地步。就是說,直接說吧,畫圖的困難比我想像中大得多,大了十倍以上,大了二十倍以上,基本上是遠超,應該說脫雜我的能力範圍了。我的目的是弄一個可以賣出去的遊戲,所以就找了一位畫2d漫畫的專業導師談,是從大陸來的,透過青年組織認識的。然後,他當然是很有經驗的那一種,也給了我很多寶貴的意見。我想,這裡的一個打擊就是,他告訴我,這不是一個沒有經過基礎繪畫訓練的人能夠勝任的工作。出面的一個遊戲角色設計,一個,就是說一隻狼,也得花上兩天的時間。遠低估了。。

所以,我得請人幫我畫。

你可能問,值得冒這種風險嗎?這game play system也許是不成功的,沒樂趣的。這裡必須透露一個支持我的意念的秘密了。其實這個遊戲,是很多年前一個大富翁環遊世界的小遊戲的複雜版,增加的東西不少,類似的遊戲也很多,(如zombie vs plant),因此不涉及copy right。不過,那時候我最愛玩的就是那個小遊戲,超愛的。對,就是這樣。。

繼續請畫的問題。jesus christ,這麼11個unit的花費總共是一兩千元?其實,也算合理了,1個角色才100元,得畫一兩個小時,再低的話再沒人接這活了。

果然,隔行如隔山。本來,對,本來以為我一個人能夠勝任這些工作,程式,level design,畫圖,結果,果然不行。在認識宋先生之前我是不知道原來angry bird的那個bird是遊戲團隊專雇了外面的設計師設計的= =,據說版權費也是六位數字。

2011年3月15日 星期二



很久沒update blog
沒有人告訴大家一個身兼programer, graphic drawer, level designer的人沒有時間寫這種廢話連篇的東西嗎?
反正在沒有搞文字的東西的時候, 任何東西都走得特別快
相信現代社會, 應該說下一個時代的走向是少說話, 多做事。

東西還沒搞好,沒必要談,以後再說。

2011年2月14日 星期一

繼續前進

上星期五終於決定推掉所有繁忙的兼職工作,把整副心機放在fyp上。話雖如此,這project 還是遭遇到很多困難的,就是說,我一個人做了三個人的工作,分別是寫程式,畫圖,以及level design。J 君說得對,一兼三職,我這是向impossible 挑戰。這沒關係,我就是喜愛挑戰。反正在工作上我也需要畫圖,那現在就是一種高強度的訓練吧。希望評審們能夠體諒這一點吧,製成品的質素可能比不上專業的遊戲(當然,我個人的目標是製成一個在街上賣的遊戲),可是一個人完成三個人的工作無論如何也不是一件容易的事情,那一方面不能兼顧請多見諒吧。。

讓我看看,昨晚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日 星期二

中途站

昨晚搞掂了save data的困難
然後又搞掂了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