studio tips & tricks - roblox blog€¦ · for ‘tips’ in the plugin library. further tips....

26

Upload: others

Post on 25-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL
Page 2: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Studio Tips & TricksBrad Sharp

@bradsharppp

Page 3: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Brad Sharp (woot3)! Roblox Engineering Intern! Developer since 2008, worked on Egg Hunt 2018! Plugin Developer

Who I Am

Page 4: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL
Page 5: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Settings! Shortcuts! Command Bar! Code Management! Plugins! Q&A

Overview

Page 6: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Settings

Page 7: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Customize studio to suit you! Adjust camera configuration! Change script editor color scheme! Display physics debugger! Enable Dark Theme

Settings

Page 8: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Shortcuts

Page 9: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Speed up development! Customizable! Plugins can create their own! Full list is available online

! http://robloxdev.com/articles/Roblox-Studio-Shortcuts

Keyboard Shortcuts

Page 10: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL
Page 11: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Toolbar for accessing common functions quickly

! Customizable! Plugins can be added to it

Quick Access Toolbar

Page 12: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL
Page 13: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Command Bar

Page 14: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Run code snippets! Register functions for later use

! Write a function! Run it in command bar! Call the function again later

Command Bar

Page 15: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Code Management& Practices

Page 16: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Use Module scripts to separate code! Makes it easy to find specific code! Especially useful when

collaborating! This year’s Egg Hunt had over

40,000 lines of code managed by 7 programmers

! Common industry practice

Code Management

Page 17: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Break down large chunks of code into smaller more modular blocks

! Use folders to group together related modules

! Name your scripts descriptively

Good Coding Practices

Page 18: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Plugins

Page 19: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Allow you to add extra functionality to Studio

! Many exist that will make specific tasks quicker and easier to do

! You can always create your own, with Lua, to suit your needs

Plugins

Page 20: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! Actions can be used with shortcuts! Keyboard! Quick-access

! Developers no longer need to rely on UserInputService for hotkeys

Plugin Actions

Page 21: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! 2D dockable widgets for plugins

! Allow you to simulate existing Studio tools

! Our existing plugins use them! Terrain Editor

Plugin Widgets

Page 22: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL
Page 23: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

! If it doesn’t exist already, you can create your own

! http://robloxdev.com/articles/Intro-to-Plugins

Plugin Creations

Page 24: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

You can get more Studio tips by installing the ‘Development Tips’ plugin; you can find this by searching for ‘Tips’ in the plugin library.

Further Tips

Page 25: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Reflection

Page 26: Studio Tips & Tricks - Roblox Blog€¦ · for ‘Tips’ in the plugin library. Further Tips. Reflection. Q&A Roblox Username: woot3 Twitter: @ bradsharppp. Title: DS6_Advanced-Studio-Tips-Organizing-Your-Code-FINAL

Q&ARoblox Username: woot3Twitter: @bradsharppp