Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr2256 :: Modular Game Scaling

how I allowed more display resolutions in a modular game design

<< First, < Previous, , Latest >>

Thumbnail of Eric Duhamel
Hosted by Eric Duhamel on Monday, 2017-03-27 is flagged as Clean and is released under a CC-BY-SA license.
video games, programming, object-oriented, game development, design patterns. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr2256

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:04:37

general.

NOTE: the audio didn't cut together as smoothly as I remember from the first time, probably because I forgot to record at 44.1 KHz

In this episode I explain in broad terms how I programmed a game system to adjust its display resolution using three distinct modules operating individually and in concert.

  • The "metagame" (launcher) module accepts an argument describing the size of the window available for display
  • The "gameplay" module is informed of the space available as a 'window' into the game world and uses it for one thing or another
  • The "graphics" module opens a window at the specified size and modifies the graphical assets if needed

Once again I recorded in parts using a program called Urecord on my pocket computer (mobile phone).

I program using Pygame, post on a GNU Social account, maintain a personal website at NoxBanners.NET, and study programming techniques at Refactoring.com, style at Python.org, and sometimes patterns at Portland Pattern Repository


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?