log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Announcing the TIB 2024 Advent Calendar (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
- RISC OS London Show Report 2024 (News:1)
- RISC OS London Show 2024 - pictures (News:2)
Related articles
- Rougol November 2024 meeting on monday
- WROCC November 2024 talk on wednesday - Andrew Rawnsley (ROD)
- Rougol October 2024 meeting on monday
- WROCC October 2024 meeting - Andy Marks and RISCOSbits
- WROCC October 2024 talk on wednesday - RISCOSbits
- Rougol September 2024 meeting on monday
- WROCC September 2024 talk on wednesday - Amcog
- Rougol August 2024 meeting on monday
- WROCC August 2024 meeting - Paul Reuvers (XAT)
- Rougol Talk July 2024 - Nathan Atkinson
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: News and features: Rougol January Talk - Recoding the Classics with Jeroen Vermeulen
 

Rougol January Talk - Recoding the Classics with Jeroen Vermeulen

Posted by Mark Stephens on 21:55, 17/1/2022 |
 
Rougol kicked off 2022 with its first talk of the year. As usual, the talk was both in-person and online. Most attendees were on Zoom. The talk was also recorded and should be available soon.

Jeroen has taken the Raspberry Pi book 'Coding the Classes' and adapted the five games to run on RISC OS. The book was released by the Raspberry Pi organisation and features 5 classic games from the 1970s/1980s written in Python and using PyGame and PyGame Zero. It includes code listings as well as interviews and background material on games development.
 
Jeroen decided to port them to RISC OS to learn about games development and also Python and Pygame. Python is now running on RISC OS thanks to Chris Johns.
 
Porting these games provided a nice fixed scope project without the need to also create new sound, music and gameplay. Jeroen has made all his conversions freely available on RISC OS.
 
Python 3 is the latest version of Python. It is object-orientated and encourages nice, modular coding. It comes with lots of libraries to extend its capabilities. One if these is Game - a set of modules for writing 2D games.It provides a layer on top of SDL which is highly portable.
 
PyGame Zero is a beginner friendly wrapper around PyGame to make it even easier to use. It simplifies coding.
 
The first games conversions of Infinite Burner and Cavern in 2020 were down with BBC Basic and The AMCOG Development Kit. This has been written up in an Article in Archive 25:5 edition. The ports were done using PyCharm IDE, Audacity and GraphicsGale on Windows and StrongEd, SampleEd and ChangeFSI/Paint on RISC OS. BBC Basic origin commands are very useful for adapting the screen co-ordinates and port to match PyGame Graphics layout and top left origin.
 
For the conversion, the games were broken into stages (background, Player and collisions, Objects and enemies). Similar functions and variables makes it easier to convert Python to BBC Basic. RDSP provided sound support.
 
The other 3 games were done in Python in 2021. Very straight-forward to get them running on RISC OS as Python. Started with Boing! first as simplest.
 
Python is installed from !PackMan which also includes the PyGame packages.
 
Note, Iris and Python 3 do not run well together at the moment. LanManFS can slowdown PyGame programs.
 
Conversion was done in small steps and PyGame Zero code had to be replaced as does not run on RISC OS. Games run in full screen as potential problems in testing with pinning a Window which is then resized. There were lots of tips on optimising image loading in Python, RISC OS file paths and making Python code run on RISC OS.
 
As usual the talk ended with any questions.
 
There were some nice video clips to show off all the games, and of course you can play them for yourself on RISC OS (downloads on !Store).
 
It was a very interesting talk and Eben mentioned that there would be a Book2 for Jeroen to have a crack at coming soon!
 
Read our interview with Jeroen
 
Rougol Website
 
  Rougol January Talk - Recoding the Classics with Jeroen Vermeulen
  riscosbits (11:18 18/1/2022)
  helpful (16:48 19/1/2022)
    Kevsoft (18:17 19/1/2022)
    markee174 (20:07 19/1/2022)
 
RISCOS Bits Message #125272, posted by riscosbits at 11:18, 18/1/2022
Member
Posts: 31
"It was a very interesting talk and Eben mentioned that there would be a Book2 for Jeroen to have a crack at coming soon!"

I'm reading that as "Eben was at the meeting" - is that right? That would be a bit of a coup?
  ^[ Log in to reply ]
 
Bryan Hogan Message #125273, posted by helpful at 16:48, 19/1/2022, in reply to message #125272
Member
Posts: 254
Yes, Eben was there big smile The power of ROUGOL!

(Mark, this article needs a thorough proof read and editing - Pyjama rather than Pygame, curse instead of course!)
  ^[ Log in to reply ]
 
Kevin Wells Message #125274, posted by Kevsoft at 18:17, 19/1/2022, in reply to message #125273
Member
Posts: 47
Yes, Eben was there smile The power of ROUGOL!

(Mark, this article needs a thorough proof read and editing - Pyjama rather than Pygame, curse instead of course!)
I wonder it that is down to spelling corection taking place.
  ^[ Log in to reply ]
 
Mark Stephens Message #125275, posted by markee174 at 20:07, 19/1/2022, in reply to message #125273
Does all the
work around here

Posts: 154
Thanks for flagging.
  ^[ Log in to reply ]
 

The Icon Bar: News and features: Rougol January Talk - Recoding the Classics with Jeroen Vermeulen