mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:57:40 +02:00
rap men initialization (#742)
Co-authored-by: vincells <101846355+vinceiis@users.noreply.github.com>
This commit is contained in:
8
Assets/Scripts/Games/RapMen.meta
Normal file
8
Assets/Scripts/Games/RapMen.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 111f322c771e15041824b07bbcd8a425
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
52
Assets/Scripts/Games/RapMen/RapMen.cs
Normal file
52
Assets/Scripts/Games/RapMen/RapMen.cs
Normal file
@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using HeavenStudio.Util;
|
||||
using HeavenStudio.InputSystem;
|
||||
|
||||
using Jukebox;
|
||||
|
||||
namespace HeavenStudio.Games.Loaders
|
||||
{
|
||||
using static Minigames;
|
||||
/// Minigame loaders handle the setup of your minigame.
|
||||
/// Here, you designate the game prefab, define entities, and mark what AssetBundle to load
|
||||
|
||||
/// Names of minigame loaders follow a specific naming convention of `PlatformcodeNameLoader`, where:
|
||||
/// `Platformcode` is a three-leter platform code with the minigame's origin
|
||||
/// `Name` is a short internal name
|
||||
/// `Loader` is the string "Loader"
|
||||
|
||||
/// Platform codes are as follows:
|
||||
/// Agb: Gameboy Advance ("Advance Gameboy")
|
||||
/// Ntr: Nintendo DS ("Nitro")
|
||||
/// Rvl: Nintendo Wii ("Revolution")
|
||||
/// Ctr: Nintendo 3DS ("Centrair")
|
||||
/// Mob: Mobile
|
||||
/// Pco: PC / Other
|
||||
|
||||
/// Fill in the loader class label, "*prefab name*", and "*Display Name*" with the relevant information
|
||||
/// For help, feel free to reach out to us on our discord, in the #development channel.
|
||||
public static class AgbRapMenLoader
|
||||
{
|
||||
public static Minigame AddGame(EventCaller eventCaller)
|
||||
{
|
||||
return new Minigame("rapMen", "Rap Men", "ffffff", false, false, new List<GameAction>()
|
||||
{
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace HeavenStudio.Games
|
||||
{
|
||||
/// This class handles the minigame logic.
|
||||
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
||||
public class RapMen : Minigame
|
||||
{
|
||||
}
|
||||
}
|
11
Assets/Scripts/Games/RapMen/RapMen.cs.meta
Normal file
11
Assets/Scripts/Games/RapMen/RapMen.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 098eada39e8fca7429fe40e5edfa9e7c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -402,7 +402,6 @@ namespace HeavenStudio
|
||||
{
|
||||
Debug.LogWarning("Game loader AgbQuizShowLoader failed!");
|
||||
}
|
||||
|
||||
game = NtrPingpongLoader.AddGame(eventCaller);
|
||||
if (game != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user