ipodtouch0218 / NSMB-MarioVsLuigi

Standalone Unity remake of New Super Mario Bros DS' multiplayer gamemode, "Mario vs Luigi"
https://ipodtouch0218.itch.io/nsmb-mariovsluigi
678 stars 298 forks source link

add a level creator maybe? #94

Open Venvi-Misty opened 2 years ago

Venvi-Misty commented 2 years ago

the same 8 levels do get a bit tiring after a bit a way to spice everything up a bit would to be to add a level creator, being able to add enemies, blocks, and all of that I would think you would also be able to decide the level height and length, and where the stars spawn and maybe those special features, like the platforms in the Bricks level? also idk how to tag this as new feature so uhhhhhh... (unless new feature means its being added IDFK)

SLG64 commented 2 years ago

This would be a great feature, especially because people could see others creativity and have a chance to explore their verson of Mario.

DillyzThe1 commented 2 years ago

if you wanna know how to add custom levels, then allow me to show you!

How to make a custom level!

Setup & Game Recognition

first off, get the game compiling. you can do this by reading the game's unity editor tutorial here. next, you have to enter the MainMenu scene and clicking on MainMenuManager. image now, find Level Camera Positions and add a new element. image then, you have to drag the camera position you want. you can leave this default, but i recommend doing grassland's camera position if you don't have one. image next, find the maps array and add a new element containing the name of your level. i will be doing [M] Plains because i want M to stand for modded & i'm using plains as the name for the map. image At this point, you want to open the Template folder and copy LevelTemp under a new name (your level name) image put this in the levels folder, then double click the file finally, go to File > Build Settings and drag your level file under the last level name there image hooray! you can now use File > Build And Run to export the game and play the template level under your new name with friends in private lobbies!

Editing A Level

go to Window > 2D > Tile Palette next, in your scene file hit the dropdown on Grid & select Tilemap_Ground then, choose a palette in the Tile Palette window and click any tile! Note: you can also drag your mouse over multiple to paint stuff like pipes! finally, start painting tiles all over the place! you can now hit control + s to save and hit File > Build And Run to play!

SLG64 commented 2 years ago

What if you're on a Chromebook that cannot access Linux?

DillyzThe1 commented 2 years ago

this tutorial is obviously meant for people actually able to compile the game, so sorry if you're on web builds by force :/ also note that i did this on windows and you just need a standard desktop pc or laptop (windows, linux, mac) (also, fun fact: ChromeOS is actually linux-based. you just can't really do almost anything a linux user can.)

Venvi-Misty commented 2 years ago

can you play on the custom levels online? I assume not, right?

DillyzThe1 commented 2 years ago

you can play them online with friends who have the mod and yes, i've been testing this stuff all day with friends

SLG64 commented 2 years ago

Is there an alternative for the Unity editor? I mean, one for a school laptop? I've been messing around with one and I wanted to turn Linux on via "crosh".

DillyzThe1 commented 2 years ago

no, the game was written inside of unity and heavily relies on the engine's abilities & functionality to work due to how this stuff functions anyway i have been considering making a level editor in my mod, and may consider publishing the mod if demand is met

the mod also currently includes:

i certaintly wouldn't mind rebuilding this mod with what i know for the public without the inside jokes (or just making them a toggle) as i do plan to add a level editor for my friends aswell

SLG64 commented 2 years ago

What is your mod called? Would I possibly be able to contribute to your mod?

DillyzThe1 commented 2 years ago

the mod is a private build that simply exists between me and my friends for the sake of pure fun if people really want, i'll do the public recreations of the useful features i have made and planned as a fork of this repo

DillyzThe1 commented 2 years ago

oh, and if i do publicly release the mod, you could show off levels in the discussions tab the fork would have and i would consider downloading the json (which is what i'll save the level as when i make the editor) and putting it in the mod for people to play with

SLG64 commented 2 years ago

Ok, I guess I wouldn't be much help seeing as I don't know much about coding or anything close to it as I only have a Chromebook at the moment.

DillyzThe1 commented 2 years ago

alright, but you're fully allowed to request that i add new features when i make the mod public at this point i think it may be worth it to make a release version of it later (and i'll try to get web builds to work, but web builds of games i make usually have some flaws so i hope this mod will work fine on a web build) is there any way i can reach out to you when i create it? do you have a discord account? if you do have discord, please leave your tag here if you wanna here about this mod so we can leave this issue's page alone

SLG64 commented 2 years ago

My discord isn't working at the moment, but I can give you my email that I use for my YouTube: matthewmonahan703@gmail.com

DillyzThe1 commented 2 years ago

alright, i'll try to remember to send an email when the mod gets released. (but if you ever get your discord account working, PLEASE reach out to me about that. it's most efficient to contact me there.) i'll create the forked repository by today at 5pm cst, so if you have ANY suggestions/concepts, please send them to that repository's issues or discussions

SLG64 commented 2 years ago

okie dokie I will