10/20/2009

Yes, I'm here

I just noticed it's been a long time since my last post!! Yup, I'm still working on it every single day, it was just boring debugging and such although I think I had a few insights about debugging and programming and all that in between, but anyways... wow I really wish I had a talent in writing.. My English is so broken. So I've pretty much finished the programming part of the game so I've been drawing the background art lately again. I just finished drawing 51 of them 5 minutes ago so I needed to celebrate it here. Hurahh! (a celebration roar)
Now I need to draw the background for the square, inn, barracks, cathedral, and the hill. After that is draw some boss characters and draw all the NPCs. Hurraah!! (one more push roar)

気づいたらもう2週間近く留守にしてたこのブログ!誰か読んでるんかな。自己満の開発日記なんやけども。最近の進行具合はデバッグやらバランス調整などでとくに書くこともなかったけどところどころ発見があって楽しかったりもした。発見というのはデバッグの仕方や、プログラミングの醍醐味など。それが終わったので背景の絵をまた描き初めてやっとこさ51枚目完成したのでちょっと祝いにきました。おっしゃ!てな具合で気合いを入れ直してあとは町の絵5枚かいて、NPCの絵かいてボスの絵描いたらおすぃまい。へっへ〜ん♪で、そのあとはゲームバランス調整しながらオープニングアニメーションを作り始める。まだまだ完成には遠いぜよ。

10/07/2009

Progress, progress, and... progress

..moreover, progress.
It was inevitable to learn how to use Instruments due to my buggy-awesomeness-code-of-doom. I found a huge bug where a memory wasn't being freed by Apple's API because I was trying to paste a blank string to a UITextView. This didn't show up in the Leaks Instruments, but it was living forever which could be observed through Object Allocations. It was about 100KB per minute, which adds up over time and crashes the app.
And finally, more progress is yet to come.

進行、 進展、前進するのみ。Instrumentsを使ったデバッグの作業になかなか慣れてきた今日この頃。繊細におおらかに書かれたバグだらけのコードをデバッグするには不可欠。今日はAppleのAPIで生成されたオブジェクトがフリーされてない問題を解決した。いや、一瞬たりとも「アップルのバグか?」とか全然これっぽっちも思ってなかったけど、やっぱり問題は自分でUITextViewに空のNSStringを入れようとしてたみたいでそれがMalloc 160 bytesを蓄積してた。結果、毎分100KBぐらいのリークが発生しててこの数週間悩まされてたんだぜぇ〜。初代iPhoneだと15分ぐらいでクラッシュするという始末。明日はまた違うリークを解決するぞと。
精が出るぜぇ〜。出るんだぜぇ〜。とぜぇぜぇ言いながらやってます。

9/24/2009

The game is actually a game

After all the core game system working, I've been pretty much making data, and making events now. And all of a sudden, the thing is actually a game! It's an interesting shift in the whole development process. I'm having fun making characters and their personality, what they say and how they play in the game. I haven't had any break from this for 15 days. Crazy.

ゲームシステムのコアがほぼ完成した今、武器やモンスターやイベントのデータを作ってる。気がついたら、めっちゃゲームやん!なかなかなゲームやん!と感動してる日々。ここまでくる道のりが長かったなぁ。開発の過程の中ですごい変化がでたような気がする。キャラの性格や台詞を作るのも楽しい。で、かれこれ15日間休まず作ってる。最近の平均時間は10時間かな。おかげでめっちゃ進んだ。楽しい。がしかし、引きこもりすぎ。不可欠でしょうがないんだぜいいぇい。

9/14/2009

Almost ready for testing...

I've been saying this for about 2 weeks now, but for real this time. I've been preparing bunch of data for monsters, items, and tomorrow I'll work on Magic and Skills to test. I organize my data on Google Spreadsheet, I then spit out a CSV file and parse it using a PHP script I wrote. I feel more comfortable doing this than making a XML file and reading it through XML parser in Objective-C. PHP is so much easier... I also wonder how much more difficult it is to hack an xml file than hard coded data.

