-
hello...people
Right now i'm writing a simple strategy game about mech. but i'm having a problem for environtment detecting. I want to make the mech I'm controlling be able to be aware of the object around it wether it's a tree, a wall, or an enemy mech. I don't have the slightest idea for the syntax nor the algorithm for it, anybody can help me with this problem ??
PS : do you know the syntax in VB6 wich stands for the syntax GET in QBasic ??
-
If the game universe is not 3 dimesional (no flying or
jumping), i would use a simple 2D array and fill it with
vamues that say "i'm a tree", or "i'm a bad guy".
Another point. Dont use the term "Mech". That word is
owned by FASA (Microsoft, now?). Use "Mecha", or
"Giant Robot Thing".
Z.
-
They can't own a word! Mech is simply a short form for mechanized. :rolleyes: Ah well, if they want to file a lawsuit against us :D then use mechanized infantry in a short form for your game title or something:
--M.I.W--
Mechanized Infantry Wars
-
When your character moves to a new spot on the map, you could check the item beside you by checking the byte that follows yours or is behind your in your byte array.
Code:
Const OBJECT_TREE = &H2
If Map(Mychar.X - 1, Mychar.Y) = OBJECT_TREE Then MsgBox "There is a Tree beside you"
-
No, really. FASA (Microsoft?) owns the words BattleMech, and Mech, and any other words that relate to BattleTech (and Im pretty sure theyd sue, if you tried to make money =).
Z.