I worked on it over the weekend and added a couple of new features as well as ongoing changes to the command queue system and other bits.
First I added rotation, so that units must face the direction of travel before moving and so turrets face their targets before firing. I’m representing a rotation with a single byte right now, with 0 up, 64 right, 128 down and 192 left. This seems to give me enough accuracy and should do for now. This is now worked into the moving code and works fine. Units can have different turning speeds etc.
Lastly I added resources to the map. I see two choices for how to do this. First have a resource level per cell. This is just a number for each cell on the map. The second option is to define each cell that has a resource with a level and x/y co-ordinate. To fill every cell on a map this takes much more memory, but with the amount of resources on a map I’d expect it would take less. I’ve gone for the first option but I’m not sure yet if it was the best one. Still the difference in memory requirement is small but I know things will get tight!
Welcome to the DCEmu Homebrew and Gaming Network. This Network of sites is owned and ran by fans of all games consoles, we post news on all the consoles we cover about hardware aspects, gaming and Homebrew. Homebrew and Emulation are software thats made using free and legal tools to play on games consoles. This Network is the only worldwide network of sites where coders can upload and post comments they deserve for all their hardwork. We have a Network that currently supports PSVita, WiiU, Nintendo Wii, Xbox360, PS3, PS2,PS1, Snes, N64, Gameboy, Nes, Xbox, Gamecube, Nintendo DS, PSP, GBA, Dreamcast, Sega Saturn,3DS, DSi, Switch, PS4, Pandora, xboxone, GP2X, iPhone, Windows Phone, iPad, Android and also Mobile Phone Emulation. When new consoles appear we will expand to cover those consoles. We also cover Theme Park News and news and reviews of Beer, cider, lager, wines and spirits.
news of their own releases and get the credit and
Please help DCEmu become stronger by posting on the forums every day and make our community larger.