あとちょっとでテストプレイできるぐらいまで来た。ってもう2週間ほど言ってるような気がする。。この二日間はモンスターデータ、とアイテムデータを前半分ぐらいまでつくってる。明日は技と魔法をつくるかな。このすべてのデータをGoogle Spreadsheetで管理していて、CSVに吐き出して自分で書いたPHPスクリプトでパースしてる。Objective-CでXMLやCSVをパースするよりはるかに簡単のような気がする。XMLとハードコードはどっちがハックするの難しいのかな。

9/11/2009

Debugging spree

Crazy days! Debugging like hell. I've found out about Clang, a free and useful debugging tool for Xcode, but then I found out about the new Build and Analyze menu which pretty much does the same thing as Clang. I'm using both Instruments and that menu to debug my app. It was crashing like crazy 3 days ago, but now my app is running way better. I'm getting memory warning after about 10 minutes of playing. Need to release the objects more properly.

怒濤のデバッグ日和!デバッグツールにはかかせないClangを知り、そしてXcodeについてくるBuild and Analyzeのメニューを知った。どっちもにたようなことをするので今はInstrumentsとそれを使ってる。3日前は死ぬほどクラッシュしてたけど今は10分ほどプレイしてるとメモリー警告メッセージがくるだけ。ちょっとは安心したけど、どこでどうメモリーリークしてるのかを発見しないとまたこれ進まんな。

9/05/2009

Graph of hours spent


This is the graph of hours I've been spending on this game. I keep track of it in Google Docs.

開発時間を記録したグラフ。Google Docsで管理。

9/04/2009

Rampage

Jus getting things done. I think I finally see the end. I'll probably have the game playable for testing within this two weeks. The tweaking of the data for good game balance is going to be just a whole another task. The event system I put in seems to be working, it's just that coming up with story and the balance of it is another task.

またもやめちゃくちゃ進んだ。やっと終わりが見えてきたような気がする。このまま行けば2週間以内でテスト用まで完成するはず。ゲームバランスのためにデータをいじるのがまた難しくなりそうやなぁ。おとといと昨日で導入したイベントシステムは思った以上にうまくいってて快感。絵のないNPCはスペースホルダーとして黒いシルエットにしてるけど、これがまた違う味がでてていいな。なんかで使えるかも。かまいたちの夜的な。

9/02/2009

Events and NPC

I had some kick ass day today. Implementing events and NPC was not an easy task at all but still got stuff done. I think I got the base core working. Now just for the little bits.

今日はざっくり達成感。イベントとNPCを導入するのは思ってた以上に難しかったけどコアな部分はできたはず。「フラグをたてればいいだけ」と思ってたけどそれをどういうふうに作っていくかが思ってもないようなやり方でやることにした。オブジェクト指向の醍醐味というかめんどくさいところというか。。。

8/31/2009

Snow Leopard, more skills and magic

I spent all day installing Snow Leopard and Xcode 3., Snow Leopard iPhone SDK, and everything else. I'm back on track today with more magics and skills. I think I'm going to have to call the skills the Techniques since the Magic and them fall under the category of Skills. Hmm, this might cause some problem later on.

昨日は一日中Snow Leopardインストールと他のソフトのインストールした。ゲームのシステムはできてきたものの、ゲームバランスが絶対難しくなる。

8/27/2009

Heal magic working

What the title says.
Gotta get both the magic and techniques working within two days.
Gonna kick some ass.

ヒールの魔法ができた、ということで他の魔法もさほど難しくないはず。技の導入も似たような感じなのでスムーズにいくはず。積極的にやっていかな一生終わる気配なし。1ヶ月以内にはゲーム自体は完成させたいけど。甘いかな。がんばるぜぇ〜。がんばるんだぜぇ〜。

8/25/2009

Skills and magic

Been busy lately with other things. I started implementing skills and magic for the players. The monster's side is pretty much done. So far so good.

最近他のことで忙しくなった。今日はプレイヤー側の技と魔法を作り始めた。モンスター側はほぼ完成してる。いい調子。
作ってるうちにいいゲームシステムの案なりを思いつく。いいんやけど、ちょっと今更ってとこもある。

8/17/2009

Effect view

