Ascii Moon Buggy

Want to talks about games you like, would like to see developed on the Oric, it's here.
trrerr
1st Star Corporal
Posts: 9
Joined: Tue Jul 24, 2018 3:16 pm

Re: Ascii Moon Buggy

Post by trrerr » Mon Oct 08, 2018 9:34 pm

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: 2296
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Ascii Moon Buggy

Post by Chema » Mon Oct 08, 2018 10:04 pm

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: 2722
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Ascii Moon Buggy

Post by Dbug » Tue Oct 09, 2018 7:23 am

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 :)

trrerr
1st Star Corporal
Posts: 9
Joined: Tue Jul 24, 2018 3:16 pm

Re: Ascii Moon Buggy

Post by trrerr » Thu Oct 11, 2018 9:23 pm

Thank you both of you :)

Post Reply