Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 2.17 KB

polygons-of-another-world-realtime.md

File metadata and controls

43 lines (36 loc) · 2.17 KB
talk_id talk_slug talk_type talk_tags session_slug sched_url talk_title talk_title_short talk_materials_url speakers
22135
polygons-of-another-world-realtime
regular
recreational
tool
visualisation
delightful-uses
The Polygons of Another World - realtime interactive rendering in R
The Polygons of Another World - realtime interactive rendering in R
name affiliation url username photo bio
Mike Cheng
mike_cheng
/assets/img/2022Conf/_talks/22135_mike-cheng.png
I code in R in pharma for living. I enjoy exploring the limits of R.

In this talk I want to explore R's capabilities for fast, interactive graphical applications. This exploration is driven by my ongoing port of the 1991 action adventure game "Another World", but these capabilities also open up possibilities for new visualisations and applications in R.

The porting of this game is a 'moonshot' project as I try to discover the techniques and tools needed for fast (>20fps) interactive (keyboard + mouse) rendering to R graphics devices. A further constraint is that I want all this to be done in plain R - avoiding any C or javascript as much as possible.

I will discuss three of the key challenges faced: graphics device speed, fast double-buffered rendering and event-driven programming for interactivity.

I will showcase the capability of R to render 5000 moving sprites using the nara package, an interactive drum machine with the eventloop package, and my progress with the 'Another World' game engine with animation, keyboard control and synchronised sound.