Locking and Unlocking Levels in Your Solar2D Games

Manage game levels effortlessly with OGT Level Manager. Unlock levels and track scores with ease using this versatile library designed for game developers.

  • Overview
  • Curriculum
  • Instructor
  • Review

Brief Summary

The OGT Level Manager simplifies level management in games, allowing you to lock and unlock levels with ease. It tracks player scores and stars, offers customizable graphics, and comes with helpful tutorials to get you started. It's a must for game developers looking to save time!

Key Points

  • Use OGT Level Manager to easily manage game levels.
  • Unlock and lock levels with simple commands like unlockNextLevel().
  • Track player scores and stars earned on each level.
  • Customizable graphics and positioning for level displays.
  • Video tutorials available for both beginners and intermediate users.

Learning Outcomes

  • Understand how to implement the OGT Level Manager in your game.
  • Learn to unlock and manage levels using simple commands.
  • Gain skills in customizing level displays and graphics.
  • Track player performance through star ratings.
  • Save time in game development by utilizing OGT features.

About This Course

Use the OGT Level Manager to handle level management in your games! Lock and unlock levels easily. Full code included!

     Many games are based on levels, and most of those games have a screen where: 

  • The user can choose a level to play.

  • Some levels are locked until previous levels have been played.

  • A number of stars are shown based on the player’s score for that level.

     One of the most commonly asked game dev questions is, “How do I lock and unlock levels?” Until now I’ve tried to explain the concept to people but now I have a better answer… 

The Outlaw Game Tools Level Manager

OGT Level Manager is a library you include in your game and then “tweak” some variables to specify which graphics you want to use, how many total levels you have, etc.

     And then in your game it’s as easy as this to unlock the next level when the player has finished with the current level: 

  unlockNextLevel() 

     OGT Level Manager keeps track of which levels have been unlocked and it’s shown automatically when the player goes back to the level select screen! 

     If you’re using a “stars” system in your game, OGT Level Manager will even keep track of how many stars were earned on each level. And it’s this easy to use: 

  updateStars(2) 

     That one call will let OGT Level Manager know the player earned two stars on that level and it will automatically show the correct number on the level select screen. 

     Here are some of the features found in this library: 

  • No limit to the number of levels.

  • Multiple pages with next and previous arrows.

  • One to three stars shown on levels (optional).

  • Use your own graphics. Using smileys instead of stars? No problem!

  • Tweak the position of level boxes, arrows, stars, numbers, etc.

  • One Composer scene with data loaded for each level? Works that way.

  • One Composer scene for each level? Works that way, too!

     Basically, I’ve made it easy to drop in your own graphics, and then tweak the position of any that may need it by setting variables. Changing the actual code is not necessary. 

  Requirements: 

  • Solar2D.

  • Use Composer for scene management in your game (built-in to Solar2D).

     OGT Level Manager comes with two sets of tutorial videos. 

     The first set is for those people who want to just use the library in their games and don’t really care about the stuff under the hood. These are the “basic how to use it” videos. 

     The second set dives in behind the scenes and shows you how things work. Just a word of warning, for this second set of videos I’m assuming you have at least an intermediate knowledge of using Solar2D. I don’t start clear back at the “this is how you display a graphic” point.   

  You will save a LOT of time by using OGT Level Manager -- time you can spend working on the more fun parts of your new game! 

  • Create fun and easy-to-use level selectors in your game.

  • Keep track of how many stars are earned on each level in your game.

  • Save and retrieve scores for each level of the game.

Instructor

Profile photo of J. A. Whye
J. A. Whye

Jay has been programming professionally since 1988, starting with game programming and then over the years moving to internet programming with a major Seattle telecommunications firm. Jay started programming for mobile devices in 2010 and currently has several games and apps in the Apple App Store with more on the way. In addition to writing hundreds of technical articles over...

Review
4.9 course rating
4K ratings
ui-avatar of William Davidson
William D.
5.0
7 years ago

I have taken courses with this instructor before and he is EXCELLENT!!!!!!

  • Helpful
  • Not helpful
ui-avatar of Oscar Lantigua
Oscar L.
5.0
9 years ago

Saved me so much time. Fantastic!!

  • Helpful
  • Not helpful
ui-avatar of HĂĽseyin Calikbasi
HĂĽseyin C.
5.0
9 years ago

Very nice documentation and well prepared!

  • Helpful
  • Not helpful
ui-avatar of Axel
Axel
5.0
9 years ago

Always good information and good video quality

  • Helpful
  • Not helpful
ui-avatar of Stan Darpino
Stan D.
5.0
11 years ago

OGT Level Manager is a well thought out tool for students to use and expand on for their game development. The instructor, J. A. Whye, is a great instructor who carefully steps you through the procedures and always offers "more fuel for thought" to help you think of ways to apply to your own project.

  • Helpful
  • Not helpful
Leave A Reply

Your email address will not be published. Required fields are marked *

Ratings

Courses You May Like

Lorem ipsum dolor sit amet elit
Show More Courses