JasonTomLee
Member
This thread will serve as documentation for those who've purchased the asset
Check out the main page on Itch.io
Importing into your project
First thing's first.
How does everything work? Where do I start? How do I avoid breaking everything?
Check out the main page on Itch.io
Importing into your project
First thing's first.
How does everything work? Where do I start? How do I avoid breaking everything?
Initialization Room for Persistent objects
I HIGHLY recommend using ONE persistent object to initialize all your 'one-time' variables at the start of your game. Whether it is your imported sprite fonts, window dimensions, controls, macros, particle systems/types, etc... this will organize & optimize your workflow.
This will initialize your variables ONCE, go to the next room, and proceed to load your game. Nothing too complicated!
Create Camera FIRST in every room you use it
Because your 'Player' objects need to reference your CAMERA to set the Camera target, you must initialize the Camera first! Here are two ways you ensure it's done right:
- Initialize your objects within the Room's "CREATION CODE". Simply create your camera first and assign it to the proper layers/depths.
- Drag and Drop your objects the usual way, but make sure the Camera is on the wayyyy TOP. This ensures it is initialized before anything else.
-
Debugger Objects
Does the UI 'bug' you? Simply press TAB to toggle it or remove the debugger object from your room.
Here are the two debugger objects this asset uses:
Here are the two debugger objects this asset uses:
1) General Debugger
Displays general information. Info is displayed at the top half of the window.
2) Cam Debugger
Displays visual and text information about the Camera.
Controls
Mouse Controls
Anything with a rectangle around it is a button. Interact with it using the Left Mouse button and scroll wheel.
Left Mouse: Toggle information
Mouse Wheel: Scroll up/down
Right mouse: Copy current Camera settings into a set of scripts.
Keyboard Controls
WASD: Move demo player
Shift: Adjust center coords
C: Copy scripts ( same as Right click )
Explaining the code
There are two subsets of scripts: General and Camera
General scripts
The GENERAL folder contains a bunch of handy scripts I use in every project of mine. Check it out here
Camera scripts
wip
Update List
- Separate debugger code from the main Camera & Controller objects ( 3/9/2019 )
- Use the same letter casing for global objects
- Use consistent letter casing for scripts
- Screen Flash scripts ( 3/9/2019 )
- Screen Flash visual editor
- Black Bars scripts ( 3/9/2019 )
- Black Bars visual editor
- Screenshake damping variables ( 3/9/2019 )
- Add view-angle scripts / editor ( 3/9/2019 )
- Target coord scripts ( move to a certain coordinate, not target obj )
- Basic Shader functionality ( brighten,darken, bloom, contrast, etc... )
Last edited: