Game Morphing

Everything to do with our favourite pastime! Reviews, recommendations, sells/swaps, problems etc. Whether they are on the latest consoles, arcade or retro classics. It's not the winning or losing, we came to play!
Post Reply
User avatar
zbandito
Baaaaaa!
Baaaaaa!
Posts: 2916
Joined: Sat May 18, 2002 10:00 pm 0
Location: Portland, Oregon
Contact:

Game Morphing

Post by zbandito »

Lots of games share similarities, and of course have differences. What if there was an emulator that allowed game morphing? It could be feasible and interesting. Simple examples would be different skins. Harkening back to the simple palette swap, changing out graphics can be done with relative ease. I believe the Joust port for X360 had a 'retro 2000' type mode where a different graphics engine was layered on top of game logic that used the original arcade ROM. Fast forward to Mario Maker, where the differing SMB2 type game play is omitted, but courses can be shown with totally different rendering styles. And control and playstyles can be changed between SMB1 SMB3 SMW and NSMB, but what if you could get arbitrary values for control, in between the 4 choices? That might not provide a huge change in actual gameplay, where the different inputs and logic are already pretty similar, but it illustrates the concept.

So this theoretical emulator wouldn't really morph Mario Kart into NBA Hoops; you'd use it to morph between different overhead or side shooters, between different platformers perhaps, but within the same genre; where effort from coders more skilled than I, or perhaps machine learning, could be used to map the relative inputs, logic, graphics, and sound into malleable groups and then allow a blending between corresponding sets.

e.g. Morph Xevious and Star Force. Or morph between 1943 and Raiden; general direction inputs correspond, fire buttons can be mapped, rate of fire could be reprogrammed arbitrarily between the 1943 value and the Raiden value. Traditional 2d graphics morphing techniques can create automated blend shapes to deform alpha layers and blend pixel RGB values, sometimes producing junky graphics, perhaps sometimes producing interesting blends that could be saved as a '78% a:b Morph' and then shared & discussed online. Maybe you could take your morph of 1943 and Raiden as some sort of output, and then morph that with Truxton. etc.

Lots of shooters are all about 8-way input, fire, smart bomb, all easily mapped.. obviously there is no real direct way to morph between a title without, say, weapon selection (Gradius and Thunderforce) and those who implement weapon selection differently (Transbot) or don't have the feature (Super Cobra). Still, despite that consideration, it seems feasible to abstract everything out and make something of a 'construction kit' where you can enable or disable those features and apply arbitrary morph values or insert your own tilesets, etc.

Audio effects, similarly, could find corresponding maps and then layer and blend the existing effects by prerendering audio to wav and processing, then calling the processed file in place of rending the effect in realtime. Another option would be to emulate both sound systems simultaneous under something akin to an emulation 'hypervisor' that manages all of the mappings, inputs, rendering and output, and allows simultaneously running completely different emulated hardware to produce independently mapped and morphed output. General maps here include things like the sound of the players ship firing, taking damage, dying. At least one enemy type. Maybe a way to recognize bosses.

Logic values such as ship speed could be varied, damage rates etc. Lots of interesting possibilities for mashups and tunings.

Hop and bop games seem a little more complicated but not without feasibility... Mario playtype controls in an accurately rendered Sonic world? Sonic running at full speed through accurately rendered SMB worlds? Rendering either game in whatever sort of system desired; SMB on MegaDrive, Sonic on NES? What is a graphical morph halfway between a hedgehog and a plumber; a smurf? They had their own platform games, too! :lol:

