Skip to content

PlayMakerEcosystem/PlayMaker--UnityLearn--2dPlatformer_U2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityLearn 2dPlatformer PlayMaker

This is a 100% PlayMaker port of Unity 2d Platformer learning project

This project is a work in progress:

Description

you need the following setup:

  • Unity 2020.2.1 at least
  • PlayMaker 1.9.1 at least

Improvements over the original version:

  • Leak with Enemies The original script when enemies fall into the water has a memory leak: the enemy GameObject is not destroyed, leading a definite Memory Warning on Mobile devices and a crash.

  • No Pooling system The original system creates and destroy rockets, enemies and background props, while it runs fine on most modern platforms, it is known that creating and destroying GameObject has a performance impact. This PlayMaker version offers a simple custom Pooling solution (WIP)

  • Bad Scene setup The original version is not very clean in the way the hierarchy is organised, typically, objects are being created without proper parenting resulting in a very clunky root with constant creation and deletion of object and so it's near impossible to select a GameObject while the scene is running. The PlayMaker version parent all created object so that the initial hierarchy remains as is.

  • Old UI This PlayMaker version uses the new Unity UI system, so this is an added value to this project as you can see how to integrate the new UI system in a proper project. -- Health Bar is following the Player, so this demonstrate important interaction between the 3d world and the UI Canvas.

Installation instructions

Make sure you 'Clone' this project (as opposed to download the zip) using Github Desktop or SourceTree Application, they will ensure that you get everything.

This project is using a 'submodule' called PlayMaker utils, and so it requires extra step to check out the sub module. If you want to download the zip, that's fine, but make sure you also go get the PlayMaker utils (https://github.com/jeanfabre/PlayMaker--Utils) zip as well and put it in Assets/PlayMaker Utils.

BenchMark

coming soon, see Unity 5 version for last benchmarks.

https://github.com/jeanfabre/PlayMaker--UnityLearn--2dPlatformer

Notes:

Overall, this is very interesting to see that the pure PlayMaker solution doesn't expose any issues or noticeable downside on playability and performances, a 1 or 2 frame difference for the FPS isn't really an issue given that this will vary very much based on the client computer performances. If you have other states numbers, please share so we can get a sense of the variation across different computers. Noticeable, Memory allocation from Xcode debugging shows 10MB more for PlayMaker. It should be expected that more memory is allocated when using big frameWork like PlayMaker.

TODOS:

-- The background parallax system needs porting to PlayMaker -- Add Touch Support -- Make a Networked version using Photon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages