Code Monkey home page Code Monkey logo

defold-printer's People

Contributors

insality avatar rocamocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

defold-printer's Issues

Clearer documentation for play_sound()

It is unclear as to how this works before doing a deep dive into the code and dissecting when it is called by other parts of the program. I suggest the following change to the API entry to make it easy to understand how to use the feature without having to dissect the code:

By default this function is empty, and is called every time a new letter appears. When called in this way, the value paired to the key "sound" within the letter's style table is passed as the name parameter if it exists. this makes it possible to define the sound to play per letter through the styling table by overriding the empty function with the following:

printer.play_sound = function(name)
โ€ƒโ€ƒsound.play("sounds#" .. name)
end

Printer GUI tries to fetch built in system font that does not exist.

On fetching it as a library in Defold, it tries to fetch a font that is no longer there. It tries to use a font /builtins/fonts/system_font.font however it cannot be found on built. This can be worked around by just switching it in the editor to the built-in default font. But it is a bit jarring to do it every time.
Here is the error message.

/printer/printer.gui
The file '/builtins/fonts/system_font.font' could not be found.

image

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.