Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Lighting Effect - How to Make a 2D Game in Java #44
Play lesson

How to Make a 2D Game in Java - Lighting Effect - How to Make a 2D Game in Java #44

5.0 (0)
8 learners

What you'll learn

This course includes

  • 26 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video, we implement darkness and lighting effects that are provided by torch or lantern so we can create nighttime situations or dark interiors such as dungeons, caves, ruins, etc. There are many methods to add lighting effects and this time we apply a so-called smooth lighting/soft lighting effect by utilizing Area, Rectangle2D, Ellipse2D, and RadialGradientPainclass. Guidelines for using Blue Boy Adventure's code and assets: https://docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/ Thanks for watching. Timestamps: 0:00 Introduction 0:45 Creating EnvironmentManager and Lighting class 3:30 What we're gonna do (Summary) 4:57 Creating a rectangle with a hall in the middle 14:12 First result (Spotlight effect) 14:56 Creating a gradation effect 21:20 Second result 22:24 Changing the size of the lighting area 23:37 Conclusion #javagamedev #javagametutorial

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere