insality / defold-printer Goto Github PK
View Code? Open in Web Editor NEWPrinter module for rich dialogs in your game
License: MIT License
Printer module for rich dialogs in your game
License: MIT License
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.