RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Aldershot →

Jingoistic flag-shagging

Subscribe to Jingoistic flag-shagging 8 posts, 4 voices

 
May 9, 2023 9:15pm
Avatar nemo (145) 2437 posts

 
May 10, 2023 11:22am
Avatar nemo (145) 2437 posts

I’ve fixed the wonky flag too.

 
May 10, 2023 12:24pm
Avatar Rick Murray (539) 12530 posts

…enough with the suspense!

You’re plotting alpha channel sprites?
You’ve specified a new “animated sprite” format that plots itself automatically?
Both of the above?

Or none of the above but it’s being done in only sixteen lines of code?

;)

 
May 11, 2023 10:58am
Avatar nemo (145) 2437 posts

This is a rebuild of David Braben’s 1987 “Union Jack” Archimedes demo.

I’ve updated it to run on modern ARMs; in a window when run from the desktop; improved some of the wonky1 code; and fixed the vexatious vexillology (so that it’s nearer to the actual Union Flag than the Georgian Naval Ensign).

I’ll release it later today when I’ve made it smaller – it’s a bit bloviated.

1 Like early Computer Concepts code, the lack of familiarity with ARM means there are weird constructions – and like CC code there’s a blindspot regarding PC-relative addressing, which is interesting. I haven’t changed the code to use MUL/MLA though, the LOG/EXP approach is interesting to keep, and the table-driven “small integer divide” also. Admin, not re-engineering.

 
May 11, 2023 11:02am
Avatar nemo (145) 2437 posts

Also, alpha channel sprites already exist.
Animated sprites are now possible via IFC (flashing colours!).
It’s currently 58K and takes a 140K wimpslot, but I can do better than that at no detectable cost.

 
May 30, 2023 5:04pm
Avatar Patrick M (2888) 115 posts

I just saw this thread. Coincidentally, this demo is a bit like something I coded recently for fun.

Here’s a video of it in action:
https://mastodon.me.uk/system/media_attachments/files/110/458/695/214/406/849/original/a89ebf2cccd9cfd1.mp4
mastodon link:
https://mastodon.me.uk/@dusthillperson/110458695597981108

Here’s the source code: https://github.com/dusthillresident/JohnsonScript/blob/master/example_programs/cementmaster.txt

Here’s a BBC BASIC version that might work, I haven’t tested it on my Pi: http://dusthillresident.ddns.net/folder/files/quickupload/ripple_quads_bbc_basic.txt

 
May 31, 2023 8:49am
Avatar Paul Sprangers (346) 402 posts

Here’s a BBC BASIC version that might work

Works on my Pi4, and reasonably fast too. Only the four sides don’t do their jellyfish-like movement and remain motionless.

 
May 31, 2023 5:09pm
Avatar Patrick M (2888) 115 posts

Thank you for trying it! I’m glad it works. That issue is because it doesn’t clear the screen before redrawing. I actually did that deliberately because I don’t know how to do double buffering on RISC OS (it always seemed extremely complicated, requiring lots of magic *fx commands) and I assumed it’d run slowly enough for the flicker to be very noticeable and unpleasant.

Reply

To post replies, please first log in.

Forums → Aldershot →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Everything with nothing particularly or remotely to do with ROOL.

Voices

  • nemo (145)
  • Rick Murray (539)
  • Patrick M (2888)
  • Paul Sprangers (346)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys