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
- General discussion at Rougol May meeting (News:)
- Wakefield Super Prize Draw (News:)
- Certificate error (Gen:2)
- Wakefield-in-Bradford Show 2022 takes place this month (News:1)
- AMCS free versions are live! (Gen:29)
- Archive gets a new edition and a new website (News:)
- RISC OS Developments releases their new TCP/IP stack (News:5)
- April 2022 News Summary (News:)
- March 2022 News Summary (News:2)
- Rougol April meeting report (News:)
Related articles
- Rougol April meeting report
- Rougol March meeting report -30 years of GAG News
- Rougol Feb meeting report - writing games with Terry Swanborough
- Rougol December perspective
- Rougol November talk - RISC OS Pyromaniac update
- Monday night is Rougol September talk on RISC OS distributions
- Rougol August meeting is an award-winning event
- Rougol July talk
- July Rougol meeting goes hybrid
- Rougol June Talk - RISC OS in those StrongARM days with Mike Stephens
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
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: 19
"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: 235
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: 22
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: 104
Thanks for flagging.
  ^[ Log in to reply ]
 

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