alpha123 / arq Goto Github PK
View Code? Open in Web Editor NEWRPG framework for the Sphere game engine
License: GNU General Public License v3.0
RPG framework for the Sphere game engine
License: GNU General Public License v3.0
After changing maps, Arq.person('name_of_pc')
does not refer to the player data, only Arq.person('name_of_pc','name_of_starting_map')
does.
After using an item in battle, the active party member resets. Additionally, the item count doesn't go down.
Using a weapon in battle mode uses it once and removes it from the party member's inventory.
Unfortunately, because ArqScript is case-insensitive and JavaScript sadly isn't, I have to jump through some hoops to access global variables and methods and properties of objects.
Basically, I for-in through all the keys of an object and look for one that matches the desired key, disregarding case. The problem is that native methods (toString, slice, hasOwnProperty, etc) aren't enumerable, so they don't get searched through. Basically, this makes it impossible to call those methods.
Solution:
First check if the desired key is in the object at the current case (which will always be all lowercase, hasownproperty). I don't know why I don't do this already. This will allow calling of all lowercase methods, like slice and pop and replace.
For camelCase methods, do something really ugly: Try to convert underscored_names to camelCase (e.g. convert has_own_property to hasOwnProperty) and check if that exists in the target object.
Not pretty, but the best solution I could come up with. Given that the target niche for ArqScript is writing simple cutscenes, I don't expect this to be used too much, so it's not soooo bad, but it's still ugly.
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.