Monday, April 19, 2010
Component-based or object-oriented?
For example I have a base attack skill, and then I have another, similar attack skill except that it has a cooldown effect. The two are virtually the same except the latter has added code for handling cooldown effect.
In object-oriented programming, I would create a subclass of the attack skill as something like AttackSkillWithCooldown and override the member functions needed to add the cooldown effect.
In component-based programming, I would create cooldown as a separate component to be attached to the attack skill component.
So on one hand I have object-oriented programming which I'm used to and know how to implement, and on one hand I have component-based programming, which looks like more work upfront. I'm still not sure how to implement things in component-based programming but I can't help but think it may be worth it in the long run.
Monday, April 5, 2010
More Unity 3d Projects
FogOfWarTest
Here I made an implementation of fog-of-war for strategy games. It uses a mesh blanketing the terrain, whose vertex colors I set depending on if units are in range or not. Enemies appear and disappear depending on whether they're on fog or not.

http://anomalousunderdog.herobo.com/Unity/FogOfWarTest.html
ProjectileTest
Here I made code for launching projectiles like grenades.

http://anomalousunderdog.herobo.com/Unity/ProjectileTest.html
Unit Insignia
I'm planning on letting players upload whatever picture they want and use them as unit insignias; logos visible on the unit 3d models themselves when battling.

XmlTest
I made a simple XML parser which I will use to load unit properties from XML files. I did this so unit properties can be edited without requiring Unity being run.

http://www.unifycommunity.com/wiki/index.php?title=TinyXmlReader
Tuesday, December 1, 2009
Back Again
Thought I'd get back to blogging after all this time. Long story short, I've been using Unity 3d now.

http://anomalousunderdog.herobo.com/Unity/Gobs.html
A side-scrolling action game. There was supposed to be more features but I never got to finish it. The white thing in the back is supposed to be a caravan that the player is guarding while it travels. Shown here is a test level with a few enemies.

http://anomalousunderdog.herobo.com/Unity/ZombieFields.html
A zombie game, but similar to Crimsonlands. There were supposed to be several modes of play but only "Survival Mode" and a prototype "Assault Mode" was implemented. There was supposed to be leaderboards too, but it would've required a MySQL database server hosting which I don't have.

http://anomalousunderdog.herobo.com/Unity/DZZPrototype.html
A work-in-progress of a strategy game I made. Its actually a prototype I hope we could show to investors to get some funding to make it a full-fledged game. Though its doubtful because of the economic recession.
Wednesday, February 11, 2009
gunner weapon and run animation
Sunday, January 25, 2009
BLARGH in 2009
Just get the file save/load working, and its already a full-fledged text editor. And now that there's some official sample code on how to get libfat working, it'll be easier for me.
Next major features needed are some unfinished text editing features (cut, copy, paste, search), and multiple text files opened via tabs. But I want to concentrate on file save/load first.
Unicode support would require me to create all those characters from foreign languages. I'd be willing to make ones for accented english letters, but that's about it. I sure as hell won't be doing all those Chinese characters. Perhaps the Japanese Kana letters, since I'm learning them, but definitely not the Chinese Kanji.
Dictionary lookup will perhaps be the last on the list.


