Skip to content

Commit

Permalink
Added Orions Angel Arcade Wildcard Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperspaceMadness committed Apr 20, 2023
1 parent 6ea57fb commit d42bf28
Show file tree
Hide file tree
Showing 45 changed files with 121 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#reference "_base.params"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#reference "../../../../shaders_slang/bezel/Mega_Bezel/Presets/MBZ__3__STD.slangp"

ScreenPlacementImage = forgottnwor.png
BackgroundImage = forgottnwor.png
BackgroundVertImage = forgottnwor.png
ScreenPlacementImage = $GAME$.png
BackgroundImage = $GAME$.png
BackgroundVertImage = $GAME$.png

// Scale and Position image inside the transparent area
HSM_USE_IMAGE_FOR_PLACEMENT = "1.000000"
HSM_PLACEMENT_IMAGE_USE_HORIZONTAL = "1.000000"
HSM_NON_INTEGER_SCALE_OFFSET = "90"
HSM_NON_INTEGER_SCALE_OFFSET = "87.5"

HSM_BZL_WIDTH = "180.000000"
HSM_BZL_HEIGHT = "150.000000"
HSM_BZL_WIDTH = "240.000000"
HSM_BZL_HEIGHT = "240.000000"

// Put the CRT and Bezel Under the Background
HSM_CRT_LAYER_ORDER = 0
Expand All @@ -23,4 +21,6 @@ HSM_BG_SOURCE_MATTE_TYPE = 1
HSM_BG_BLEND_MODE = 1

HSM_SCREEN_POSITION_X = 0
HSM_SCREEN_POSITION_Y = 0
HSM_SCREEN_POSITION_Y = 0

HSM_FRM_OPACITY = "0.000000"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#reference "$GAME$.params"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Presets/OrionsAngel_Arcade/CORE-ASPECT-ORIENT-HORZ/narc.params
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#reference "_base.params"

HSM_NON_INTEGER_SCALE_OFFSET = "92.699921"
HSM_SCREEN_POSITION_Y = "-4.000000"
HSM_BZL_WIDTH = "542.000000"
HSM_BZL_HEIGHT = "212.000000"
HSM_BZL_OUTER_POSITION_Y = "-1.000000"
HSM_REFLECT_CORNER_OUTER_SPREAD = "1000.000000"
HSM_REFLECT_CORNER_ROTATION_OFFSET_TOP = "4.000000"
HSM_REFLECT_CORNER_ROTATION_OFFSET_BOTTOM = "-8.000000"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions Presets/OrionsAngel_Arcade/CORE-ASPECT-ORIENT-HORZ/vr.params
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#reference "_base.params"

HSM_NON_INTEGER_SCALE_OFFSET = "94.099899"
HSM_SCREEN_POSITION_Y = "-41.000000"
HSM_CRT_CURVATURE_SCALE = "0.000000"
HSM_BZL_WIDTH = "756.000000"
HSM_BZL_HEIGHT = "350.000000"
HSM_BZL_INNER_EDGE_THICKNESS = "160.000000"
HSM_BZL_OUTER_POSITION_Y = "39.000000"
HSM_REFLECT_CORNER_OUTER_SPREAD = "1000.000000"
HSM_REFLECT_CORNER_ROTATION_OFFSET_TOP = "5.500000"
HSM_REFLECT_CORNER_ROTATION_OFFSET_BOTTOM = "4.000000"
HSM_REFLECT_CORNER_SPREAD_FALLOFF = "46.000000"
HSM_REFLECT_RADIAL_FADE_WIDTH = "64.000000"
HSM_REFLECT_NOISE_SAMPLE_DISTANCE = "300.000000"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#reference "_base.params"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions Presets/OrionsAngel_Arcade/CORE-ASPECT-ORIENT-VERT/_base.params
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ScreenPlacementImage = $GAME$.png
BackgroundImage = $GAME$.png
BackgroundVertImage = $GAME$.png

// Scale and Position image inside the transparent area
HSM_USE_IMAGE_FOR_PLACEMENT = "1.000000"
HSM_PLACEMENT_IMAGE_USE_HORIZONTAL = "1.000000"
HSM_NON_INTEGER_SCALE_OFFSET = "93"

HSM_BZL_WIDTH = "200.000000"
HSM_BZL_HEIGHT = "200.000000"

// Put the CRT and Bezel Under the Background
HSM_CRT_LAYER_ORDER = 0

// Put Background above CRT
HSM_BG_LAYER_ORDER = 1

// Matte with white
HSM_BG_SOURCE_MATTE_TYPE = 1
HSM_BG_BLEND_MODE = 1

HSM_SCREEN_POSITION_X = 0
HSM_SCREEN_POSITION_Y = 0

HSM_FRM_OPACITY = "0.000000"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#reference "$GAME$.params"
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Presets/OrionsAngel_Arcade/Multigame.slangp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#reference "../../../../shaders_slang/bezel/Mega_Bezel/Presets/MBZ__3__STD.slangp"

#reference "$CORE-ASPECT-ORIENT$/_connector.params"
54 changes: 54 additions & 0 deletions Presets/OrionsAngel_Arcade/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@


**Multigame background example**

---

This example shows how you can use one preset to load the right background images for many different games automatically. It is set up to automatically have the game image/crt image scaled and placed properly inside the hole cut into these background images.

---
---

Credit for all the very great arcade background images in this example go to Orions Angel.

Thanks for your wonderful work Orions Angel!

---
---
**How to Try the Example**

The folder arcade_game_images has images for testing this example set.

If you load one of these images in Retroarch and then load the Multigame.slangp the matching background or slangp will be loaded if it's there, if there is no matching background you will get the default background. The images starting with _no_bg_exists do not have matching backgrounds, so if you open these you will get the default bezel image.



-------------------
**Per Game Adjustments**

If you want to make some additional adjustments for a particular game, here is the procedure:

* Load your game/image with the name of the game
* Load the Multigame.slangp
* Make Parameter adjustments
* Go to the Save page
* Make sure Simple Presets is turned ON
* Save a game preset
* Go to the Retroarch/config folder for the core you were running
* Take the file that it saved, e.g. galaga.slangp
* Move this file to the folder with the background images
* Change the extension of the file to .params
* Open the file in a text editor, I recommend VS Code
Change the path of the reference line to: "_base.params"

Reload Multigame.slangp, it should now load up with your adjustments

-------
**Explanation of how the wildcards work in this example**

* `Multigame.slangp` has a reference to a base preset which gives the look of the crt game * image
* `Multigame.slangp` also has a reference to `$CORE-ASPECT-ORIENT$/_connector.params` this will cause it to choose the _connector.params for the correct aspect ratio of the core image, e.g. horizontal or vertical
* `_connector.params` has a reference to `$GAME$.params`
* When the preset loads if a preset named by the game name is not found then `$GAME$.* params` will be used
* The `$GAME$.params` file has a reference to `_base.params` which has all the basic * parameters and texture paths
* The texture paths inside `_base.params` are all set to `$GAME$.png` if an image named the same as your game exists that will be used, if not the `$GAME$.png` image will be used instead
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 0 additions & 37 deletions Presets/OrionsAngel_Arcade/arkanoid__STD.slangp

This file was deleted.

0 comments on commit d42bf28

Please sign in to comment.