Page 1 of 1

Single Class Game Framework :)

Posted: Sun Jun 18, 2006 8:31 pm
by mohaps
Hi all,


just to see how much i could push my bad coding habits.. i tried to write a game using just one class... :) just for the heck of it...

this is how far i got...
Click on the Screenshots For hires verisions
Image
Image
Image


the "game" has everything but shootable baddies... it supports

a) sound and music through audiere
b) fps walk around and collision detection
c) flexible entity placement.. as you can see the health / armor power ups
d) single shot weapon with muzzzle flash
e) basic inventory
f) a hud console which scrolls up => latest message appears at the bottom and older messages scroll up
g) graphic hud meters for health/armor/ammo
h) random spawn points
i) item pick up and dropping
j) integrated editor to layout entities in a map by key presses.

i used the media that ships with the cube engine 2 to quickly put together something...

the map is a CShop4 map that i made in like five minutes using some free textures available on the net...


regards
mohaps

Posted: Sun Jun 18, 2006 10:00 pm
by SkaCahToa
ONE CLASS? wow.
are you planing on submiting the code? I really want to know how all that could be done with only one class.

Posted: Mon Jun 19, 2006 4:03 am
by zeno60
Looks neat, I like the health drop features. I would also love to see the code/demo.