Dead Hackers Society
Other BBSes »

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
Re: New game for the Falcon
Posted by: joska Dec,12.2020-17:23 

Thank you :)

Yes, it was a lot of work. At first it looked like a relatively easy job - "just" replace the SDL calls with Falcon-specific graphics/sound/keyboard code. But I messed up. I should have analysed the code properly before starting the conversion. If I had, I would either have dropped this project or based it on the Sega Megadrive code instead.

The original code basically composed the entire screen from 8x8 tiles and sprites every frame, which you just can't do on a stock Falcon. On top of that the game logic was very CPU intensive, with lots of nested looping for each frame. Collision detection and edge detection in particular was very inefficient and would often exceed 100% CPU usage per frame alone on some screens. I ended up writing everything from scratch rather than patching the original code. I had already written most of the code (graphics routines, keyboard/joystick/jagpag, sound effects/music code, all the "cut scenes" and much of the game logic) from scratch so ditching the last bits of the original code was not a hard decision. But I wish I had done this much sooner, it would have resulted in much better code and allowed me to improve the visuals.

Again, if anybody wants to look into an STE-port then take a look at the Megadrive-version. The code is much more efficient and better structured than the SDL-version.

[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
New game for the Falcon joska Dec,09.2020-19:36
  Re: New game for the Falcon s_t_s Dec,10.2020-09:23
    Re: New game for the Falcon joska Dec,10.2020-12:32
      Re: New game for the Falcon ggn Dec,11.2020-22:36
        Re: New game for the Falcon joska Dec,12.2020-17:23
    Re: New game for the Falcon lotek style/.tSCc.^YMR^De Dec,10.2020-19:33
      Re: New game for the Falcon joska Dec,12.2020-19:21

Reply to this message
Anti-troll code:


What's the anti-troll code?
That's your personal code to be able to add comments and messages on the site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson