TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 8 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]


Tutorial: Smile Game Builder and Unity Hackin' - VARIABLES

Welcome to another Smile Game Builder tutorial, showcasing some of the features and tricks I've found and worked on while developing "The Ocean Will Have Us All." In this tutorial I'm going to show you how to get at the variables in a game exported from Smile Game Builder to Unity. Step 1. We'll create a new project.
Step 2. Put in a new "advanced event." Change the graphic to a character so we can see them.
Step 3. Let's set this event up to put a message in a string variable that we'll output in Unity and display another variable with a message from Unity. Put in a "Change String Variable Box" event. Set it to variable number 254 and rename it to "MessageToUnity". Also rename string variable 255 to "MessageFromUnity".
Set it to "Substitute String" with "Hello Unity!" Then create a "Display Message" event: "\$[MessageFromUnity]"
Step 4. Playtest the game. Talk to the character, a blank message box appears.
Step 5. Export the game to Unity.
Step 6. Open the exported project in Unity. Open it from the "entry.unity" file. Step 7. Let's create a script for our unity hackin'. We'll call it "MyUnityHacks" Create a gameobject and add the script.
Step 8. Open up "MyUnityHacks.cs" We'll add some static variables (hackin'!) that we'll copy our variables to from within the Smile Game Builder code (more hackin'). Add these lines to the class: public static string MessageFromUnity; public static string MessageToUnity; In void Start() add MessageFromUnity = "Hello Smile Game Builder!" in void Update() add if(MessageToUnity != null) { Debug.Log(MessageToUnity); }
Step 9. Open up "Assets\src\engine\ScriptRunner.cs"
Step 10. Look for "internal bool Update()" and add these lines MyUnityHacks.MessageToUnity = owner.owner.data.system.StrVariables[254]; owner.owner.data.system.StrVariables[255]= MyUnityHacks.MessageFromUnity;
Now every frame MessageToUnity in MyUnityHacks will be updated with whatever is in string variable 254 [MessageToUnity] in your SGB game. And every frame string variable 255 [MessageFromUnity] will be updated with whatever you've put in MessageFromUnity in the MyUnityHacks script. All the integer variables from your game are stored in the array owner.owner.data.system.Variables[] All the event switches are in owner.owner.data.system.Switches[] Step 11. Run the project in Unity. Talk to the character. This time the message box should say "Hello Smile Game Builder!" In the console in Unity you'll see the "Hello Unity!" message (repeated every frame.)
Step 12. Use your imagination! Extend your games in new and exciting ways in Unity! Do amazing things!


[ 2021-08-13 05:51:41 CET ] [ Original post ]


Tutorial: Create a Mini Map in Smile Game Builder

Hi, I'm going to do a few tutorials in Smile Game Builder showing some of the tricks I've used in The Ocean Will Have Us All. If you have trouble seeing any of the images try right clicking and selecting "open image in new tab." First up, here's how to make a simple mini map in SGB. Step 1.
Load up the map you want to create a mini map for. Oh look, we already have a little map there. That's handy. Let's use that. Take a screenshot and crop it down to just the minimap.
Step 2. Resize your cropped image to match the size of your map. We want it at the scale of 1 block: 1 pixel. So the map I'm using here is 11 by 20 blocks (you can find this in the map settings) so I resize the image to 11x20 pixels. Make sure to use "nearest neighbour" resizing. The image is very small. We could zoom the image in SGB, however it will use a blurry bicubic resizing algorithm. I prefer sharp, clear pixels so let's resize it in our image editing software. I've resized this one by 400%. Make sure to use "nearest neighbour."
I've then also converted it to greyscale (optional.) Save your map image to a folder. Step 3. Create a one colour dot image. If you've resized your image to 400% create a 4x4 pixel image. Save this into your folder with the map. Step 4. Import the images into SGB.
Add assets > Game images > Images. Click "Add." Step 5.
Create an "advanced event" on an empty block on your map.
Set the event to "Automatically Start (Synchronize and Repeated.) Add a wait event, 0.1 seconds. Step 6. Add a "Display Image" event. Choose your map image, press "Select..." and drag the image to your desired location on the screen.
Step 7. We now need to calculate where we will display the player dot on the screen. Add an "Advanced Variable Box Op" event. We want to use a new variable and name it "PlayerX." Assign "Player Position", "X Coordinate." Add another "Advanced Variable Box Op" event. This time use a new variable named "PlayerY" and assign "Player Position", "Y Coordinate."
Step 8. As I've resized my map by 400% we will need to multiply our coordinates by 4 times each.
Create two "Variable Box" events for the PlayerX and PlayerY variables to multiplay them each by 4 times. Step 9. Create a "Variable Box" event. Look at the X coordinate you've used on the "Display Image" event for the map. Use that number and add it to the "PlayerX" variable. Create another "Variable Box" event. This time add the value of the Y coordinate for the map image to the "PlayerY" variable.
Step 10. And finally we display our player dot.
Add another "Display Image" event. Make sure to assign a different "Image display number." Select the "Assign by Variable Box" radio button. Set X to the "PlayerX" variable. Set Y to the "PlayerY" variable.
Step 11. Test the game. You should have a minimap on the screen showing the players current position. Yay. Wow. Nice.


