mistreevous-visualiser's People
mistreevous-visualiser's Issues
Add Bot window
Add a bot window where bots can be added (maybe dragged into position).
The editor will behave normally UNLESS there is at least a single bot on the bot window, in this case there will be a bot selector field for our definition and board (which will take a 'bot' and 'world' object that will have all the cool methods on) and the run button will execute for ALL bot behaviour tree instances.
Maybe we just have two editors? One standard one with definition and board like normal and one where the bot window is showing and we always have a default bot but others can be added.
We also might want a pre-simulation script that takes a 'world' argument and sets everything up before starting.
Add console window below canvas with buttons in sidebar
This should output whatever is passed to the write() function that is passed in to the board. Also pass in getString("message"), getBoolean("message") and getNumber("message") that can be called from board functions that shows a dialog with the message and an input based on the data type. Could have an IsDoorOpen condition that calls getBoolean in order to get the result from the user.
Use ES6 class syntax for board
At the moment we use an object literal in the board input, we should use nice class syntax.
var shout = () => alert("shout!");
function makeBoardClass(shout) {
return class Board {
constructor() {
this.value = 9000;
}
getValue() {
return this.value;
}
doShout() {
shout();
}
};
}
var x = makeBoardClass(shout)
var board = new x()
board.getValue()
board.doShout()
In the above example we could pass in 'getStringValue', 'getNumberValue', 'getBooleanValue', 'showInfoToast', 'showErrorToast' just like we are passing the 'shout' function as a way of hooking our board up to editor functions.
The default value for the board input should now be 'class Board {}' rather than '{}'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.