چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Roblox Lua Scripting Essentials: A Step-by-Step Guide

Fédor Dostoïevski [Dostoïevski، Fédor]، Christopher Coutinho

قیمت نهایی

۴۰٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۸٪ تخفیف
  • تخفیف زمان‌دار−۹٬۰۰۰ تومان

۹٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

ناشر
Apress L. P.
سال انتشار
۲۰۲۳
فرمت
PDF
زبان
انگلیسی
حجم فایل
۴٫۸ مگابایت
شابک
9782130608226، 9782330067144، 2130608221، 2330067143، 9788868800253، 9798868800252، 886880025X

دربارهٔ کتاب

Embark on a transformative journey through the exciting world of Roblox Lua scripting with this comprehensive hands-on guide. Tailored to game developers, both seasoned and new, this book serves as your roadmap to mastering the art and science of Lua scripting within the dynamic Roblox Studio environment. You'll explore a wide spectrum of foundational concepts, including variables, functions, loops, tables, arrays, and more. Delve into advanced topics like raycasting, object-oriented programming with humanoids, and intricate leaderboard systems. Each chapter is crafted with real-world examples and step-by-step tutorials, empowering you to create engaging and interactive gameplay experiences. You'll gain profound insights into modularization, efficient coding practices, and techniques to optimize your scripts, paving the way to elevate your game development to an entirely new plane of creativity and complexity. You'll also discover sophisticated scripting concepts, such as custom events, and client-server communication. Invest in your future as a Roblox developer today, and let this book be your guide to crafting extraordinary gaming experiences. Roblox Lua Scripting Essentials provides the insight, tools, and guidance needed to shape your unique path in this thrilling domain of game development. What You'll Learn Wield variables, functions, loops, conditionals, arrays, and more to create dynamic gameplay elements Explore the principles of object-oriented programming, and modularization techniques to develop clean, efficient, and organized code Understand the complex client-server relationships, custom events, and multiplayer functionalities that bring games to life Discover the power of modular coding, enabling you to create more organized and maintainable code bases Lay down a robust foundation in Lua scripting for Roblox Who This Book Is For This book is meticulously crafted to serve a diverse array of readers, ranging from complete beginners to intermediate developers. Table of Contents 5 About the Author 12 About the Technical Reviewer 13 Acknowledgments 14 Introduction 15 Chapter 1: Introduction 18 What Does This Book Require? 19 About Lua 19 Installing Roblox Studio 20 Roblox Studio Templates 21 Exploring Roblox Studio’s Editor 22 Scene View: Camera Movement 24 View Selector 26 Setting Up the Coding Workspace 28 Creating Your First Lua Script 28 Saving and Publishing Your Project 32 Reopening Your Project 34 Summary 35 Chapter 2: Working with Parts 36 Part Primitives 36 The Transform 38 Pitch, Yaw, and Roll 40 Global vs. Local Coordinate Space 41 Translating (Moving) a Part 43 Scaling a Part 45 Rotating a Part 47 Studs: Roblox Unit of Measurement 48 Translation Snapping 49 Rotation Snapping 51 Collisions 52 Anchoring Objects 53 Commenting Your Code 54 Summary 55 Chapter 3: Variables, Scope, Arrays, Operators, and Conditionals 57 Basic Lua Data Types 57 Variables and Literals 59 Naming Variables in Lua 62 Variable Declaration and Initialization 63 Variable Scope 67 Tables, Arrays, and Dictionaries 71 Creating an Array 71 Two-Dimensional Array 72 Creating a Dictionary 74 Operators (Unary/Binary) and Operands 75 Assignment Operator 76 Arithmetic Operators 77 Compound Assignment Operators 78 Relational Operators 79 Length Unary Operator 80 Concatenation Operator 81 String Coercion 82 Escape Sequences 83 Conditionals 85 Logical Operators 89 Operator Precedence and Using Parentheses 94 Summary 96 Chapter 4: Loops 98 While Loops 98 Infinite Loops 99 Repeat...Until Loop 100 Numeric For Loop 101 Generic For Loops 103 Nested Loops 108 Breaking Out of a Loop 110 Continue Statement of a Loop 112 Summary 114 Chapter 5: Objects, Data Types, and Properties 115 Roblox Parts and Objects 115 Object Hierarchy Navigation 116 Roblox (Luau) Additional Data Types 117 Manipulating Parts: Vector3 Data Type 120 Changing the Position of a Part 120 Scaling a Part Using Multiplication 121 Moving a Part Using Lerp 122 Computing Distance Between Parts 124 Manipulating Parts: Cframe Data Type 126 Offsetting a Part 127 Rotating a Part 129 Moving a Part in a Specific Direction 130 Part Rotation to Face Another Part – (1) 131 Part Rotation to Face Another Part – (2) 135 Parenting a Part to Another Part 139 Color3 Data Type 140 Instance Data Type 141 Enum Data Type 142 Random Data Type 145 Properties of Parts (Objects) 147 Summary 152 Chapter 6: Functions and Events 153 Functions 153 Invoking a Function 154 Function Parameters 154 Function Return Values 155 An Arbitrary Number of Parameters 156 Anonymous Functions 157 Events 158 Touched Event 160 Changed Event 163 ClickDetector.MouseClick Event 167 MouseButton1Click Event 168 PlayerAdded Event 170 ChildAdded and DescendantAdded Events 173 Other Miscellaneous Event 175 Event-Driven Programming 176 Script vs. LocalScript 178 BindableEvent 179 RemoteEvent 182 RemoteFunction 186 BindableFunction vs. RemoteFunction 190 Summary 191 Chapter 7: Roblox Services 192 Roblox Services 192 Workspace Service 194 ReplicatedStorage Service 195 Players Service 197 UserInputService 198 Tween Service 201 ProximityPrompt Service 204 RunService 206 SoundService 212 Lighting Service 215 ContextActionService 218 TeamsService 222 TeleportService 224 PhysicsService 227 Summary 236 Chapter 8: Task Library and Module Scripts 238 Threading in Roblox Luau 238 Task Library and Threading 239 The Task.delay(time, function) Method 239 The Task.spawn(function) Method 240 The Task.wait(seconds) Method 241 The Task.defer(function) Method 242 The Task.cancel() Method 244 Module Scripts 249 Summary 258 Chapter 9: Understanding Players, Characters, and Humanoids in Roblox 259 The Roblox Player 259 Player Properties, Methods, and Events 261 Connection to Characters 263 Common Use Cases 264 The Roblox Character 268 Character Components and Design 268 Character Properties, Methods, and Events 268 Character and Humanoid Relationship 271 Common Use Cases 272 The Roblox Humanoid 275 Humanoid Properties, Methods, and Events 276 Integration with the Character and Player 278 Common Use Cases 279 Hierarchy Structure 287 Relationships: Player, Character, and Humanoid 289 Summary 289 Chapter 10: Raycasting 290 Definition and Purpose of Raycasting 290 Common Applications in Game Development 290 Overview of Raycasting in Roblox 291 The Ray Object 291 Basic Raycasting 293 Calculating Intersection Points 295 Raycasting with Filtering 298 Creating a Proximity Sensor for NPCs 301 Pathfinding in Roblox 304 Summary 314 Chapter 11: Tables and Object-Oriented Programming 316 Tables 316 Object-Oriented Programming 317 Encapsulation 317 Inheritance 318 Polymorphism 319 Abstraction 320 Meta-Tables 320 __index 323 __newindex 325 Classes 327 Summary 334 Afterword 335 Index 337

قیمت نهایی

۴۰٬۰۰۰ تومان