From: Anthony C. <ant...@ho...> - 2006-08-25 11:27:57
|
Hey, I have checked-in a brief skeleton rewrite of the code I worked on for a couple of days, Basically just trying out a few ideas of how to define everything outside of code, so I added an xml library and defined the terrain textures using it. Also I wrote up a class for holding graphic sets.. or sets of images. I want to encapsulate the way the frames of say the quad are stored and you can just request one paricular angle and optain that frame. This way, later when the data is obtained directly from the data files, the interface will remain the same. The way the texture definition works allows the code to smooth the terrain programatically, rather than doing the dodgy hard coded case based methods. OpenGL now works too, check it out.. I want to split it out into a seperate library. There would be one for software rendering too, which probly doesn't work at the moment not sure. I want all the units/structures/bullets defined in a defination file, they only really needs to be a few unit classes to handle them this way, and then we could use a scripting language to handle their behaviours in a definition file somehow. I did all this code before checking out the branch! oh well, Ill check it out soon, but anyways I think this code structure is far better than whats in the trunk, Im sure we can incorporate all the good sections of code into one branch. I placed this code in a new folder because it is a big change from the current trunk, completely unrelated files. Please check out the code, i have included an exe there too so you won't need to compile it using vc++, which is the only thing I have going for the moment. Let me know what you think about it, please feel free to rip it to shreds with constructive criticism. Grab a data folder from a working trunk version, and throw in the terrain folder from the new branch and the exe should work. Cheers Anthony Tony _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail |