Mastering Roblox Coding The unofficial guide to leveling up your Roblox scripting skills and building games using Luau programming

Discover how to build enhanced feature-filled games using the power of Luau programming by getting hands-on with creating a complete end-to-end game using Roblox Studio Key Features Leverage the tips and tricks covered in this game development book for writing advanced Roblox scriptsExplore the capa...

Celý popis

Uloženo v:
Podrobná bibliografie
Hlavní autor: Kiepe, Mark
Médium: E-kniha
Jazyk:angličtina
Vydáno: Birmingham Packt Publishing 2022
Packt Publishing, Limited
Packt Publishing Limited
Vydání:1
Témata:
ISBN:9781801814041, 180181404X
On-line přístup:Získat plný text
Tagy: Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
Obsah:
  • Table of Contents Getting Up to Speed with Roblox and Lua BasicsWriting Better CodeEvent-Based ProgrammingSecuring Your GameOptimizing Your GameCreating User Interfaces For All DevicesListening To User InputBuilding Data StoresMonetizing Your GameCreating Your Own Simulator Game
  • Cover -- Title Page -- Contributors -- Table of Contents -- Preface -- Copyright and Credits -- Part 1: Start Programming with Roblox -- Chapter 1: Getting Up to Speed with Roblox and Luau Basics -- Technical requirements -- Understanding Roblox and Luau -- Creating an account -- Introducing Luau -- Understanding and using data types in Luau -- Creating a script -- Hello, world! -- Numbers -- Math operations -- Combining math operations -- String concatenation -- Escape characters -- Casting data types -- Booleans -- Logical operators -- Introducing and using variables -- Lower and upper camel case -- Updating variables -- Removing magic numbers -- Introducing constants -- Using conditionals -- Relational operators -- if-else conditionals -- Using elseif -- Nested if statements -- Understanding scopes -- Exercise 1.1 - Changing properties on a part -- Exercise 1.2 - Police system part I -- Exercise 1.3 - Understanding a script -- Summary -- Chapter 2: Writing Better Code -- Technical requirements -- Using functions -- Making a function -- Parameters and arguments -- Multiple parameters -- Default parameter values -- Returning functions -- Multiple return values -- Nested functions -- Best practices when using functions -- Storing data types in tables -- Storing data in a table -- Reading data from a table -- Setting data in a table -- Using dictionaries -- Multi-dimensional tables -- Functions in a table -- Programming loops -- while loops -- repeat until loops -- for loops -- Continuing and stopping a loop -- Large oops -- Using modules -- Creating a module script -- Requiring the module from another script -- Exercise 2.1 - simple elevator -- Exercise 2.2 - converting loops -- Exercise 2.3 - Police System II (difficult) -- Summary -- Chapter 3: Event-Based Programming -- Technical requirements -- Introduction to events
  • Implementing character upgrades -- Claiming orbs -- Implementing rebirths -- Selling orbs -- Programming GUIs -- Programming the SideButtons GUI -- Programming the Rebirthing GUI -- Programming the DeveloperProducts GUI -- Programming the GamePasses GUI -- Programming the Upgrade GUI -- Updating your game -- Summary -- Index -- Other Books You May Enjoy
  • Displaying controls -- Improving GUI navigation -- Using images -- Using Tweens -- Core GUIs -- Exercise 6.1 - Creating a shop GUI -- Summary -- Chapter 7: Listening to User Input -- Technical requirements -- Working with ClickDetectors -- Working with ProximityPrompts -- Working with tools -- Implementing advanced user input -- Keyboard input -- Gamepad input -- Mouse input -- ContextActionService -- Choosing how to listen to user input -- Exercise 7.1 - Eating food -- Summary -- Chapter 8: Building Data Stores -- Technical requirements -- Introduction to data stores -- Saving data -- Error handling -- Reading data -- Creating default player data -- Saving tables -- Saving dictionaries -- Saving user data in data stores -- Removing data -- Writing safer data stores -- Caching data -- Autosaving -- Improving error handling -- Data store limitations -- Creating a DataManager -- Setting versus updating data -- Working with ordered data stores -- Exercise 8.1 - Building and testing data stores -- Exercise 8.2 - Simple obby -- Summary -- Chapter 9: Monetizing Your Game -- Technical requirements -- Programming game passes -- Prompting game passes -- Rewarding game passes -- Instant game pass reward -- Implementing developer products -- Prompting developer products -- Rewarding developer products -- Working with PolicyService -- Giving Premium Benefits -- Implementing Premium Benefits -- Third-party sales -- Implementing third-party sales -- Exercise 9.1 - building a currency system -- Summary -- Part 3: Creating Your Own Simulator Game -- Chapter 10: Creating Your Own Simulator Game -- Technical requirements -- Introduction to the game -- Creating data stores -- Getting keys for our data stores -- DataManager functions -- DataManager events -- Implementing server scripts -- Implementing leader stats -- Implementing monetization scripts
  • Functions on instances -- Listening to events -- Using properties for missing events -- Creating custom events -- Using bindable events -- Using bindable functions -- Comparing events to modules (advanced) -- Using bindable events in modules (advanced) -- Exercise 3.1 - event-based game -- Summary -- Part 2: Programming Advanced Systems -- Chapter 4: Securing Your Game -- Technical requirements -- Understanding the client and server -- Introducing LocalScripts -- FilteringEnabled -- Replication exceptions to FilteringEnabled -- Client and server responsibilities -- Using RemoteEvents and RemoteFunctions -- Setting up the GUI -- Client-sided Team Changer -- Using RemoteEvents -- Using RemoteEvents from the server to the client -- Using RemoteFunctions -- Implementing security -- Server checks -- Implementing debounces -- Honeypots -- Filtering user text -- TextObject -- The GetNonChatStringForBroadcastAsync function -- The GetChatForUserAsync function -- Exercise 4.1: Securing your game -- Exercise: -- Summary -- Chapter 5: Optimizing Your Game -- Technical requirements -- Understanding and using StreamingEnabled -- Enabling StreamingEnabled -- Programming with StreamingEnabled -- Working with animations -- Uploading animations -- Understanding the Animator object -- Programming an AnimationTrack -- Animations on NPCs -- Working with tweens -- Setting up the gate -- Setting up the server scripts -- Getting tween data -- Understanding TweenInfo -- Creating a tween -- Client-sided debounces -- Custom yielding functions -- Exercise 5.1 - greeting an NPC -- Exercise 5.2 - falling block -- Summary -- Chapter 6: Creating User Interfaces for All Devices -- Technical requirements -- Creating GUIs -- Using ScreenGuis -- Using SurfaceGuis -- Using BillboardGuis -- Optimizing UIs -- Testing GUIs -- Small UI improvements -- Working with color-blindness
  • Mastering Roblox Coding: The unofficial guide to leveling up your Roblox scripting skills and building games using Luau programming