Ascii Moon Buggy

Want to talks about games you like, would like to see developed on the Oric, it's here.
User avatar
rax
Flying Officer
Posts: 193
Joined: Tue Jul 24, 2018 3:16 pm

Re: Ascii Moon Buggy

Post by rax »

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 :)
User avatar
Chema
Game master
Posts: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Ascii Moon Buggy

Post by Chema »

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.
User avatar
Dbug
Site Admin
Posts: 4437
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Ascii Moon Buggy

Post by Dbug »

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 :)
User avatar
rax
Flying Officer
Posts: 193
Joined: Tue Jul 24, 2018 3:16 pm

Re: Ascii Moon Buggy

Post by rax »

Thank you both of you :)
Post Reply