MoreGamesNow wrote:
MathWizz wrote:
Are you asking if it is possible to read images (such as costumes) from a Scratch file in JavaScript? That's what I am trying to figure out right now.
Darn it! And yes, that was what i was asking How are you getting the Scratch code with Java (my experience with Java is pretty much zero, so if it isn't possible to give me a simple answer, just say so )?
A Java decompiler.
Offline
Cocolover, you apparently are not a member of the team. Not that I am against you being part of the team, but you can't just walk in and join. Especially not in this project.
Offline
Wow, sorry. I was somewhat busy and I forgot. ;_;
Sooo sorry.
Offline
Okay, I've been studying javascript in this 1000 page book. xD
So I may be of better use now, because I think I have gained a way better knowledge of it.
Offline
ProgrammingFreak wrote:
Okay, I've been studying javascript in this 1000 page book. xD
So I may be of better use now, because I think I have gained a way better knowledge of it.
It always astounds me that there is so much JavaScript out there.
Offline
MoreGamesNow wrote:
ProgrammingFreak wrote:
Okay, I've been studying javascript in this 1000 page book. xD
So I may be of better use now, because I think I have gained a way better knowledge of it.It always astounds me that there is so much JavaScript out there.
Yeah, there is. Probably more than that.
Offline
MathWizz wrote:
I've been taking a little brake from this (as you can see) and have been playing with C++.
I have too!
Could I join? I know javascript like the back of my hand. html too. I really want to see this when it's done.
Offline
MathWizz wrote:
I've been taking a little brake from this (as you can see) and have been playing with C++.
Interesting.
Anything I can do with this?
Offline
MathWizz wrote:
I've been taking a little brake from this (as you can see) and have been playing with C++.
haha that's exactly what I have been doing!
Offline
MathWizz wrote:
ProgrammingFreak wrote:
Anything I can do with this?
With what? This project (JsScratch)?
Yes.
Offline
JP1 wrote:
Could I join? I know javascript like the back of my hand. html too. I really want to see this when it's done.
Hey JP1, I like a guy with a really short username. When I was young, I lied about programming knowledge to have my name on project staff lists.
Pop Quiz:
How do you define and create an instance of an object in javascript? Provide a code example. No google.
Offline
nXIII wrote:
midnightleopard wrote:
Pop Quiz:
How do you define and create an instance of an object in javascript? Provide a code example. No google.Did you mean for that to be a trick question?
no. I am testing whats-his-name's expertise. Not a trick question, but I would accept
class = null; if (!class){ alert('flafadsk'); } else{ alert('alkdsjhsdklr'); }
Offline
What should I do?
Offline
MathWizz wrote:
ProgrammingFreak wrote:
What should I do?
Would you like to try making morphs rotatable in morphic.js?
Sure. You mean Jen's morphic.js, right?
Offline
ProgrammingFreak wrote:
MathWizz wrote:
ProgrammingFreak wrote:
What should I do?
Would you like to try making morphs rotatable in morphic.js?
EDIT: Thismay help.
Sure. You mean Jen's morphic.js, right?
Yes.
BTW... Images are coming along!
Offline
MathWizz wrote:
ProgrammingFreak wrote:
MathWizz wrote:
Would you like to try making morphs rotatable in morphic.js?EDIT: Thismay help.
Sure. You mean Jen's morphic.js, right?Yes.
BTW... Images are coming along!
Awesome.
Offline
midnightleopard wrote:
nXIII wrote:
midnightleopard wrote:
Pop Quiz:
How do you define and create an instance of an object in javascript? Provide a code example. No google.Did you mean for that to be a trick question?
no. I am testing whats-his-name's expertise. Not a trick question, but I would accept
Code:
class = null; if (!class){ alert('flafadsk'); } else{ alert('alkdsjhsdklr'); }
That's an if..else statement. I though you asked for object creation? e.g. (shortest example possible)
{}
The reason it's a "trick question" is because JavaScript doesn't really have instances, it just has objects and their "clones" (objects which inherit from other objects). Instances are a classical-inheritance thing.
Offline
Okay, so I've done the code, but I can't get it to work with morphic. :l
Offline
midnightleopard wrote:
JP1 wrote:
Could I join? I know javascript like the back of my hand. html too. I really want to see this when it's done.
Hey JP1, I like a guy with a really short username. When I was young, I lied about programming knowledge to have my name on project staff lists.
Pop Quiz:
How do you define and create an instance of an object in javascript? Provide a code example. No google.
BTW, it's [color=red]GP1[color].
So, isn't it like this:
function Vector2(x, y){ if(x==undefined){ this.x=0; }elseif(y==undefined){ this.y=0; }else{ this.y=y; this.x=x; } }
and then you define it like:
position = new Vector2();
I didn't pay attention to that part very much, I never had a use for it, but I did make a plugin once, which did something simaler to this:
var stuff = { alertMe = function(e){ window.alert(e); } }
Last edited by GP1 (2011-12-14 22:44:08)
Offline
GP1 wrote:
Code:
function Vector2(x, y){ if(x==undefined){ this.x=0; }elseif(y==undefined){ this.y=0; }else{ this.y=y; this.x=x; } }
function Vector2(x, y) { this.x = x || 0; this.y = y || 0; }
Okeeeeeyy... Enough ranting.
Offline