This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-10-29 21:36:06

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: JsScratch viewer development thread

ProgrammingFreak wrote:

I think that I might be able to do such a thing. I am pretty good with Javascript and PHP.  smile

This involves MathWizz's long, painful (I mean PAINFUL) array.

I wish you luck.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#27 2011-10-29 21:52:35

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

bbbeb wrote:

ProgrammingFreak wrote:

I think that I might be able to do such a thing. I am pretty good with Javascript and PHP.  smile

This involves MathWizz's long, painful (I mean PAINFUL) array.

I wish you luck.

http://images4.wikia.nocookie.net/__cb20110501020854/officialpmg/images/f/f1/Trollface_HD.jpg


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#28 2011-10-30 01:40:24

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

I have updated the viewer. Again, you may have to clean your cache

Changelog wrote:

Added:
PlayerFrameMorph class
ScratchStageMorph class (just a class that inherits Morph)
ButtonMorph class

Last edited by MathWizz (2011-10-30 01:47:03)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#29 2011-10-30 12:28:33

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

Ugh... Now to write 40+ classes.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#30 2011-10-30 16:58:26

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: JsScratch viewer development thread

Okay, so what do I need to start working on?

Offline

 

#31 2011-10-30 17:45:50

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

Weeeeelllllllll, you could figure out how to read a floating point number from a scratch file. This might help you: http://download.oracle.com/javase/1.5.0 … adDouble()


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#32 2011-10-30 17:52:36

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: JsScratch viewer development thread

MathWizz wrote:

Weeeeelllllllll, you could figure out how to read a floating point number from a scratch file. This might help you: http://download.oracle.com/javase/1.5.0 … adDouble()

Oh. I thought that I could help in Javascript or PHP. As you probably know, Math, I'm not that great at java. Well, I'm rusty.

Offline

 

#33 2011-10-30 18:21:32

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

XD I am using javascript. That just shows you HOW to read a float. I'm saying you should translate is to javascript.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#34 2011-10-30 18:26:56

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: JsScratch viewer development thread

MathWizz wrote:

XD I am using javascript. That just shows you HOW to read a float. I'm saying you should translate is to javascript.

Oh... xD

Okay, so we use that and then use the info in javascript. We just gotta find a way to translate. Okay.  big_smile

Offline

 

#35 2011-10-30 18:29:40

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

Updated.

Changelog wrote:

Fixed:
Sprites now properly fix references.
SmallIntegers now read correctly.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#36 2011-10-30 22:53:01

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

Updated.

Changelog wrote:

Fixed:
Stop and go buttons now show up.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#37 2011-11-01 16:31:41

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: JsScratch viewer development thread

wait- are you guys sure that building them up from squeak is the best approach? Perhaps we could just do what I have been doing all this time and use the porting system I have devised and just automate the process with php.

Code:

function scratchSprite(){
this.costumes = new Array();
this.sounds = new Array();
this.scripts = [array of methods which can be called by events]
}
cat = new scratchSprite();

http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#38 2011-11-01 21:53:36

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: JsScratch viewer development thread

Anyways...
MathWizz can you email me the account info for the website so I can ftp it? I have used 000 before so I know where to find that stuff. Just send me the username and password
chuckhead7@gmail.com


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#39 2011-11-03 14:24:23

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

midnightleopard wrote:

Anyways...
MathWizz can you email me the account info for the website so I can ftp it? I have used 000 before so I know where to find that stuff. Just send me the username and password
chuckhead7@gmail.com

Sent.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#40 2011-11-07 20:33:54

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

Will everyone kindly vote on this to help the development of this project?  smile


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#41 2011-11-11 01:23:28

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

I have updated the viewer. Again, you may have to clean your cache

Fixed:
Reading floating-point numbers from file
Reading signed integer from file

Implemented:
Sprites now go to there position on the screen and are the right size


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#42 2011-11-11 03:42:24

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: JsScratch viewer development thread

Meep join?


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&action=onlineStatus green= online gray=offline

Offline

 

#43 2011-11-11 08:57:33

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: JsScratch viewer development thread

pen13:
No.
btw, nice username.

MathWizz:
I don't know anything about squeak, do you think there is another way?

Last edited by midnightleopard (2011-11-11 09:00:19)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#44 2011-11-11 09:49:27

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

midnightleopard wrote:

MathWizz:
I don't know anything about squeak, do you think there is another way?

Another way than what?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#45 2011-11-11 13:39:44

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: JsScratch viewer development thread

midnightleopard wrote:

pen13:
No.
btw, nice username.

MathWizz:
I don't know anything about squeak, do you think there is another way?

Then I know squeak  and HTML but little js

Last edited by pen13 (2011-11-11 13:41:14)


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&action=onlineStatus green= online gray=offline

Offline

 

#46 2011-11-12 13:17:43

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

I'm on my dad's Android phone and it isn't working...

DEBUGGGGGGGGG!!!


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#47 2011-11-12 13:40:44

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: JsScratch viewer development thread

Darn. Is there a single thing I can do?
D:


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#48 2011-11-12 20:34:28

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: JsScratch viewer development thread

bbbeb wrote:

Darn. Is there a single thing I can do?
D:

Not until I get home and get around to debugging it.

You could try to debug it yourself if you want to.

Last edited by MathWizz (2011-11-12 20:35:03)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#49 2011-11-13 04:35:27

XTREME104
New Scratcher
Registered: 2011-11-13
Posts: 1

Re: JsScratch viewer development thread

Is this open source? I may be able to help, but I'm not sure exactly how good I am at JavaScript and canvas, and I may be able to port this to adobe air

Offline

 

#50 2011-11-13 05:15:44

Qwiffles
Scratcher
Registered: 2011-07-13
Posts: 100+

Re: JsScratch viewer development thread

This looks like it will turn out great!  However, wouldn't having the name 'Scratch' in it make you liable for legal issues?


Don't feed a pet troll.  It will turn evil.

Offline

 

Board footer