[ 2021-08-09 05:23:36 CET ] [ Original post ]



The Ocean Will Have Us All
Moloch Media
  • Developer

  • Moloch Media
  • Publisher

  • in the future
  • Release

  • Singleplayer
  • Tags

  • Game News Posts 2  
    🎹🖱️Keyboard + Mouse
    🎮 Full Controller Support
  • Controls

  • No user reviews

    (0 reviews)


  • Review Score

  • https://store.steampowered.com/app/1375820 
  • Steam Store

  • The Ocean Will Have Us All is a first person exploration game.

    Experience a day in the subatomic life of Moira Leech. Get up, go to work, go home, go back to sleep.
    Or.
    Go off the the beaten track! Take charge! Stick your finger in an electrical socket!

    A neutopian mysterium adventure game from Moloch Media.

    • Meet and interact with the characters that live on your street.
    • Or just ignore them.
    • Go off on tangential subplots.
    • Get in trouble.
    • Listen to dynamic cassette chip music.
    • Look at a high-fidelity fully 3D texture mapped world.
    MINIMAL SETUP
    • OS: Ubuntu 16.04+
    GAMEBILLET

    [ 5951 ]

    16.52$ (17%)
    9.00$ (50%)
    12.29$ (18%)
    18.39$ (8%)
    8.89$ (78%)
    11.74$ (71%)
    6.25$ (75%)
    8.25$ (17%)
    8.25$ (17%)
    17.98$ (28%)
    33.97$ (15%)
    13.27$ (17%)
    6.97$ (68%)
    5.97$ (14%)
    2.22$ (78%)
    20.65$ (17%)
    10.00$ (50%)
    49.87$ (17%)
    2.22$ (78%)
    26.29$ (12%)
    10.45$ (74%)
    25.79$ (14%)
    7.64$ (15%)
    5.77$ (17%)
    4.47$ (78%)
    4.87$ (19%)
    10.00$ (60%)
    2.00$ (50%)
    33.46$ (16%)
    47.97$ (20%)
    GAMERSGATE

    [ 1903 ]

    6.75$ (66%)
    1.13$ (92%)
    1.31$ (81%)
    0.56$ (81%)
    0.59$ (40%)
    7.49$ (63%)
    1.31$ (81%)
    1.13$ (89%)
    1.76$ (91%)
    2.25$ (89%)
    3.14$ (55%)
    3.38$ (62%)
    6.0$ (85%)
    0.83$ (92%)
    27.99$ (30%)
    0.6$ (92%)
    1.84$ (74%)
    4.5$ (77%)
    0.64$ (87%)
    4.49$ (55%)
    5.06$ (66%)
    3.67$ (47%)
    5.99$ (40%)
    0.9$ (92%)
    0.53$ (92%)
    5.25$ (85%)
    6.0$ (70%)
    2.25$ (91%)
    3.28$ (78%)
    1.5$ (92%)

    FANATICAL BUNDLES

    Time left:

    3 days, 10 hours, 21 minutes


    Time left:

    26 days, 10 hours, 21 minutes


    Time left:

    8 days, 10 hours, 21 minutes


    Time left:

    39 days, 10 hours, 21 minutes


    Time left:

    45 days, 10 hours, 21 minutes


    HUMBLE BUNDLES

    Time left:

    6 days, 4 hours, 21 minutes


    Time left:

    6 days, 4 hours, 21 minutes


    Time left:

    15 days, 4 hours, 21 minutes

    by buying games/dlcs from affiliate links you are supporting tuxDB
    🔴 LIVE