Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Caliber Mengsk's Unity Quickstart Pack - V4 Better examples and Minor bug fix.

A topic by Caliber Mengsk created Jul 14, 2020 Views: 667 Replies: 17
Viewing posts 1 to 11
(4 edits) (+1)

Hi guys. Last year I made a package to try and help people having issues with getting unity set up for a pixel perfect game. Problem was, I put it together over halfway through the jam last time. This time though, I'm putting it up WAY ahead of time.

You shouldn't have to waste time getting things set up. Some people were spending hours trying to figure it out. So download the pack to get started. The package was packed in Unity 2019.4.3f1 (was the current version of unity) but should work on any version of 2019 without issues.

If you run into any problems, please post a reply to let me know so I can update the package so it works properly for everyone.


Installation:

Create a new Unity project.

After Unity is fully open, you can double click the .unitypackage provided, or select "Assets > Import Package > Custom Package..." and browse to the downloaded package.

Import everything.

Open the prefabs folder and drag the prefab "2D Player Camera With Render Texture" for a 2D orthographic camera or "3D Player Camera With Render Texture" for a 3D perspective camera.

That's it! You are done! The Player camera can have an object set to follow, or it will automatically follow the first object with the "Player" tag assigned to it. Good luck on the jam!


Download the package here:

Primary Download Link: http://mvmgame.cf/unity/packages/CMLowRezStarter.unitypackage

Alternative Download Link: http://ocularobscura.com/unity/packages/CMLowRezStarter.unitypackage

Update! (7m/19d/2020)

I added a text file in the base folder after extracting the package telling you how to remove the extra assets. What files need to be deleted and such. As well as extremely small changes to code which are mostly just helper things (Like tool tips and comments, not that there are a lot of comments)

(1 edit)

Update 2! (7m/24d/2020)

I added a new camera prefab that contains a render texture. I became aware that the base camera prefab I had included only supported the 64x64 resolution in 2d, but didn't support 3d projects. Hence the new prefab "Player Camera With Render Texture". This prefab adds the "Render Texture Camera Source" camera object that renders to a render texture. The main player cam object now only looks to render the "RenderTexture" layer. If you haven't added it to your project, then it will automatically add it when the camera prefabs are dragged into the scene.

I also lightly updated the message box as it seemed to have problems displaying while the camera was moving. This is now fixed.


Enjoy! And if you have any suggestions or find any bugs, let me know!

That is awesome! Thank you very much for your hard work!

(1 edit)

Hi! This package sounds neat, but whenever i tried to download it, the web page would timeout before i could reach it, and wouldn't give me an option to download

Nevermind. fixed the problem!

That url is hosted on a raspberry pi server in my apartment, so it's possible it was doing updates or something at the time. I've uploaded it to another host also. If anyone has a problem downloading it in the future try this also: http://ocularobscura.com/unity/packages/CMLowRezStarter.unitypackage

I had no ideas the pis could do that. thats super cool

Yep, they are a full linux distro, so for the most part you can do anything that a normal linux distro can. It is quite slow and crashes/reboots fairly regularly though... (I'm using a pi 3, most likely it's running out of memory over time)

Hi! This is super useful, I'll give it a go :)

I'm having trouble building the game project after importing these your're package

I believe I have solved the problem, Download and try again please!

Omg, thank you so much!

Update 3! IMPORTANT WON'T BUILD BUG FIX (7m/29/2020)

If you've downloaded this package since the last update, you will likely need to download and import it again to fix a bug that won't let you build. It will work fine, until you try to build it. This was due to the automatic layer detection script. It uses some editor only scripting and I forgot to check that you are actually in the editor in the script itself. The update adds the #if UNITY_EDITOR around the stuff that is editor specific code and should let you build now. T_T Super sorry for my oversight in this part.

(1 edit)

From what I've set up so far it works like a charm. The text message box was a nice touch too, great job and thanks a bunch for making this!

(+1)

Glad to be of help :D

Update 4! V4 Better examples and Minor bug fix.

There are now 2 scenes. A 3d and 2d. I added a simple player movement script to get the camera to move around a bit, and added a simple rotation script to the camera in the 3d scene with 3d spheres. There was also a bug with the message box where the letters in the message box were not getting rotated properly on creation when the camera was in 3d mode. This is now fixed. I've also removed the automatic pixel perfect script that I had made from most objects and is off by default, as it was causing problems with movement. It should be fine to use on static objects, but moving things should not have it.

Removing the pixel perfect script from moving objects also made me decide that there's no reason to keep the old player camera prefab and just made 2 prefabs with the render texture. The overhead of a 64x64 pixel render texture is pretty low, so I don't see there being any problem unless the system you run the game on would have had problems running to begin with. The two camera prefabs are set up with orthographic and perspective as they should be. Just drag them into the scene.

I also made the folders a little easier to tell what's extra stuff that you can remove, and what's required for the camera system to work on it's own.

Anyway, that's this update! Probably the last, so... Enjoy!