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

#126 2012-09-18 17:32:43

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

Re: Itchy++ - a Scratch C++ Port

I know, but is there a simple way around it?


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

Offline

 

#127 2012-09-18 17:34:09

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

@TRocket - Definition of Abrade: verb; to scrape or wear away by friction or erosion.
Hence, "abrade," which is similar in meaning to "scratch."

That's all I was getting at.  I'm worried about the confusion with Itchy++.  Besides, I don't find Itchy such an appealing name in the first place...

Offline

 

#128 2012-09-18 18:02:01

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

lol Inf fps!
@MathWizz you're now admin!
@amcerbu I know, but since this is going to be based on scratch it makes sense to have a name related to scratch?

EDIT: Forgot to mention we will use boost libraries

What does boost do?


http://i.imgur.com/YBeXc.png

Offline

 

#129 2012-09-18 18:07:29

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

Re: Itchy++ - a Scratch C++ Port

It is a library of helpful stuff. I don't know if we will need it or not...

Last edited by MathWizz (2012-09-18 18:09:22)


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

Offline

 

#130 2012-09-18 18:37:20

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

It is a library of helpful stuff. I don't know if we will need it or not...

Oh... Ok.

Also we need to regulate the frame rate.


http://i.imgur.com/YBeXc.png

Offline

 

#131 2012-09-18 20:31:26

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

I know, but is there a simple way around it?

ntohl?

EDIT: Microsoft's documentation isn't very good…

Last edited by nXIII (2012-09-18 20:38:37)


nXIII

Offline

 

#132 2012-09-18 20:39:13

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

Re: Itchy++ - a Scratch C++ Port

It is a good assumption that that is windows only?


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

Offline

 

#133 2012-09-18 21:02:31

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

It is a good assumption that that is windows only?

ntohl isn't windows-only.


nXIII

Offline

 

#134 2012-09-18 21:10:23

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

I can do framerate regulation stuff.  Also, I think we should separate the "playing project" part of the program from the "editing scripts" part to make things simpler, so starting scripts will sort of open a new window, and you won't be allowed to edit scripts until you've hit the stop button.  Just makes things simpler on our end (and less likely to fail).

Offline

 

#135 2012-09-18 21:21:09

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

Re: Itchy++ - a Scratch C++ Port

@amcerbu the only reason I can see to have a second window is to separate the drawing of the stage and IDE, everything else is really simple.


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

Offline

 

#136 2012-09-18 21:32:11

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

I'm sorry, I wasn't quite clear.  Not necessarily a separate window, but the script editor will be hidden while running the project.  That keeps us from having to deal with the IDE and the actual project at the same time.  So yeah, separating, as you said, drawing of the stage and the IDE.

Offline

 

#137 2012-09-18 21:35:56

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

Re: Itchy++ - a Scratch C++ Port

...but that breaks the idea live editing in Scratch.  neutral


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

Offline

 

#138 2012-09-18 21:42:30

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

Does it, really?  Why would anyone need to edit scripts while scripts were running?

By the way, the Boost library has multi-threading capabilities.

Last edited by amcerbu (2012-09-18 21:43:14)

Offline

 

#139 2012-09-18 21:44:40

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

Re: Itchy++ - a Scratch C++ Port

SDL has threads too. I've never used either though.


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

Offline

 

#140 2012-09-18 21:48:31

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

A compromise might be the ability to pause execution and edit scripts (which is better than editing them while the project is running anyway).

Last edited by nXIII (2012-09-18 21:49:04)


nXIII

Offline

 

#141 2012-09-18 21:56:04

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

Re: Itchy++ - a Scratch C++ Port

It would be cool to implement a debugger, I don't really see why locking scripts it necessary though. Anyway, I can read a whole scratch file into memory!  big_smile

Oh shoot. Not quite. Forgot about one thing...

EDIT: Nvm. I didn't forget about it.

Last edited by MathWizz (2012-09-18 21:56:49)


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

Offline

 

#142 2012-09-18 22:23:58

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

Yay, we've got file interpretation!  How are we storing files in memory?  I assume we're not going to constantly be parsing and re-parsing the .sb, are we?  So we'll need some sort of class to store a Scratch project file... and we'll need classes for sprites, costumes, scripts (probably), etc.  Wow, we've got a lot of work. 

EDIT: Idea!  We can use function pointers to deal with scripts efficiently.  You create a class for a block, and then you inherit classes for command (void), boolean (bool), numerical (int or double), etc, etc, etc.  Then you can create arrays of blocks!

Last edited by amcerbu (2012-09-19 00:35:36)

Offline

 

#143 2012-09-18 22:29:59

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

Re: Itchy++ - a Scratch C++ Port

amcerbu wrote:

Idea!  We can use function pointers to deal with scripts efficiently.  You create a class for a block, and then you inherit classes for command (void), boolean (bool), numerical (int or double), etc, etc, etc.  Then you can create arrays of blocks!

Oooohhh. I didn't think of that.

EDIT: Currently getting  a seg fault. Gaaahhhh.

Last edited by MathWizz (2012-09-18 22:30:20)


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

Offline

 

#144 2012-09-19 00:35:15

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

Oh, and TRocket, do you like the name suggestion?  Does anyone else have any suggestions for an alternate name (or is everyone okay with sticking with Itchy++...)?  I just don't feel like the name "Itchy" draws people to our product -- which we ultimately want.  Also, there's PerspectiveDesigns' "Itchy++" project, a mini-programming language written within Scratch.  Any thoughts from other members of the team?

Offline

 

#145 2012-09-19 02:05:55

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

I wouldn't mind changing the name again but only if lots is people want to...

Also please use the github issue tracker to assign tasks and make use if branches...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#146 2012-09-19 02:24:41

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

amcerbu wrote:

Does it, really?  Why would anyone need to edit scripts while scripts were running?

I do it all the time!  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#147 2012-09-19 02:32:11

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

I can read a whole scratch file into memory! :D

Awesome! Now implement writing. >:D


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#148 2012-09-19 13:20:12

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

Re: Itchy++ - a Scratch C++ Port

blob8108 wrote:

MathWizz wrote:

I can read a whole scratch file into memory!  big_smile

Awesome! Now implement writing. > big_smile

Yikes! One step at a time please.  tongue


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

Offline

 

#149 2012-09-19 15:27:05

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

Mathwizz, did you commit? the files haven't changed?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#150 2012-09-19 15:32:19

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

blob8108 wrote:

MathWizz wrote:

I can read a whole scratch file into memory! :D

Awesome! Now implement writing. >:D

Yikes! One step at a time please. :P

And then you get the fun of writing tests where you read something, write it again, and check it matches the original... :P

Last edited by blob8108 (2012-09-19 15:32:26)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

Board footer