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

#151 2012-09-19 15:34:46

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

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

blob8108 wrote:

MathWizz wrote:

blob8108 wrote:

Awesome! Now implement writing. > big_smile

Yikes! One step at a time please.  tongue

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

yep, but we probably won't support re compressing images either, wayyy to complicated.
I think we'll use mainly .sb2 format though...

EDIT: 150th post on this topic!

Last edited by TRocket (2012-09-19 15:35:24)


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

Offline

 

#152 2012-09-19 15:57:42

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

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

blob8108 wrote:

MathWizz wrote:

blob8108 wrote:


Awesome! Now implement writing. > big_smile

Yikes! One step at a time please.  tongue

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

It doesn't HAVE to match the original. The internal pointers can be rearranged.  tongue


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

Offline

 

#153 2012-09-19 16:21:24

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

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

MathWizz wrote:

blob8108 wrote:

MathWizz wrote:


Yikes! One step at a time please.  tongue

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

It doesn't HAVE to match the original. The internal pointers can be rearranged.  tongue

Oh, the references? If you're doing it right they should be the same...  tongue

I found it helpful to test individual bits — have tests for each fixed object, for example.


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

Offline

 

#154 2012-09-19 16:40:10

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

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

@TRocket I noticed your commit. I already did that.  neutral  Mind if I revert it and push mine instead?


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

Offline

 

#155 2012-09-19 23:40:08

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

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

I'm working on costumes now. Only one type of Form works right now. xD


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

Offline

 

#156 2012-09-20 01:20:07

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

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

MathWizz wrote:

@TRocket I noticed your commit. I already did that.  neutral  Mind if I revert it and push mine instead?

Yep, that's fine. I wonder why it didn't tell me there were conflicting. Changes?


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

Offline

 

#157 2012-09-20 16:26:14

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

If you want, I can begin to write code for higher-level logic. (like the execution of blocks).


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#158 2012-09-20 16:36:56

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

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

Tried to compile newest version. Getting errors. Is the function done?

ERROR:In file included from src/scratchio.h:13:0,
                 from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared


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

Offline

 

#159 2012-09-20 16:39:51

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

I'll look, but currently I'm trying to get cairo to work.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#160 2012-09-20 18:16:09

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

Um, where's endian.h?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#161 2012-09-20 18:44:28

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

I finally got Itchy++ to compile. It has a few problems, like the fact everything is tinted, by other than that...

THIS...IS...ITCHY!!!!


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#162 2012-09-20 18:55:09

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

...and has now created a .app of Itchy.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#163 2012-09-20 19:02:21

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

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

pwiter wrote:

Tried to compile newest version. Getting errors. Is the function done?

ERROR:In file included from src/scratchio.h:13:0,
                 from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared

*facepalm*

The #include "scratchio.h" part was SUPPOSED to be below the forward declarations.


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

Offline

 

#164 2012-09-20 19:10:58

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

Anyone have a task for me?

Also, can Math talk on chat.js?

Last edited by bobbybee (2012-09-20 19:17:52)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#165 2012-09-21 07:52:14

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

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

MathWizz wrote:

pwiter wrote:

Tried to compile newest version. Getting errors. Is the function done?

ERROR:In file included from src/scratchio.h:13:0,
                 from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared

*facepalm*

The #include "scratchio.h" part was SUPPOSED to be below the forward declarations.

Lol. Ok...


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

Offline

 

#166 2012-09-22 04:47:06

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

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

Can I join this project? I cannot make a full commitment but every now and again I will come out with a commit.

Github: @logiblocs

Offline

 

#167 2012-09-22 12:06:22

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

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

logiblocs wrote:

Can I join this project? I cannot make a full commitment but every now and again I will come out with a commit.

Github: @logiblocs

added!


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

Offline

 

#168 2012-09-23 05:24:50

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

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

What compile flags should I use (if any) like libraries etc? I am making a makefile so I can work on it on my linux box.

EDIT: Got it working in the end using sdl-config

Last edited by logiblocs (2012-09-23 05:32:38)

Offline

 

#169 2012-09-23 14:10:45

theprogrammerpro
New Scratcher
Registered: 2012-09-01
Posts: 79

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

is their anything i need to do to prepare for testing

Offline

 

#170 2012-09-23 14:12:26

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

At the moment, no.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#171 2012-09-23 18:18:02

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

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

Just a question, whats the address for the github pages site?


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

Offline

 

#172 2012-09-23 18:27:09

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

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

pwiter wrote:

Just a question, whats the address for the github pages site?

I couldn't figure that out. xD


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

Offline

 

#173 2012-09-23 21:30:04

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

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

So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.  smile

EDIT: GAHH! Seg Faults! From a <=?
                             |
                             \/ 
for (uint32_t i = 0; i <= this->spriteCount; i++) {
        this->sprites[i]->drawOn(cr);
}

Last edited by pwiter (2012-09-23 21:39:42)


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

Offline

 

#174 2012-09-23 21:42:28

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

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

pwiter wrote:

So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.  smile

EDIT: GAHH! Seg Faults! From a <=?
                             |
                             \/ 
for (uint32_t i = 0; i <= this->spriteCount; i++) {
        this->sprites[i]->drawOn(cr);
}

Use '<' instead of '<='.


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

Offline

 

#175 2012-09-23 21:54:00

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

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

MathWizz wrote:

pwiter wrote:

So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.  smile

EDIT: GAHH! Seg Faults! From a <=?
                             |
                             \/ 
for (uint32_t i = 0; i <= this->spriteCount; i++) {
        this->sprites[i]->drawOn(cr);
}

Use '<' instead of '<='.

But that is why It doesn't draw all sprites...  tongue

Actually no, my fail knowledge of C++. Java is what I'm coming from.

Last edited by pwiter (2012-09-23 22:01:19)


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

Offline

 

Board footer