
I wanted to post unit 4 but work was slowly coming along.
Right now I am working on the 3D work for the earlier sketches that I posted and I am adding new icons for the unit builder I am creating. Little by little this is turning out pretty good.
I used to program in C, C++ and Java and I remember that you always had to go an extra effort to create hash arrays! Boy were those the days and a major pain in the arse.
Now what I really love about Python is the lists and even more the dictionary data types! Man these data types are what those other languages should have by default and not monkey fuss around just getting the array to expand properly and not being concerned about constraints of a array or linked list.
compare for example:
in C to just use an array it required the data type and then a constant to initialize to structure
Ex 1:
int my_array[10]
for(int i = 0; i < 10; i++)
{
my_array[i] = i
}
in Python you just use
my_array=range(0,10)
Now to add more than 10 items to this array that required either a pointer switch or a for loop to copy the current items to the new array. Pain in the butt! Though in C++ you can create linked lists to allow this to work better
int my_new_array[11]
for(int i =0; i < 10; i++)
{
my_new_array[i] = my_array[i]
}
In python it is simply:
my_array.append(new_number)
That's just a start of the beauty of Python over C, I just enjoy the elegance of python.
So far everything is running great with the unit builder, though I am still using Blender to finish up some missing icons to the click build system I am implementing, as it stands I think it is simple yet impressive system! I will post screen shots after I get the web app more polished.
The unit builder is coming along nicely, I am implementing the different weapons for the vehicles using simple forms and image input types in HTML and using simple CSS2 rendering for showing the current build update while a unit is being contructed piece by piece. I am really enjoying the way this puzzle is coming together. Well that's enough for now, hope to get the builder aspect done in a week or two.
I figured out the issue with the string to list modify and list to string:
>>>mystring = "HELLO"
>>>mylist = list(mystring)
>>>print mylist
['H', 'E', 'L', 'L', 'O']
>>>mystring2 = "".join(mylist) <---- This was the ace in the hole!
>>>print mystring2
HELLO
Thank you .join!!!
Right now I am currently developing a unit creator for the OpenSteamPunk, using a CSS, html, apache and python. Having a load of fun but having some troubles with lists right now as I cannot easily convert a string to a list modify it and save back into a string. I will find a way hopefully I know python.org has great docs so its only a matter of time to find the answer.
Well here is a synopsis of a game idea I am currently working on:
It takes place in a Medieval fantasy world.
Steam engines and steam technology are common place.
Steam tech is combined with medieval tech to create a strange mix of weapons and machines.
Draws upon strongly from Hero's steam engine Aeolipile , DaVinci's inventions and Archimedes.
I want to start out by saying that I am not a professional blogger, but I want to share in my trials and tribulations of games I want to design and the process and software I am using to do it. As the blog title says this will be an open source site using only open source tools, from Linux for my OS, blender,gimp, inkscape for graphics, python for the programming language, and audacity for music. Well I hope this will be a great ride, at least it will be fun doing it on the way!