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

#176 2012-09-23 23:19:16

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

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

pwiter wrote:

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.

C++ and Java for loop are the same.  tongue


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

Offline

 

#177 2012-09-23 23:25:36

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

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

I don't know if it's just me, but the whole ...

if (condition) {
   statement;
}

... Java bracket convention really bothers me.  I like to stick with good old C++:

if (condition)
{
    statement;
}

Offline

 

#178 2012-09-23 23:53:47

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

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

amcerbu wrote:

I don't know if it's just me, but the whole ...

if (condition) {
   statement;
}

... Java bracket convention really bothers me.  I like to stick with good old C++:

if (condition)
{
    statement;
}

I've switched between habits so many times, and FINALLY I've stuck with one. Now you want me to change it.  neutral

tongue


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

Offline

 

#179 2012-09-23 23:55:35

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

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

if (condition) {
is good syntax
}


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#180 2012-09-24 00:52:35

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

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

amcerbu wrote:

I don't know if it's just me, but the whole ...

if (condition) {
   statement;
}

... Java bracket convention really bothers me.  I like to stick with good old C++:

if (condition)
{
    statement;
}

they both work and are used in both languages by different people
it's just a matter of preference


Posts: 20000 - Show all posts

Offline

 

#181 2012-09-24 03:31:57

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

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

jji7skyline wrote:

if (condition) {
is good syntax
}

This one looks prettier.  tongue


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

Offline

 

#182 2012-09-24 07:30:26

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

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

blob8108 wrote:

jji7skyline wrote:

if (condition) {
is good syntax
}

This one looks prettier.  tongue

Agreed.


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

Offline

 

#183 2012-09-24 15:51:42

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

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

pwiter wrote:

blob8108 wrote:

jji7skyline wrote:

if (condition) {
is good syntax
}

This one looks prettier.  tongue

Agreed.

+1


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

Offline

 

#184 2012-09-24 16:32:45

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

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

I found our gh-pages! tongue  it's at http://itchyplusplus.github.com/ItchyPlusPlus/
feel free to edit as you wish!


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

Offline

 

#185 2012-09-24 19:14:05

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

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

@TRocket - The GitHub Page looks really nice!  Do you think you could you edit a link to that page into the first post of this topic?

Offline

 

#186 2012-09-24 19:28:55

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

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

TRocket wrote:

pwiter wrote:

blob8108 wrote:


This one looks prettier.  tongue

Agreed.

+1

+2.71
+3.14159286589

(both from memory)


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

Offline

 

#187 2012-09-24 19:32:03

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

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

amcerbu wrote:

The GitHub Page looks really nice!

That's because it was generated by GitHub.  tongue


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

Offline

 

#188 2012-09-24 20:14:36

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

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

bobbybee wrote:

TRocket wrote:

pwiter wrote:


Agreed.

+1

+2.71
+3.14159286589

(both from memory)

(From memory)
Pi=3.14159265358979323846264338
E=2.71828182846


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

Offline

 

#189 2012-09-24 20:24:16

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

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

Do we have to  be admin to use the pages generator?


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

Offline

 

#190 2012-09-25 19:40:47

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

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

I have commited an update to scratchio.h, which doesn't include endian.h for mac, and insteads embeds a copy of endian.h. (for cross-platform reasons).


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

Offline

 

#191 2012-09-27 15:43:58

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

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

I think we should have a separate process for IPPX (ItchyPlusPlus eXecution enviroment/vm) this way we can run a program on the target without having to run the editor...


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

Offline

 

#192 2012-09-27 15:46:00

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

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

Good idea  smile


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

Offline

 

#193 2012-09-27 17:18:08

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

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

Good idea, though I don't know how to do multi-threading in C++.

Offline

 

#194 2012-09-27 17:32:48

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

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

I do  smile  I did it in FireMMO.


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

Offline

 

#195 2012-09-27 19:13:44

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

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

Do you have to use Boost or some other external library, or does it come with the standard C++ library?

Offline

 

#196 2012-09-27 19:56:54

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

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

It doesn't  come with standard c++, but the Apis included in windows and posix are fairly easy to understand if you put some time into it.


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

Offline

 

#197 2012-09-27 20:46:17

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

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

SDL has threading capabilities.


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

Offline

 

#198 2012-09-27 21:50:55

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

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

bobbybee wrote:

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

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

What do you mean by tinted? Screenshots?


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

Offline

 

#199 2012-09-28 08:05:01

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

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

Turned out to be a prob with my graphics card not itchy.


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

Offline

 

#200 2012-09-28 11:53:20

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

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

bobbybee wrote:

Turned out to be a prob with my graphics card not itchy.

Did you get it fixed, or is it still a problem?

Offline

 

Board footer