Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picking sticks in naalaa and a few questions
#7
I have done some research with old tomes from the dark age of technology where oop was none existent.

there I found the ancient scrolls of doom written by the mighty Carmack (who allows us to also call him John).

within them, it is said that all class are structs with functions tied together by the "this".

for example:

monster.move(speed);

can become:
move(monster,speed);

and if tho cannot use structs then arrays can be used instead:

monstersx[100]
monstersy[100]
i=2
move(monsterImg,monstersx[i],monstery[i],speed)

thos object oriented programming is possible with less abstraction. even when unimplemented in a language.
our luck is that naalaa has structs as objects.

praise the omnissiah
praise the machine god
Reply


Messages In This Thread
RE: picking sticks in naalaa and a few questions - by rolen - 01-25-2019, 08:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)