├── .gitattributes
├── .gitignore
├── BareMinimum
├── BareMinimum.cs
├── BareMinimum.csproj
└── Properties
│ └── AssemblyInfo.cs
├── ExampleSlugcat
├── ExampleSlugcat.csproj
├── Properties
│ └── AssemblyInfo.cs
├── SlugBase
│ └── Sprinter
│ │ ├── Illustrations
│ │ ├── MultiplayerPortrait00.png
│ │ ├── MultiplayerPortrait01.png
│ │ ├── MultiplayerPortrait10.png
│ │ ├── MultiplayerPortrait11.png
│ │ ├── MultiplayerPortrait20.png
│ │ ├── MultiplayerPortrait21.png
│ │ ├── MultiplayerPortrait30.png
│ │ └── MultiplayerPortrait31.png
│ │ ├── Scenes
│ │ ├── Intro 1 - Pebbles Thinking
│ │ │ ├── Blue Light.png
│ │ │ ├── Hand.png
│ │ │ ├── Pebbles.png
│ │ │ └── scene.json
│ │ ├── Intro 2 - Critter List
│ │ │ ├── Arm.png
│ │ │ ├── Cell Wall.png
│ │ │ ├── List.png
│ │ │ ├── Pebbles.png
│ │ │ └── scene.json
│ │ ├── Intro 3 - Wait No
│ │ │ ├── Arm.png
│ │ │ ├── Glow.png
│ │ │ ├── Pebbles.png
│ │ │ ├── Projection.png
│ │ │ └── scene.json
│ │ ├── Intro 4 - What Have You Done
│ │ │ ├── Cell Wall.png
│ │ │ ├── Floor.png
│ │ │ ├── Pipe.png
│ │ │ ├── Slug.png
│ │ │ └── scene.json
│ │ ├── Intro 5 - It's Alive!
│ │ │ ├── Ground.png
│ │ │ ├── Slug Up.png
│ │ │ └── scene.json
│ │ ├── SelectMenu
│ │ │ ├── .eyes red.png
│ │ │ ├── Background.png
│ │ │ ├── Bg Plants.png
│ │ │ ├── Flat.png
│ │ │ ├── Hand.png
│ │ │ ├── Plants.png
│ │ │ ├── Spores.png
│ │ │ ├── Sprinter.png
│ │ │ └── scene.json
│ │ ├── SelectMenuAscended
│ │ │ ├── Bg.png
│ │ │ ├── Ghost.png
│ │ │ ├── Glow.png
│ │ │ └── scene.json
│ │ └── SleepScreen
│ │ │ ├── Sleep - 1.png
│ │ │ ├── Sleep - 2 - Sprinter.png
│ │ │ ├── Sleep - 3.png
│ │ │ ├── Sleep - 4.png
│ │ │ ├── Sleep - 5.png
│ │ │ └── scene.json
│ │ └── Slideshows
│ │ └── intro.json
├── SprinterMod.cs
├── SprinterSaveState.cs
├── SprinterSlugcat.cs
└── SprinterStart.cs
├── Readme.md
├── SlugBase.sln
└── SlugBase
├── ArenaAdditions.cs
├── AttachedField.cs
├── Compatibility
├── FancySlugcats.cs
├── FlatmodeFix.cs
├── HookGenFix.cs
└── JollyCoop.cs
├── Config
├── CharacterSelectButton.cs
└── CharacterSelectGroup.cs
├── CustomSaveState.cs
├── MultiplayerTweaks.cs
├── PlayerColors.cs
├── PlayerManager.cs
├── Properties
└── AssemblyInfo.cs
├── RegionTools.cs
├── SaveManager.cs
├── Scenes
├── CustomScene.cs
├── CustomSceneManager.cs
├── CustomSlideshow.cs
├── SceneEditor.cs
├── SelectMenu.cs
└── ShelterScreens.cs
├── SlugBase.csproj
├── SlugBaseCharacter.cs
├── SlugBaseEx.cs
├── SlugBaseMod.cs
└── WorldFixes.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # SlugBase custom ignore
7 | Private/
8 |
9 | # User-specific files
10 | *.rsuser
11 | *.suo
12 | *.user
13 | *.userosscache
14 | *.sln.docstates
15 |
16 | # User-specific files (MonoDevelop/Xamarin Studio)
17 | *.userprefs
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 |
33 | # Visual Studio 2015/2017 cache/options directory
34 | .vs/
35 | # Uncomment if you have tasks that create the project's static files in wwwroot
36 | #wwwroot/
37 |
38 | # Visual Studio 2017 auto generated files
39 | Generated\ Files/
40 |
41 | # MSTest test Results
42 | [Tt]est[Rr]esult*/
43 | [Bb]uild[Ll]og.*
44 |
45 | # NUNIT
46 | *.VisualState.xml
47 | TestResult.xml
48 |
49 | # Build Results of an ATL Project
50 | [Dd]ebugPS/
51 | [Rr]eleasePS/
52 | dlldata.c
53 |
54 | # Benchmark Results
55 | BenchmarkDotNet.Artifacts/
56 |
57 | # .NET Core
58 | project.lock.json
59 | project.fragment.lock.json
60 | artifacts/
61 |
62 | # StyleCop
63 | StyleCopReport.xml
64 |
65 | # Files built by Visual Studio
66 | *_i.c
67 | *_p.c
68 | *_h.h
69 | *.ilk
70 | *.meta
71 | *.obj
72 | *.iobj
73 | *.pch
74 | *.pdb
75 | *.ipdb
76 | *.pgc
77 | *.pgd
78 | *.rsp
79 | *.sbr
80 | *.tlb
81 | *.tli
82 | *.tlh
83 | *.tmp
84 | *.tmp_proj
85 | *_wpftmp.csproj
86 | *.log
87 | *.vspscc
88 | *.vssscc
89 | .builds
90 | *.pidb
91 | *.svclog
92 | *.scc
93 |
94 | # Chutzpah Test files
95 | _Chutzpah*
96 |
97 | # Visual C++ cache files
98 | ipch/
99 | *.aps
100 | *.ncb
101 | *.opendb
102 | *.opensdf
103 | *.sdf
104 | *.cachefile
105 | *.VC.db
106 | *.VC.VC.opendb
107 |
108 | # Visual Studio profiler
109 | *.psess
110 | *.vsp
111 | *.vspx
112 | *.sap
113 |
114 | # Visual Studio Trace Files
115 | *.e2e
116 |
117 | # TFS 2012 Local Workspace
118 | $tf/
119 |
120 | # Guidance Automation Toolkit
121 | *.gpState
122 |
123 | # ReSharper is a .NET coding add-in
124 | _ReSharper*/
125 | *.[Rr]e[Ss]harper
126 | *.DotSettings.user
127 |
128 | # JustCode is a .NET coding add-in
129 | .JustCode
130 |
131 | # TeamCity is a build add-in
132 | _TeamCity*
133 |
134 | # DotCover is a Code Coverage Tool
135 | *.dotCover
136 |
137 | # AxoCover is a Code Coverage Tool
138 | .axoCover/*
139 | !.axoCover/settings.json
140 |
141 | # Visual Studio code coverage results
142 | *.coverage
143 | *.coveragexml
144 |
145 | # NCrunch
146 | _NCrunch_*
147 | .*crunch*.local.xml
148 | nCrunchTemp_*
149 |
150 | # MightyMoose
151 | *.mm.*
152 | AutoTest.Net/
153 |
154 | # Web workbench (sass)
155 | .sass-cache/
156 |
157 | # Installshield output folder
158 | [Ee]xpress/
159 |
160 | # DocProject is a documentation generator add-in
161 | DocProject/buildhelp/
162 | DocProject/Help/*.HxT
163 | DocProject/Help/*.HxC
164 | DocProject/Help/*.hhc
165 | DocProject/Help/*.hhk
166 | DocProject/Help/*.hhp
167 | DocProject/Help/Html2
168 | DocProject/Help/html
169 |
170 | # Click-Once directory
171 | publish/
172 |
173 | # Publish Web Output
174 | *.[Pp]ublish.xml
175 | *.azurePubxml
176 | # Note: Comment the next line if you want to checkin your web deploy settings,
177 | # but database connection strings (with potential passwords) will be unencrypted
178 | *.pubxml
179 | *.publishproj
180 |
181 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
182 | # checkin your Azure Web App publish settings, but sensitive information contained
183 | # in these scripts will be unencrypted
184 | PublishScripts/
185 |
186 | # NuGet Packages
187 | *.nupkg
188 | # The packages folder can be ignored because of Package Restore
189 | **/[Pp]ackages/*
190 | # except build/, which is used as an MSBuild target.
191 | !**/[Pp]ackages/build/
192 | # Uncomment if necessary however generally it will be regenerated when needed
193 | #!**/[Pp]ackages/repositories.config
194 | # NuGet v3's project.json files produces more ignorable files
195 | *.nuget.props
196 | *.nuget.targets
197 |
198 | # Microsoft Azure Build Output
199 | csx/
200 | *.build.csdef
201 |
202 | # Microsoft Azure Emulator
203 | ecf/
204 | rcf/
205 |
206 | # Windows Store app package directories and files
207 | AppPackages/
208 | BundleArtifacts/
209 | Package.StoreAssociation.xml
210 | _pkginfo.txt
211 | *.appx
212 |
213 | # Visual Studio cache files
214 | # files ending in .cache can be ignored
215 | *.[Cc]ache
216 | # but keep track of directories ending in .cache
217 | !?*.[Cc]ache/
218 |
219 | # Others
220 | ClientBin/
221 | ~$*
222 | *~
223 | *.dbmdl
224 | *.dbproj.schemaview
225 | *.jfm
226 | *.pfx
227 | *.publishsettings
228 | orleans.codegen.cs
229 |
230 | # Including strong name files can present a security risk
231 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
232 | #*.snk
233 |
234 | # Since there are multiple workflows, uncomment next line to ignore bower_components
235 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
236 | #bower_components/
237 |
238 | # RIA/Silverlight projects
239 | Generated_Code/
240 |
241 | # Backup & report files from converting an old project file
242 | # to a newer Visual Studio version. Backup files are not needed,
243 | # because we have git ;-)
244 | _UpgradeReport_Files/
245 | Backup*/
246 | UpgradeLog*.XML
247 | UpgradeLog*.htm
248 | ServiceFabricBackup/
249 | *.rptproj.bak
250 |
251 | # SQL Server files
252 | *.mdf
253 | *.ldf
254 | *.ndf
255 |
256 | # Business Intelligence projects
257 | *.rdl.data
258 | *.bim.layout
259 | *.bim_*.settings
260 | *.rptproj.rsuser
261 | *- Backup*.rdl
262 |
263 | # Microsoft Fakes
264 | FakesAssemblies/
265 |
266 | # GhostDoc plugin setting file
267 | *.GhostDoc.xml
268 |
269 | # Node.js Tools for Visual Studio
270 | .ntvs_analysis.dat
271 | node_modules/
272 |
273 | # Visual Studio 6 build log
274 | *.plg
275 |
276 | # Visual Studio 6 workspace options file
277 | *.opt
278 |
279 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
280 | *.vbw
281 |
282 | # Visual Studio LightSwitch build output
283 | **/*.HTMLClient/GeneratedArtifacts
284 | **/*.DesktopClient/GeneratedArtifacts
285 | **/*.DesktopClient/ModelManifest.xml
286 | **/*.Server/GeneratedArtifacts
287 | **/*.Server/ModelManifest.xml
288 | _Pvt_Extensions
289 |
290 | # Paket dependency manager
291 | .paket/paket.exe
292 | paket-files/
293 |
294 | # FAKE - F# Make
295 | .fake/
296 |
297 | # JetBrains Rider
298 | .idea/
299 | *.sln.iml
300 |
301 | # CodeRush personal settings
302 | .cr/personal
303 |
304 | # Python Tools for Visual Studio (PTVS)
305 | __pycache__/
306 | *.pyc
307 |
308 | # Cake - Uncomment if you are using it
309 | # tools/**
310 | # !tools/packages.config
311 |
312 | # Tabs Studio
313 | *.tss
314 |
315 | # Telerik's JustMock configuration file
316 | *.jmconfig
317 |
318 | # BizTalk build output
319 | *.btp.cs
320 | *.btm.cs
321 | *.odx.cs
322 | *.xsd.cs
323 |
324 | # OpenCover UI analysis results
325 | OpenCover/
326 |
327 | # Azure Stream Analytics local run output
328 | ASALocalRun/
329 |
330 | # MSBuild Binary and Structured Log
331 | *.binlog
332 |
333 | # NVidia Nsight GPU debugger configuration file
334 | *.nvuser
335 |
336 | # MFractors (Xamarin productivity tool) working folder
337 | .mfractor/
338 |
339 | # Local History for Visual Studio
340 | .localhistory/
341 |
342 | # BeatPulse healthcheck temp database
343 | healthchecksdb
--------------------------------------------------------------------------------
/BareMinimum/BareMinimum.cs:
--------------------------------------------------------------------------------
1 | using SlugBase;
2 |
3 | /*
4 | * This example interacts with SlugBase as little as possible.
5 | *
6 | * The player select menu and sleep screen will display Survivor.
7 | * This makes the select screen ambiguous once a game is started, since the name is hidden.
8 | * Consider copying one of the slugcat select scenes and editing it.
9 | */
10 |
11 | namespace BareMinimum
12 | {
13 | public class BareMinimum : Partiality.Modloader.PartialityMod
14 | {
15 | public BareMinimum()
16 | {
17 | ModID = "Bare Minimum Example Slugcat";
18 | Version = "1.1";
19 | author = "Slime_Cubed";
20 | }
21 |
22 | public override void OnLoad()
23 | {
24 | PlayerManager.RegisterCharacter(new BareMinimumSlugcat());
25 | }
26 | }
27 |
28 | public class BareMinimumSlugcat : SlugBaseCharacter
29 | {
30 | public BareMinimumSlugcat() : base("Bare Minimum", FormatVersion.V1, 0, true)
31 | {
32 | }
33 |
34 | public override string DisplayName => "The Prototype";
35 | public override string Description =>
36 | @"A new slugcat that demonstrates the bare minimum amount required.
37 | This is an example slugcat for the SlugBase framework.";
38 |
39 | protected override void Disable() {}
40 |
41 | protected override void Enable() {}
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/BareMinimum/BareMinimum.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {C462D418-374C-4B99-BAF7-925248899242}
8 | Library
9 | Properties
10 | BareMinimum
11 | BareMinimum
12 | v3.5
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | ..\..\rwmodlibspublic\Assembly-CSharp.dll
36 | False
37 |
38 |
39 | ..\..\rwmodlibspublic\HOOKS-Assembly-CSharp.dll
40 | False
41 |
42 |
43 | ..\..\rwmodlibspublic\Partiality.dll
44 | False
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | ..\..\rwmodlibspublic\UnityEngine.dll
54 | False
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | {e7b1aabf-4be5-49d7-847d-24883f06261a}
64 | SlugBase
65 | False
66 |
67 |
68 |
69 |
70 | if defined RWMods (copy /Y "$(TargetPath)" "%25RWMods%25")
71 |
72 |
--------------------------------------------------------------------------------
/BareMinimum/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("BareMinimum")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("BareMinimum")]
13 | [assembly: AssemblyCopyright("Copyright © 2021")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("c462d418-374c-4b99-baf7-925248899242")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ExampleSlugcat/ExampleSlugcat.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {87055141-6463-4F6F-B072-FB85F52B5A48}
8 | Library
9 | Properties
10 | ExampleSlugcat
11 | ExampleSlugcat
12 | v3.5
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | ..\..\rwmodlibspublic\Assembly-CSharp.dll
36 | False
37 |
38 |
39 | ..\..\rwmodlibspublic\HOOKS-Assembly-CSharp.dll
40 | False
41 |
42 |
43 | ..\..\rwmodlibspublic\MonoMod.RuntimeDetour.dll
44 | False
45 |
46 |
47 | ..\..\rwmodlibspublic\Partiality.dll
48 | False
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | ..\..\rwmodlibspublic\UnityEngine.dll
58 | False
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | {e7b1aabf-4be5-49d7-847d-24883f06261a}
71 | SlugBase
72 | False
73 |
74 |
75 |
76 |
77 | if defined RWMods (copy /Y "$(TargetPath)" "%25RWMods%25")
78 |
79 |
--------------------------------------------------------------------------------
/ExampleSlugcat/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ExampleSlugcat")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ExampleSlugcat")]
13 | [assembly: AssemblyCopyright("Copyright © 2021")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("87055141-6463-4f6f-b072-fb85f52b5a48")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait00.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait00.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait01.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait10.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait11.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait20.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait21.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait21.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait30.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Illustrations/MultiplayerPortrait31.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Blue Light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Blue Light.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Hand.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Pebbles.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/Pebbles.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 1 - Pebbles Thinking/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Pebbles.png", "x":339, "y":7, "depth":3.0},
4 | {"name":"Hand.png", "x":498, "y":6, "depth":2.25, "shader":"LightEdges"},
5 | {"name":"Blue Light.png", "x":454, "y":0, "depth":1.0, "alpha":0.5, "shader":"Lighten"}
6 | ]
7 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Arm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Arm.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Cell Wall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Cell Wall.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/List.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/List.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Pebbles.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/Pebbles.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 2 - Critter List/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Cell Wall.png", "x":306, "y":47, "depth":4.5},
4 | {"name":"List.png", "x":619, "y":215, "depth":3.0, "shader":"Lighten"},
5 | {"name":"Pebbles.png", "x":396, "y":186, "depth":2.0},
6 | {"name":"Arm.png", "x":53, "y":80, "depth":1.5}
7 | ]
8 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Arm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Arm.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Glow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Glow.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Pebbles.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Pebbles.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Projection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/Projection.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 3 - Wait No/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Arm.png", "x":914, "y":20, "depth":5.0},
4 | {"name":"Pebbles.png", "x":369, "y":0, "depth":4.0},
5 | {"name":"Projection.png", "x":279, "y":21, "depth":1.5, "shader":"Lighten"},
6 | {"name":"Glow.png", "x":46, "y":0, "depth":1.25, "alpha":0.25, "shader":"Lighten"}
7 | ]
8 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Cell Wall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Cell Wall.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Floor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Floor.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Pipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Pipe.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Slug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/Slug.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 4 - What Have You Done/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Cell Wall.png", "x":270, "y":119, "depth":4.0},
4 | {"name":"Floor.png", "x":64, "y":98, "depth":3.0},
5 | {"name":"Slug.png", "x":618, "y":177, "depth":2.5, "alphakeys":[ 0.35,0.0, 0.375,1.0 ]},
6 | {"name":"Pipe.png", "x":557, "y":531, "depth":2.5}
7 | ]
8 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 5 - It's Alive!/Ground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 5 - It's Alive!/Ground.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 5 - It's Alive!/Slug Up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 5 - It's Alive!/Slug Up.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/Intro 5 - It's Alive!/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Ground.png", "x":0, "y":114, "depth":-1},
4 | {"name":"Slug Up.png", "x":385, "y":191, "depth":-1, "alphakeys":[ 0.5,0.0, 0.525,1.0 ]}
5 | ]
6 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/.eyes red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/.eyes red.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Background.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Bg Plants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Bg Plants.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Flat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Flat.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Hand.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Plants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Plants.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Spores.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Spores.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Sprinter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/Sprinter.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenu/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Flat.png", "x":0, "y":0, "depth":-1.0, "flatmode":true},
4 | {"name":"Background.png", "x":442, "y":134, "depth":3.5},
5 | {"name":"Bg Plants.png", "x":488, "y":197, "depth":3.2},
6 | {"name":"Sprinter.png", "x":516, "y":185, "depth":3.0, "shader":"LightEdges"},
7 | {"name":"Hand.png", "x":687, "y":276, "depth":2.8, "shader":"LightEdges"},
8 | {"name":".eyes red.png", "x":649, "y":334, "depth":3.0, "shader":"Basic", "turboonly":true},
9 | {"name":"Spores.png", "x":487, "y":151, "depth":2, "shader":"Overlay"},
10 | {"name":"Plants.png", "x":301, "y":18, "depth":1.5}
11 | ],
12 | "glowx":730,
13 | "glowy":335,
14 | "markx":740,
15 | "marky":575,
16 | "selectmenux":-10,
17 | "selectmenuy":100
18 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Bg.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Ghost.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Ghost.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Glow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/Glow.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SelectMenuAscended/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | { "name":"Bg.png" , "x":330, "y":-18, "depth": 4.5},
4 | { "name":"Ghost.png", "x":557, "y": 89, "depth":2.85},
5 | { "name":"Glow.png" , "x":574, "y": 74, "depth": 2.7, "shader":"Overlay", "alpha":0.7}
6 | ],
7 | "idledepths": [
8 | 3.1,
9 | 2.8
10 | ]
11 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 1.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 2 - Sprinter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 2 - Sprinter.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 3.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 4.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SlimeCubed/SlugBase/d16129271beaed8dba8f373d4888340587d2f86d/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/Sleep - 5.png
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Scenes/SleepScreen/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {"name":"Sleep - 5.png", "x":672, "y":236, "depth":3.5, "fade":0.2},
4 | {"name":"Sleep - 4.png", "x":669, "y":138, "depth":2.8, "alpha":0.24, "fade":0.1},
5 | {"name":"Sleep - 3.png", "x":696, "y":118, "depth":2.2, "fade":0.35},
6 | {"name":"Sleep - 2 - Sprinter.png", "x":677, "y":63 , "depth":1.7},
7 | {"name":"Sleep - 1.png", "x":486, "y":-54, "depth":1.2}
8 | ]
9 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SlugBase/Sprinter/Slideshows/intro.json:
--------------------------------------------------------------------------------
1 | {
2 | "slides": [
3 | {"name":"Empty", "duration":1.0},
4 | {"name":"Intro 1 - Pebbles Thinking" , "duration":7.0, "campath":[-300,0,0, 300,0,0 ]},
5 | {"name":"Intro 2 - Critter List" , "duration":7.0, "campath":[-400,0,0, 200,0,0.2, 200,300,0.4]},
6 | {"name":"Intro 3 - Wait No" , "duration":7.0, "campath":[0,200,0.5, 0,0,0]},
7 | {"name":"Intro 4 - What Have You Done", "duration":6.0, "campath":[0,400,0, 0,-400,0]},
8 | {"name":"Intro 5 - It's Alive!" , "duration":7.0},
9 | {"name":"Empty", "duration":0.0}
10 | ],
11 | "music":"RW_Intro_Theme",
12 | }
--------------------------------------------------------------------------------
/ExampleSlugcat/SprinterMod.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using SlugBase;
3 |
4 | /*
5 | * This is a basic example of a SlugBase character.
6 | *
7 | * It adds The Sprinter, a slugcat with faster movement and higher jumps.
8 | * Some scenes have been overridden so then Sprinter appears instead of Survivor.
9 | * To install, copy ExampleSlugcat.dll and SlugBase into the Mods folder.
10 | */
11 |
12 | namespace ExampleSlugcat
13 | {
14 | // Your mod class
15 | // This does not have to be a PartialityMod
16 | internal class ExampleSlugcatMod : Partiality.Modloader.PartialityMod
17 | {
18 | public ExampleSlugcatMod()
19 | {
20 | ModID = "Example Slugcat";
21 | Version = "1.2";
22 | author = "Slime_Cubed";
23 | }
24 |
25 | public override void OnEnable()
26 | {
27 | PlayerManager.RegisterCharacter(new SprinterSlugcat());
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/ExampleSlugcat/SprinterSaveState.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using SlugBase;
3 | using System.Collections.Generic;
4 | using UnityEngine;
5 |
6 | namespace ExampleSlugcat
7 | {
8 | // Store extra information with the Sprinter's save file
9 | class SprinterSaveState : CustomSaveState
10 | {
11 | public bool isTurbo = false;
12 |
13 | public SprinterSaveState(PlayerProgression progression, SlugBaseCharacter character) : base(progression, character)
14 | {
15 | }
16 |
17 | public override void Load(Dictionary data)
18 | {
19 | isTurbo = data.TryGetValue("turbo", out string temp) ? bool.Parse(temp) : false;
20 | }
21 |
22 | public override void Save(Dictionary data)
23 | {
24 | data["turbo"] = isTurbo.ToString();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/ExampleSlugcat/SprinterSlugcat.cs:
--------------------------------------------------------------------------------
1 | using SlugBase;
2 | using UnityEngine;
3 |
4 | namespace ExampleSlugcat
5 | {
6 | // Describes the character you want to add
7 | internal class SprinterSlugcat : SlugBaseCharacter
8 | {
9 | public SprinterSlugcat() : base("Sprinter", FormatVersion.V1, 0, true) { }
10 |
11 | // Custom //
12 |
13 | // Hooks are applied here
14 | protected override void Enable()
15 | {
16 | On.Player.MovementUpdate += Player_MovementUpdate;
17 | On.Player.ObjectEaten += Player_ObjectEaten;
18 | On.Player.Jump += Player_Jump;
19 | }
20 |
21 | // Hooks are disposed of here
22 | protected override void Disable()
23 | {
24 | On.Player.MovementUpdate -= Player_MovementUpdate;
25 | On.Player.ObjectEaten -= Player_ObjectEaten;
26 | On.Player.Jump -= Player_Jump;
27 | }
28 |
29 | // Attach some extra information to the Sprinter's save file
30 | public override CustomSaveState CreateNewSave(PlayerProgression progression)
31 | {
32 | return new SprinterSaveState(progression, this);
33 | }
34 |
35 | // Update stats when in turbo move
36 | private void Player_MovementUpdate(On.Player.orig_MovementUpdate orig, Player self, bool eu)
37 | {
38 | if (IsMe(self) && self.TryGetSave(out var save) && save.isTurbo)
39 | self.slugcatStats.runspeedFac = 5f;
40 | orig(self, eu);
41 | }
42 |
43 | // Go absolutely wild once a mushroom is eaten
44 | private void Player_ObjectEaten(On.Player.orig_ObjectEaten orig, Player self, IPlayerEdible edible)
45 | {
46 | if (IsMe(self) && edible is Mushroom && self.TryGetSave(out var save))
47 | {
48 | save.isTurbo = true;
49 | }
50 | orig(self, edible);
51 | }
52 |
53 | // Add more height to all standard jumps
54 | private void Player_Jump(On.Player.orig_Jump orig, Player self)
55 | {
56 | orig(self);
57 | if (!IsMe(self)) return;
58 |
59 | if (self.TryGetSave(out var save) && save.isTurbo)
60 | self.jumpBoost += 9f;
61 | else
62 | self.jumpBoost += 3f;
63 | }
64 |
65 |
66 | // SlugBase //
67 |
68 | public override string DisplayName => "The Sprinter";
69 | public override string Description =>
70 | @"A lightspeed rodent whose supernatural speed stems from chillidogs and a curious glowing fungus.
71 | This is an example slugcat for the SlugBase framework.";
72 |
73 | public override Color? SlugcatColor(int slugcatCharacter, Color baseColor)
74 | {
75 | Color col = new Color(0.37f, 0.36f, 0.91f);
76 |
77 | if (slugcatCharacter == -1)
78 | return col;
79 | else
80 | return Color.Lerp(baseColor, col, 0.75f);
81 | }
82 |
83 | public override bool HasGuideOverseer => false;
84 |
85 | public override string StartRoom => "UW_I01";
86 |
87 | protected override void GetStats(SlugcatStats stats)
88 | {
89 | stats.runspeedFac *= 1.5f;
90 | stats.poleClimbSpeedFac *= 1.5f;
91 | stats.corridorClimbSpeedFac *= 1.5f;
92 | stats.loudnessFac *= 2f;
93 | }
94 |
95 | public override void GetFoodMeter(out int maxFood, out int foodToSleep)
96 | {
97 | maxFood = 8;
98 | foodToSleep = 5;
99 | }
100 |
101 | // Play a short "cutscene", forcing the player to climb a pole when starting a new game
102 | public override void StartNewGame(Room room)
103 | {
104 | base.StartNewGame(room);
105 |
106 | // Make sure this is the right room
107 | if (room.abstractRoom.name != StartRoom) return;
108 |
109 | room.AddObject(new SprinterStart(room));
110 | }
111 |
112 | public override CustomScene BuildScene(string sceneName)
113 | {
114 | RainWorld rw = Object.FindObjectOfType();
115 |
116 | var scene = base.BuildScene(sceneName);
117 |
118 | // If not in turbo mode, hide some scene images
119 | if(sceneName == "SelectMenu")
120 | {
121 | bool turbo = false;
122 | try
123 | {
124 | turbo = bool.Parse(GetSaveSummary(rw).CustomData["turbo"]);
125 | }
126 | catch { }
127 |
128 | if (!turbo)
129 | scene.ApplyFilter(img => !img.HasTag("turboonly"));
130 | }
131 |
132 | return scene;
133 | }
134 | }
135 | }
136 |
--------------------------------------------------------------------------------
/ExampleSlugcat/SprinterStart.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace ExampleSlugcat
4 | {
5 | // Plays a small "cutscene" at the start of the game
6 | internal class SprinterStart : UpdatableAndDeletable
7 | {
8 | private Player Sprinter => (room.game.Players.Count <= 0) ? null : (room.game.Players[0].realizedCreature as Player);
9 | private int timer = 0;
10 | private StartController startController;
11 |
12 | public SprinterStart(Room room)
13 | {
14 | this.room = room;
15 | }
16 |
17 | public override void Update(bool eu)
18 | {
19 | Player ply = Sprinter;
20 | if (ply == null) return;
21 | if (room.game.cameras[0].room != room) return;
22 |
23 | // Spawn the player at the correct place
24 | if (timer == 0)
25 | {
26 | room.game.cameras[0].MoveCamera(4);
27 |
28 | room.game.cameras[0].followAbstractCreature = null;
29 |
30 | if (room.game.cameras[0].hud == null)
31 | room.game.cameras[0].FireUpSinglePlayerHUD(ply);
32 |
33 | for (int i = 0; i < 2; i++)
34 | {
35 | ply.bodyChunks[i].HardSetPosition(room.MiddleOfTile(68, 30));
36 | }
37 |
38 | ply.graphicsModule?.Reset();
39 |
40 | startController = new StartController(this);
41 | ply.controller = startController;
42 | ply.playerState.foodInStomach = 5;
43 |
44 | ply.eatCounter = 15;
45 | AbstractPhysicalObject shroom = new AbstractConsumable(room.world, AbstractPhysicalObject.AbstractObjectType.Mushroom, null, new WorldCoordinate(room.abstractRoom.index, 68, 30, 0), room.game.GetNewID(), -1, -1, null);
46 | room.abstractRoom.AddEntity(shroom);
47 | shroom.RealizeInRoom();
48 | shroom.realizedObject.firstChunk.HardSetPosition(ply.mainBodyChunk.pos + new Vector2(-30f, 0f));
49 | ply.SlugcatGrab(shroom.realizedObject, 0);
50 |
51 | room.game.cameras[0].hud.foodMeter.NewShowCount(ply.FoodInStomach);
52 | room.game.cameras[0].hud.foodMeter.visibleCounter = 0;
53 | room.game.cameras[0].hud.foodMeter.fade = 0f;
54 | room.game.cameras[0].hud.foodMeter.lastFade = 0f;
55 | }
56 |
57 | // End the cutscene
58 | if (timer == 180)
59 | {
60 | ply.controller = null;
61 | ply.room.game.cameras[0].followAbstractCreature = ply.abstractCreature;
62 | Destroy();
63 | }
64 |
65 | timer++;
66 | }
67 |
68 | // Makes Sprinter climb a pole without player input
69 | public class StartController : Player.PlayerController
70 | {
71 | public SprinterStart owner;
72 |
73 | public StartController(SprinterStart owner)
74 | {
75 | this.owner = owner;
76 | }
77 |
78 | public override Player.InputPackage GetInput()
79 | {
80 | int y;
81 | if (owner.timer < 5) y = 1;
82 | else if (owner.timer < 40) y = 0;
83 | else if (owner.timer < 165) y = 1;
84 | else y = 0;
85 |
86 | return new Player.InputPackage(false, 0, y, false, false, false, false, false);
87 | }
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/Readme.md:
--------------------------------------------------------------------------------
1 | # SlugBase
2 | A framework that simplifies adding new characters to Rain World.
3 |
4 | This mod targets Rain World 1.5, and will not be receiving further updates. Please use [SlugBase 2](https://github.com/SlimeCubed/SlugBaseRemix) for Rain World 1.9 and up.
5 |
6 | ## For Users
7 | Downloads can be found in the [Releases](https://github.com/SlimeCubed/SlugBase/releases/latest) tab.
Make sure to download the one called `SlugBase.dll`.
8 | SlugBase is a Partiality mod, so it may be applied with any mod loader that supports Partiality mods. This includes BepInEx.
9 |
10 | If you find any bugs or incompatibilities, first check the [Issues](https://github.com/SlimeCubed/SlugBase/issues) page. If the issue you are encountering isn't listed there, you can either open up a new issue or send me (Slime_Cubed#5880) a message on Discord.
11 |
12 | ## For Developers
13 | See the [Developer Guide](https://github.com/SlimeCubed/SlugBase/wiki/Developer-Guide).
14 |
--------------------------------------------------------------------------------
/SlugBase.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30804.86
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlugBase", "SlugBase\SlugBase.csproj", "{E7B1AABF-4BE5-49D7-847D-24883F06261A}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleSlugcat", "ExampleSlugcat\ExampleSlugcat.csproj", "{87055141-6463-4F6F-B072-FB85F52B5A48}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BareMinimum", "BareMinimum\BareMinimum.csproj", "{C462D418-374C-4B99-BAF7-925248899242}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {E7B1AABF-4BE5-49D7-847D-24883F06261A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {E7B1AABF-4BE5-49D7-847D-24883F06261A}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {E7B1AABF-4BE5-49D7-847D-24883F06261A}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {E7B1AABF-4BE5-49D7-847D-24883F06261A}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {87055141-6463-4F6F-B072-FB85F52B5A48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {87055141-6463-4F6F-B072-FB85F52B5A48}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {87055141-6463-4F6F-B072-FB85F52B5A48}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {87055141-6463-4F6F-B072-FB85F52B5A48}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {C462D418-374C-4B99-BAF7-925248899242}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {C462D418-374C-4B99-BAF7-925248899242}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {C462D418-374C-4B99-BAF7-925248899242}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {C462D418-374C-4B99-BAF7-925248899242}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {8485C5DD-03B8-43A9-91B4-9ED2AA80A302}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/SlugBase/AttachedField.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | ///
5 | /// A collection that attaches values to objects using .
6 | ///
7 | ///
8 | /// This is like ConditionalWeakTable, but with one major drawback:
9 | /// values that reference the key will stop the key from being garbage collected.
10 | /// Make sure that each instance of contains
11 | /// no references to the key, otherwise a memory leak may occur!
12 | ///
13 | /// The type to attach the value to.
14 | /// The type the the attached value.
15 | public class AttachedField
16 | {
17 | private static IEqualityComparer