Maybe not feasible for puzzle games, limited use for complex RPGs (or that I can't imagine), certainly can't accommodate every game and hardware ever... and a ton of work. I realize it is much easier to imagine than to code. But I think it seems like a fun idea. Skins and sound packs aren't really new, so the real magic here would be in translating the game logic into an abstraction that can be mapped into corresponding code and algorithms.

:skip:
User avatar
Darkflame
Sheepie Whore
Sheepie Whore
Posts: 18236
Joined: Mon Mar 31, 2003 11:06 am 0
Location: Not the UK

Re: Game Morphing

Post by Darkflame »

Interesting.
I think most games could be divided more or less into;
- rules
- balance
- skin
- data
Rules is fairly immutable, but the rest seems interchangeable. By "balance" I merely mean any fixed quantity's or relationships that come into play; Number of lives. Score for doing something. How high you can jump etc.
Data would be for example, the level layout, or the formula determining how the aliens attack waves look.

Given that a lot of games have only a very (very) weak connection between rules ("what you do") and narrative/theme ("what it means"), theres probably scope for quite drastic changes.
You could have a "generic" management game, give it one skin it turns into a football manager. Another and your running a inter-planet delivery service.

These wont be good games necessarily, but probably competent enough.

--

Vaguely related, but I did read about a "falling block" game that attempted to be able to encompass the rulesets of all the other falling block games.
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Game Morphing

Post by gumboot »

I once spent a lot of time thinking about how to devise a block-pushing game rule set that would allow implementation of any of the block pushers I could name and allow creative bad programmers to devise their own such games easily.

Never went anywhere with it.


The other day I was thinking that instead of difficulty level being defined by speed of play or number of baddies, it might be defined by crappiness of player's ship. As well as just slower and/or heavier (or ridiculously light and to fast), things like intermittent failures or missing thrusters so you can only rotate one way.

But that's not so related.
User avatar
toxibunny
Baaaaaaa!
Baaaaaaa!
Posts: 5906
Joined: Thu Jun 17, 2004 11:59 pm 0
Location: limb clock land

Re: Game Morphing

Post by toxibunny »

Affordable Space Adventures has you piloting a crappy spaceship.
I made a deviantart page.
'....The baron is a gay old rogue with an eye for the ladies....'
User avatar
zbandito
Baaaaaa!
Baaaaaa!
Posts: 2916
Joined: Sat May 18, 2002 10:00 pm 0
Location: Portland, Oregon
Contact:

Re: Game Morphing

Post by zbandito »

Yeah, puzzle games would skin easily enough but gameplay itself is very rules based and would be difficult to conceive morphing successfully. It's easy to imagine a nice fully built emulator / sandbox design environment, but I guess the place to start would just be picking two similar games running on the same hardware and start there. The NES is pretty limited in hardware capability, but it is perhaps the best emulated and understood hardware. Starforce and Xevious are so close that people already have trouble distinguishing between the two, so a morph would show minimal changes. What are the best hardware and software candidates?

Once the morph emulation code was there, it might be fun to eventually add in a feature that takes a page from the book of synthesizers: LFO's. Each morph target could be assigned an independant morph value, or morph all targets (the entire games), and morph continuously in realtime as directed by an assigned LFO. This would be feasible graphically, although assigning an LFO to bullet speed might do weird things. Perhaps wonderful things. :wink:

Low Frequency Oscillators typically run at human detectable rates (e.g. >20hz), although running faster rates can certainly be useful in synthesis where the LFO then produces a 'continuous' tone, as perceived by human senses. I don't really see any use for modulating graphics at that high a rate, compared to just picking a static morph value, but who knows.

Once rulesets & logic are defined & abstracted, a set of graphical flourishes could be defined and applied. For example, adding tracers behind the players ship might be outside the capabilities of the emulated NES hardware, but the emulation hypervisor in this software could then add additional rendered effects into the final image. In a simplistic implementation these effects could just layered on top of the rendered image from the emulation, but it would also be possible to inject additional graphics at appropriate layers within the rendered image, so that the final image composites correctly with regard to foreground and background layers. This would allow fancy things like pixel shatter effects when the game logic shows the player or an enemy dying, bullet tracers, motion blur, alpha effects, etc. Screw accurate emulation, let's bend things!

:mrgreen:
User avatar
zbandito
Baaaaaa!
Baaaaaa!
Posts: 2916
Joined: Sat May 18, 2002 10:00 pm 0
Location: Portland, Oregon
Contact:

Re: Game Morphing

Post by zbandito »

Also, determining corresponding logic and data sets for large numbers of games would become rather tedious for humans. Maybe not so bad as a crowd sourced kind of effort, but perhaps someone with more debugging experience can comment on the feasibility of using machine learning to sus out relationships between different game logic codebases..?

Just having an emulator play itself and log all values that change during gameplay might be helpful, even without the ML understanding which values correspond across games.
User avatar
merman
Sheepie Whore
Sheepie Whore
Posts: 10943
Joined: Wed Feb 16, 2005 1:44 pm 0
XBL Gamertag: merman1974
Yahoo Messenger: andrewrfisher
Location: Skegness, England
Contact:

Re: Game Morphing

Post by merman »

zbandito, did you ever play ROM Check Fail?
Twitter, Xbox, Wii U and Steam - merman1974
ZZAP is back - https://www.patreon.com/zzapmagazine
User avatar
zbandito
Baaaaaa!
Baaaaaa!
Posts: 2916
Joined: Sat May 18, 2002 10:00 pm 0
Location: Portland, Oregon
Contact:

Re: Game Morphing

Post by zbandito »

Haha, I had not. I wonder if it emulates a NES underneath? Apparently the source is in Python.
Post Reply