Giter Club home page Giter Club logo

Comments (3)

ericoporto avatar ericoporto commented on August 30, 2024

The toggle fps counter is my most used feature probably ever, I would be glad if this function is not removed from script as it's very convenient to throw in a Debug(4, 1); in game_start, I use it so much I know it's numbers by heart. I use zero of other things, so I don't care about the rest, but I really think a script api function to show the fps counter is useful.

from ags.

ivan-mogilko avatar ivan-mogilko commented on August 30, 2024

Alright, I guess this suggestion may be expanded to 3 things:

  1. Provide a low-level api for retrieval of diagnostic information. An existing example is System.GetEngineInteger.
  2. Provide a convenience api for displaying diagnostic information in a default hardcoded way. For this I propose to replace Debug(n,n) with something more explicit, for example: System.DisplayFPS.
  3. Provide a hotkey for the engine to be able to toggle this default info display, which works even if the game does not have anything scripted.

from ags.

ericoporto avatar ericoporto commented on August 30, 2024

but we're lacking a way to give a list of room names in script

Uhm, random idea, have a way to retrieve a dict with all room numbers as keys and names as values - room numbers don't have to be consecutive so they won't work in an array. Something like Game.GetRoomsAsDict().

Other option would be Game.GetRoomName(int n) and have it return null if the room doesn't exist, but it's not clear up to which number to test since RoomCount wouldn't make sense.

from ags.

Related Issues (20)

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.