Giter VIP home page Giter VIP logo

solar2dgamespeed's Introduction

Solar2D - Game speed control

This tool is designed for controlling the game’s speed in Solar2D, primarily for debugging purposes. It allows you to adjust the speed of various game elements, providing a flexible environment for testing and debugging.

Controls

You can find a keyboard.lua inside the GameSpeed folder which is has the basic controls for this tool. It is in a different file since this is very likely the file you will like to change according to your project.

  • Space bar: Toggle Fast mode.
  • Left arrow key (hold): Fast mode on.
  • Right arrow key (hold): Slow mode on.
  • Up arrow key: Speed++.
  • Down arrow key: Speed--.

Important Notes

  • Early Initialization: The tool must be required early in the app to avoid issues with enterFrame events, transitions, or delays.
  • Debugging Use Only: This tool is intended for debugging purposes and should never be used in production. While reliable, it lacks precision.
  • os.clock() Behavior: The os.clock() function still returns the actual time to prevent “going back in time” when reloading the app.
  • Physics Interaction: The tool affects physics, but using physics.setTimeScale(scale) in conjunction with this tool can cause conflicts.

Ownership and License

This tool was created by Depilz for Studycat Limited. Studycat Limited is happy to share it with the community as open-source software under the MIT License.

Feel free to adjust or expand upon this as needed to better suit your project’s specifics. If you have any additional details or sections you’d like to include, let me know!

solar2dgamespeed's People

Contributors

depilz avatar

Stargazers

Jeremy avatar Serkan Aksit avatar Kan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.