Making JavaScript Interface with Construct-2 ?

Discuss game development design and post your game ideas

Post » Sat Mar 22, 2014 9:47 am

The interface to the game platform will be via a javascript framework which will provide functions for
essential functions such as data requests, and game results (number of questions correct and incorrect).
If you have a good reason, you may request to interact directly with the server using JSON-based web
service requests, instead of using the javascript framework.
In addition, at appropriate intervals you must pass information back to the server. This includes length
of time playing, score, and correct and incorrect items.
If you are selected you will receive the detailed JSON interface. To help you with building and estimating
this game, we have provided the following pseudocode JSON description:
“Metadata”:{
“DifficultyLevel”:<1-5>,
“UserName”:<Text>,
“UserAvatar”:<Image>,
“LessonName”:<Text>,
“LessonImage”:<Image>,
“LessonCreatorName”:<Text>,
“LessonCreatorLogo”:<Image>,
“QuestionType”:<”text” or “image” or “audio”>,
“AnswerType”:<”text” or “image”
}


I have right now CallJs Plugin which allows to call javascript in Construct-2 ..... My Question is that Can I make Javascript Interface of game Using CallJs or whatever on Construct-2
B
5
G
1
Posts: 9
Reputation: 422

Post » Sat Mar 22, 2014 1:52 pm

Use the Javascript SDK to make a plugin.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Sun Mar 23, 2014 2:27 am

Thanks Ashley. I was also thinking about that.
B
5
G
1
Posts: 9
Reputation: 422

Post » Sun Mar 23, 2014 7:21 am

@Chotu

As Ashley said, you could make a plugin to do that.
This plugin is a command parser - read data, then call official function plugin (in your plugin). So that you could provide another text-type interface to control the events.

This is an example which could control events by a csv string.
source code of this plugin
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sun Mar 23, 2014 1:54 pm

@rexrainbow

Agreed, Thanks for assistance. I am thinking about that. I am highly impressed by forum assistance, Senior developers even scirra developers are available for help.
I will figure it out. If i am get stuck then again i will need advice.

Thanks again.
B
5
G
1
Posts: 9
Reputation: 422


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 1 guest