Monday, April 19, 2010

Component-based or object-oriented?

Since I'm using Unity, whose scripting uses the component paradigm, my implementations use components too. However I get into this situation where a particular collection of components are similar with each other, their source code literally the same with each other save for a few key areas, those key areas giving them distinction from each other.

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

I've been more busy with Unity 3d lately. Working on features that I'll be including in the Strategy Game Test that I made.

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.
Photobucket
http://anomalousunderdog.herobo.com/Unity/FogOfWarTest.html


ProjectileTest
Here I made code for launching projectiles like grenades.
Photobucket
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.
Photobucket


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.
Photobucket
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.



Photobucket
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.





Photobucket
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.





Photobucket
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


Took me this long. His weapon's textured completely now, and I've made a looping run animation test of him.



Sunday, January 25, 2009

BLARGH in 2009

So I decided to haul my lazy ass and continue working on BLARGH Text Editor. I've successfully ported my code to the new devkitARM release 24, and libnds 1.3.1.

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.

Monday, July 21, 2008

Gunner Rifle Weapon

I finally decided on the gunner's rifle weapon. Not textured yet. He'll also have a pistol as a secondary weapon.

Sunday, July 13, 2008

BLARGH Text Editor File Save Dialog Box GUI

This is a mock-up concept of BLARGH's File Save GUI that I've made so far. It should work almost like a standard file browser program. While in the File Save GUI, the upper screen should still show the text editor, and you can still switch between other opened text files.