Thanks Dbug,
i could use macros for "getpos". "deleteObject" I never used it.
I was thinking of making a linked list, but I had to impress several complementary functions and thought I could go without it. I will try it. Engine.c wrote it before I even had a game idea.
I will test the performance of "if (objects .active)".
I have the following question: "How does malloc work here and have the slightest chance to use it?"
Regards
Ascii Moon Buggy
Re: Ascii Moon Buggy
I used dynamic memory allocation extensively when developing Pinforic. Although it was before the OSDK times, and before the switch from frasm to XA as assembler, if the library did not change, it should work ok.
Re: Ascii Moon Buggy
The lib has not changed in years, I don't use dynamic allocation on the Oric for performance reason, but the code is there, so it most probably works.
If it does not, then please make me a minimal repro-case so I can fix it
If it does not, then please make me a minimal repro-case so I can fix it
Re: Ascii Moon Buggy
Thank you both of you