I've been gone for summer holidays and right now I'm a bit busy with moving towards my new place (we bought a house yay) but I keep programming when I can. I thought it would be fun to keep you guys informed with my progress all along, so I'll try to update this post every now and then.
The goal is to make an RTS game such as StarCraft I. Of course, without the fancy graphics, as I have no drawing skills whatsoever . Also, I'm not a team of 50 people
Just as with the arkanoid / breakout game (http://www.planetchili.net/forum/viewto ... =byteraver) I start with the tools that I need to design the game with. I want to make it as versatile an easy to use as possible, so I created an .INI file reader. I made a small ini file that describes some units and buildings to test it. Here is a portion of it:
Code: Select all
; First we define the different types of units that can be present in the game
[Soldier]
type=unit ; should be on top. Can be "Unit" or "building"
HasRadarCapability=No ; whether it can detect hidden units
CanMove=yes ; whether it can move
CanFLy=No ; whether the unit is an airplane
CanJump=No ; whether it can jump onto higher ground or from a cliff
MoveSpeed=10 ; how fast it can move
MaxHealth=100 ; its maximum health, can be more than 100
MaxShield=0 ; its maximum shield level
MaxEnergy=0 ; its maximum energy level
FiringRange=250 ; how close units have to be before unit can shoot them
AntiAirFirePower=10 ; how effective unit is against enemy aircraft
AntiGroundFirePower=5 ; how effective unit is against enemy ground units
FiringRate=15 ; how fast it shoots
NeededCargoSpace=1 ; how much it occupies if transported
CostToProduce=50 ; How much money it costs to produce this unit
CargoCapacity=0 ; how much cargo it can carry
Requires=Barracks ; building(s) required to produce the unit
[Tank]
type=unit ; should be on top. Can be "Unit" or "building"
HasRadarCapability=No ; whether it can detect hidden units
CanMove=yes ; whether it can move
CanFLy=No ; whether the unit is an airplane
CanJump=No ; whether it can jump onto higher ground or from a cliff
MoveSpeed=20 ; how fast it can move
MaxHealth=400 ; its maximum health, can be more than 100
MaxShield=400 ; its maximum shield level
MaxEnergy=0 ; its maximum energy level
(...)
Since I really loved the ease of use of the Starcraft terrain editor I decided I wanted the same kind of experience for my own terrain editor. I believe I succeeded in doing so, unfortunately I can only show a simple text-version of what a landscape would look like, as this was the fastest way to visualize the landscape on screen for debugging (the red square is a cursor ):