mjocean / PyProcGameHD-SkeletonGame

The current HD VGA Fork of PyProcGame (w/ HW Accel) + SkeletonGame to accelerate new game development
http://pinballprogramming.com
MIT License
14 stars 8 forks source link

Enhancement: Attract layer with scrolling text. #6

Closed scottdanesi closed 7 years ago

scottdanesi commented 8 years ago

Hey Team, We should look at adding a scrolling layer to the attract mode on SG. You know, for a "Special Thanks" kind of section.

mjocean commented 8 years ago

PanningLayer (scrolls any type of layer) exists, as does the MarkupLayer (use to generate long layers of text), but not every layer type is exposed through the yaml interface. It is worth some discussion to figure out which types of layers we want to expose through that YAML interface.

To do this in code, here is an example:

    credits_frame = gen.frame_for_markup("""
#Special thanks to:#
{multimorphic-logo-color}
[Gerry Stellenberg]
[Adam Preble]
[Josh (Rosh)]
[Scott Danesi]
""")
    thanksto = dmd.PanningLayer(width=self.game.dmd.width, height=self.game.dmd.height, frame=credits_frame, origin=(0,-140), translate=(0,4), bounce=False)
    self.layer = thanksto
scottdanesi commented 8 years ago

Thanks Michael, I think there are some really cool features that we could potentially expose to the YAML interface. Let me know if you would like to get a discussion going.

mjocean commented 7 years ago

Closed. This and more were added in the most recent commit. here

Docs: http://pinballprogramming.com/display-layer-markup-language/