Using JavaScript with Twine - Code Liberation
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
Using JavaScript with Twine
Cool effects to polish your interactive story!
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
What is JavaScript?
A 19-year-old programming language that is mainly used on the web.
Allows dynamic interaction and effects to happen based on conditions and events.
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
What is jQuery?
A JavaScript framework, or set of pre-made tools and functions.
jQuery makes creating animation, interaction effects, etc. using JavaScript easier.
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
Using jQuery in Twine
Step 1: Create a new passage and use the script tag to include custom Javascript in your story.
Using jQuery in Twine
Step 2: In the passage area, write:
//requires jquery
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
Basic concepts of JavaScript
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
JavaScript Variables
Useful for storing data that may change or be referenced throughout the course of your game.
For example, best friends may change but the label stays the same:
var myBestFriend = "Isaiah"; var myBestFriend = "Rebecca";
The Code Liberation Foundation Lecture 1b: Using JavaScript with Twine
JavaScript Functions
A group of code that performs a specific task.
var fetch = function (object) { run to the object; pick up the object; bring back the object;
};
fetch(ball);
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- arrays and files
- chapter 6 arrays
- lesson 6 javascript language objects
- javascript arrays and regex s
- chapter 15 javascript 4 objects and arrays
- 50 coding challenges codeguppy
- javascript arrays object
- using javascript with twine code liberation
- lesson 9 custom javascript objects
- beginner s essential javascript cheat sheet
Related searches
- using commas with quotation marks
- using if with conditional formatting
- get date javascript with format
- using databases with python
- using axios with react
- using technology with preschoolers
- using pycharm with anaconda
- using javascript in html
- using although with a comma
- using alexa with fire tv
- using json with python
- using commas with that