PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Starting new game, which version should I use?

My last game used the pre-HAL PocketFrog. Am I safe to use the HAL version now? Does HAL work on most PocketPCs? What about the VGA ones?

I will also need to check out which MS dev tools most people are now using.
Hi Conan, it's great to hear from you, that you are starting new game project! Good Luck! :wink:
The PocketFrog version with Hal should work on all PocketPC devices - none of my Arm-version betatesters said that's not working on some device.
It even work on arm oldies.
On VGA devices you should handle stylus if the device is running in true VGA(the stylus resolution would be 480*640).

Just curious what the game would be?
Is it the isometrical one? :D

P.S. I use eVC 3.0 with a standart arm compiler - the game works on all arm-based PocketPCs(since year 2000).
Re: my next game, yes it's based on an Isometric display however unlike Space Treker I'm writing for the mass market not for myself. I won't have anything to show for months and all I can say is that it will be modable (if that's a word) as I have been playing Empire Earth a lot and I'm impressed by all the add on missions done by players.
Wow It sounds like we would be competitors :lol:

!PyroManiA! is 'modeable' and isometric - and I also developed it for months(to be clear about two years up to this date).

I found that's it's better to use STL containers to store Z order and for many-many other stuff in isometric game. It's easier than in some GameDev.net's examples and do not use any additional space- and it's faster! STL have its own new allocator and many other pros.

P.S. If you'll have some iso-related ?? you can always mail me. :wink:
But keep in mind that im just a Neeewbieee :)
Don't worry, I won;t have a game out there till the middle of next year at the earliest. The design will not be anything like your game. I don't remember how I handled the Z order stuff in my last ISO game so any advice would be helpful.
I found the most flexible and the fastest way for my game is to use stlcontainer to store special RenState class that reference to surfaces and have some additional info(Y-point on screenmap Z and X points on screen map, and other info, some necessary for drawing object info). Before each render I search all the objects that should be drawn and push to this container(except ground tiles, shadows and some other floor objects - they do not need z-ordering I draw them 'on the fly'), after that I use stl::sort() for this container.
To make it work you should overload bool operator < for RenState. It sorts very fast using only < to compare.
This method is very flexible, because if I need to get backreference to the object that I draw later on(to the base class that controlls some NPC, for example) - I can get it fast. It is also flexible because the game is Isometrical but the physics can be in 3D(like in my game;)
It is also good for some additional blits, for example I added behind-the-wall-visibility to my engine in 10 minutes ;)

One of my RenState class functions and overloaded operator:

Code:
void RenState::Set(ui8 inType, ui16 inSubType,
bool inVisible, ui8 inAlpha, ui16 inPivotX, ui16
inPivotY, ui16 inPivotZ, Surface * inSurf, ui16
inSurfaceX, ui16 inSurfaceY, ui8 inSurfaceW, ui8
inSurfaceH, si8 inExtraY)
{
Type = inType;//e.g. 5==NPC or 10==fire spark
SubType = inSubType;//e.g. NPC number, or wall Tile(WallX&Y mixed in one variable)
Visible = inVisible;
Alpha = inAlpha;

PivotX = inPivotX;//X position on 'ScreenMap'
PivotY = inPivotY;//Y position on 'ScreenMap'
PivotZ = inPivotZ;//subtract from PivotY while
// blitting(tohave right z-order&3rdDimension)

Surf = inSurf;//Surface pointer
SurfaceX = inSurfaceX;//Surf rect to blit
SurfaceY = inSurfaceY;//Surf rect to blit
SurfaceW = inSurfaceW;//Surf rect to blit
SurfaceH = inSurfaceH;//Surf rect to blit
ExtraY = inExtraY;//This used in some specific cases
}

bool operator < (const RenState & inState1, const RenState & inState2)//Needed for stl::sort
{
return (inState1.PivotY < inState2.PivotY);
}