Option Explicit Off
On Error Resume Next
What i have in mind with OO is more like fill for my procedural generation idea.
I can create basic template for let's say animal (think enemy) and this animal will have:
mass
attack
color
Then i can write simple loop script operating on list of random 1to10 numbers and crate 10 different animals based of function in that loop.
Then class will return me important things like if animal is big or small or heavy which then i can calculate in combat math.
Though i think for now i should practice with lists and dictionaries instead.
I currently think about what to put in GOAL2. I think i should focus on above and do simply practical game systems for my insertfuturegame project. Like magazine, backpack, basic monster and combat math. weapon generator based on materials and stuff like that. As goal3 i should connect dots and put it as a simple game. For now in python naturally.
Also i learned something about I/O but this was mainly basic .txt import export. Are thare any libaries for python that handle stuff like XML ? Naturally i could use notepad stuff but then i would need to write script that would find what is what in pure text. Importing via cells like a(1-20) would be much easier and faster as datastructure.
edit:
on a sidenote i wonder how I/O works in Dwarf Fortress as game raws are simple TXT files.
List<Animal> animals
for(i=0 to n)
{
Animal animal = RandomizeAnimal()
animals.Add(animal)
}
function animal RandomizeAnimal()
{
switch random=Random()
case 1:
animal = new Dog()
case 2:
animal = new Cat()
//etc..
animal.Randomize()
return animal
}
I could switch to C++ after Quick Basic without much problem, so no point being overly paranoid about it.
PerkelI can help you with C#. It can be a really useful language and has no real disadvantages.
C++ is even more useful, but will also be a much harder road, for a long time.
for bullet in vendor_goods_list:
if bullet == '9mm bullet' or bullet == '5.56 bullet':
count = 0
while count < 19:
vendor_goods_list.append(bullet)
count += 1
print bullet