TheSuccessor wrote:
I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?
Bump
Offline
TheSuccessor wrote:
I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?
Sorry, wasn't on to reply.
Well lets see, which is easier and which is faster?
If the Java Player one is faster use that, other wise use the Scratch one.
I thought it working like this:
The code for each sprite is stored like this
All Code (an array)
( ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )
The execution engine then reads and runs this.
Offline
midnightleopard wrote:
johnnydean1 wrote:
Ok Im back.
I think the arrows and space should be much bigger.
So do I in fact, it was a fast mark up done on Paint!
Is the lower box for project notes?
It could be. It was thinking it could be any JScript that needs to be shown, but project notes would work as well.
yep. I think that would be a great place for project notes.
Maybe we could have it like:
Top Line = Author
2nd Line = Last date edited
3rd Line = ----------------
Rest of it = Project NotesiOS
Whats that?
iOS the the operating system that runs on the apple iPhone, iPod Touch, and the iPad.
See below.Well, I haven't tested javascript prompts on iOS yet. That will work though. I meant a text box but a prompt may be better.
Java Script prompts work on a DS and DSi Opera browser.
It works on iOS, I justed tested it. We will use those for ask prompts.
Ok thats cool. I haven't got a iPod/Pad/Phone so I never knew.We will keep the arrow and space key things though.
Good I hope we will, that should make most projects playable.
Deffinately most projects. Of course, it will also work with regular keyboard input. This is just for touch screen devices.
Thats good. Also going along those lines. When the viewer is run, could we have it say if the project had a global variable called "Viewer", it sets it to true at the begining. So projects could use alternate controls when viewed in the viewer.
Also I hope that we can use the viewer for two things:
1.) Opening projects on your computer
2.) Entering a Scratch username and project number, and opening a project from the Scratch website.
Yep. Shouldn't be too hard, we can use php to read from the specified file, then find the .sb (which I know is hidden in there somewhere) and then decode it.
If you take a project URL such as:
http://scratch.mit.edu/projects/johnnydean1/1411513
then add "/download" on the end
http://scratch.mit.edu/projects/johnnydean1/1411513/download
you get the project!
What do you think?Okay. I will start reading the document now.
Last edited by johnnydean1 (2010-11-14 10:59:30)
Offline
Daffy22 wrote:
If your still interested heres a keyboard with buttons that can then be adapted to do something onclick... http://scratchhtmlviewer.net23.net/keys.html
![]()
very cool! We don't need it because we are using prompts. Keep it, we may change out minds.
Offline
midnightleopard wrote:
Daffy22 wrote:
If your still interested heres a keyboard with buttons that can then be adapted to do something onclick... http://scratchhtmlviewer.net23.net/keys.html
![]()
very cool! We don't need it because we are using prompts. Keep it, we may change out minds.
would you like me to make the arrow keys too?
Offline
Hey I don't know the account details to the site. Can you guys email it to this adress?
[email address removed by moderator]
Last edited by cheddargirl (2010-11-15 10:58:58)
Offline
Daffy22 wrote:
Would you like me to make the arrow keys too?
![]()
Do the arrows in a simmilar way, laid out like I said!
Wait! How about a Turbo on/off checkbox on the top?
I would say around the box for project notes, but good idea!
Offline
johnnydean1 wrote:
TheSuccessor wrote:
I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?Sorry, wasn't on to reply.
Well lets see, which is easier and which is faster?
If the Java Player one is faster use that, other wise use the Scratch one.
I thought it working like this:
The code for each sprite is stored like this
All Code (an array)
( ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )
The execution engine then reads and runs this.
I would just make a Thread for every script and step the Thread every frame. Follow?
Offline
MathWizz wrote:
johnnydean1 wrote:
TheSuccessor wrote:
I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?Sorry, wasn't on to reply.
Well lets see, which is easier and which is faster?
If the Java Player one is faster use that, other wise use the Scratch one.
I thought it working like this:
The code for each sprite is stored like this
All Code (an array)
( ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )
The execution engine then reads and runs this.I would just make a Thread for every script and step the Thread every frame. Follow?
Nice.
Offline
Hows everyone comming along?
Offline
ok, what have you done so far?
Offline
MathWizz wrote:
ScratchReallyROCKS wrote:
Where exactly are the scripts in the output from the reader?
I'll upload the new version then explain. Hang on...
Thanks!
EDIT: I see you added a size warning.
Last edited by ScratchReallyROCKS (2010-11-14 17:26:33)
Offline
Just a thought here...
It seems that the posts in this thread are getting a little, er, close together in terms of posting time. Perhaps you should set up a chatroom or Hamachi network so that you can get more work done when you are all online?
Offline
meowmeow55 wrote:
Just a thought here...
It seems that the posts in this thread are getting a little, er, close together in terms of posting time. Perhaps you should set up a chatroom or Hamachi network so that you can get more work done when you are all online?
We could set one up on the website....hmm....who has access to the files on the website anyway?
Offline
markyparky56 wrote:
johnnydean1 wrote:
How about we use a combination of:
HTML
PHP
J-Script
And others
To make a new Scratch viewer.
It would not use Flash, Squeak, Java or any others.
If we design it to scale to the screen then anything we view it on would be able to view Scratch projects.
If we made it using these we could view any project on a:
I-Pod
I-Phone
DS (with browser game)
DSi
DSi XL
Wii
COMPUTER
And anything else with a web browser!
So can we make it?Bob the Builder said:
Yes we can!Ok, one thing you need to know is that HTML is how you code webpages, not applications on the webpage. Php... i'm sure that thats just like HTML, just more advanced, though it might be possible... JavaScrpt is like an extension to HTML (sortta) so I'm not exactly sure how you could write a project viewer with it. I personaly think that this is an impossible task forsaking Flash and Java.
Uh, dude? HTML5? Hello?
Offline
johnnydean1 wrote:
If we made it using these we could view any project on a:
I-Pod
I-Phone
DS (with browser game)
DSi
DSi XL
Wii
Xbox
BlackBerry
Other smartphones (Windows Phone, Nokia, Android, etc.)
iPad
Other tablets (Samsung Tab, HP Slate, etc.)
And anything else with a web browser!
bump
Offline
ScratchReallyROCKS wrote:
MathWizz wrote:
ScratchReallyROCKS wrote:
Where exactly are the scripts in the output from the reader?
I'll upload the new version then explain. Hang on...
Thanks!
EDIT: I see you added a size warning.
The ScratchStageMorph is in the var "object" and the project info is in the var "info".
Offline
MathWizz wrote:
ScratchReallyROCKS wrote:
MathWizz wrote:
I'll upload the new version then explain. Hang on...
Thanks!
EDIT: I see you added a size warning.The ScratchStageMorph is in the var "object" and the project info is in the var "info".
Okay. Sprites?
Offline
ScratchReallyROCKS wrote:
MathWizz wrote:
ScratchReallyROCKS wrote:
Thanks!
EDIT: I see you added a size warning.The ScratchStageMorph is in the var "object" and the project info is in the var "info".
Okay. Sprites?
Sprites are..? Aha! I can't find them because it didn't fix the Array right. XD NOW, they are in "object.variables[2]".
BTW: I haven't finished it yet so some things might not work yet. I you find something, tell me.
EDIT: "object.variables[2]" is the submorphs, not sprites. "object.variables[16]" is the sprites.
Last edited by MathWizz (2010-11-14 21:16:23)
Offline