The icons of the effect of the spells and skills are working now. I had a problem trying to use the method copy. I still need to dig further into memory management. It's kind of scary what I'm going to run into. Maybe I'll end up with a huge memory leak problem.. it looks ok now.

魔法やスキルのステータス異常などのアイコンが画面上に表示されるようになった。こいつは使える。
今日はcopyメソッドで久々に悪戦苦闘した。コピー自体は簡単にできたけどそのあとにアサインした変数に変化を加えるとクラッシュしたり。なぜに。。

8/14/2009

A lot done

I have no idea how many little things I got done this week. I got the effects of armor, shield, and ring done. Fixed some bugs and found some more, just some solid working days.

今週はやたらと細かい作業をたくさんやっつけた。鎧、盾、指輪の効果はおわったし、バグは直したし新バグは発見したし、充実しまくりの1週間。このままがんばっぞぉ。

8/11/2009

Rings and armors

Rings will increase your stats, and armors will have effects for you to become immune to certain attacks such as poison, sleep, etc. Just going through bunch of states, flags, and if statements. Maybe the shield will reflect certain attacks like fire or something. This is the most enjoyable time in making games is when I'm thinking about the game design. Actually, not all game designs are fun though...

指輪はステータスを上昇、鎧には毒や眠りなどの攻撃を無効化にするというゲームデザインにした。盾はどうするかなぁ。何かを跳ね返すとか炎に強い盾とかつくるべや。こういうの考えてる時が一番楽しいんよなぁ。

8/10/2009

Monster magics

Now some monsters are casting magics using their MPs. This is pretty cool that they have some basic AI.

モンスターが人工知能で魔法を唱え始めた。なかなかエキサイティング。

8/09/2009

Stuff

Finished making the looting system and moving on and fixing some random bugs.
Next up, monster magic skills.

戦利品システムは意外とスムーズに終わってまた小さい虫をやっつけるハメに。
次はモンスターの魔法スキルから作るかな。

8/07/2009

Looting items

Before I dive in to the big decision making that I mentioned about in the last post, I decided to make the looting system after the battle. What's a RPG without looting off the monsters? I almost forgot about the importance of this feature. It makes it fun to encounter certain enemies when you know that they loot something you want.

一つ前の投稿に書いたコアの部分のデザインを考える前に、戦利品いただきシステムを作ることにした。ひとつ:RPGの醍醐味はモンスターからレアアイテムをゲッツすることにあり。もう少しで忘れるところだった。レアアイテムを落とすモンスターとかにあえるとちょっと嬉しくなる感覚は忘れられない。

8/06/2009

Decision before proceeding

I think I fixed the battle system today.. so happy.. Now I need to decide the core game system whether the player will start from level 1 every death, or will they retain their level but get a penalty from death. I need to make this decision now otherwise I can't code for magic spells and what not.

今日戦闘システムのバグを直した。たぶん直せたはず。今のところは問題なく動いてる。めっちゃ嬉しくて今日は気分がよくなった(笑) というところで次に進むためにはゲームのコアな部分の設計をしないといけない。死んでしまうとレベル1からまた始まるのか、ペナルティをうけるだけなのか、これで全然作り勝手がかわってしまう。ゲームデザイン。。このゲームはちょこちょこやってレベル上げていく系のような気がするのでたぶんそうするかなぁ。

8/05/2009

Some thinking


Needing to plan a better system for the battle, I decided to go to the beach and just think.

戦闘システムの改良のため、海辺で作戦を練る。

8/03/2009

Xcode tips #2

I posted before that command + double clicking on a word shows the header files, but you can also do this on your own code also. It is extremely handy if you want to quickly jump to certain method you wrote just by holding down command and double clicking on it.
If you Option click on an Apple's API, it brings up the Documentation and searches it, saving you time to actually bringing up the Documentation and typing what you want to search for.

以前にコマンド+ダブルクリックでヘッダーファイルを開くというティップを紹介したけど、同じ動作を自分のコードにやると元のコードへ飛ぶ。めちゃくちゃ便利。ちなみにオプションクリックはドキュメンテーションを開いてサーチという一石二鳥なショートカット。いつもわざわざドキュメンテーション開いて検索ボックスにタイプしてたのがオプションダブルクリックでできるようになった。