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

#351 2012-11-08 15:05:31

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

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

roijac wrote:

TRocket wrote:

roijac wrote:


why do you need widgets?
are you making an editor also?

widgets are things like text boxes, buttons, toolbars, etc...
yes we are also making an editor... soon

i know what widgets are, i code M30W  wink

why not come over, actually?
I've got saving/loading working perfectly, editing code is already working and it's super easy python  wink

I might do, but i would still like to write at least the execution engine in C++, because, in my opinion, python, being interpreted, seems to be more for writing scripts that use light maths, but not full programs like scratch. I'd say the same thing about writing scratch in Flash though...

It seems i like commas today  tongue


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

Offline

 

#352 2012-11-08 16:01:47

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

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

http://en.wikipedia.org/wiki/List_of_Python_software#Applications

and if i see it's too slow, i can always move some of it to cython

Offline

 

#353 2012-11-08 16:14:43

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

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

TRocket wrote:

roijac wrote:

TRocket wrote:


widgets are things like text boxes, buttons, toolbars, etc...
yes we are also making an editor... soon

i know what widgets are, i code M30W  wink

why not come over, actually?
I've got saving/loading working perfectly, editing code is already working and it's super easy python  wink

I might do, but i would still like to write at least the execution engine in C++, because, in my opinion, python, being interpreted, seems to be more for writing scripts that use light maths, but not full programs like scratch. I'd say the same thing about writing scratch in Flash though...

It seems i like commas today  tongue

How about wxWidgets?


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

Offline

 

#354 2012-11-09 16:24:40

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

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

ok, i've just committed to a new branch please could somebody who has more experience with makefiles come and make the building recursive...


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

Offline

 

#355 2012-11-09 20:31:03

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

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

Hm... Trying to build on windows gives this error:

Code:

c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../libmingw32.a(main.o): In function `main':
C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
make: *** [itchy] Error 1

EDIT: Hm... All of my compiles are now giving this error.

Last edited by pwiter (2012-11-10 08:09:38)


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

Offline

 

#356 2012-11-10 06:15:16

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

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

for some reason i can't get wx-config to work in the makefile...


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

Offline

 

#357 2012-11-10 08:21:49

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

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

TRocket wrote:

for some reason i can't get wx-config to work in the makefile...

There might be some tutorials on http://wiki.wxwidgets.org/. Did you set it up correctly?


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

Offline

 

#358 2012-11-10 09:48:39

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

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

pwiter wrote:

TRocket wrote:

for some reason i can't get wx-config to work in the makefile...

There might be some tutorials on http://wiki.wxwidgets.org/. Did you set it up correctly?

I got it now, the makefile was using a Rule to make the files.


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

Offline

 

#359 2012-11-10 15:50:52

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

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

I think we should replace the current cairo code for drawing the objects with new, OpenGL rendering code... if you have knowledge of GL please pull the branch #12_USE_WX and make some changes!


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

Offline

 

#360 2012-11-10 18:55:54

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

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

TRocket wrote:

I think we should replace the current cairo code for drawing the objects with new, OpenGL rendering code... if you have knowledge of GL please pull the branch #12_USE_WX and make some changes!

I have experiance with OpenGL, and will work on it after I finish setting up my SSD.


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

Offline

 

#361 2012-11-10 19:33:49

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

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

Hey, what ide are you guys using for this? Cause I was using notepad++, but I feel it's not complete.


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

Offline

 

#362 2012-11-10 19:40:56

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

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

pwiter wrote:

TRocket wrote:

I think we should replace the current cairo code for drawing the objects with new, OpenGL rendering code... if you have knowledge of GL please pull the branch #12_USE_WX and make some changes!

I have experiance with OpenGL, and will work on it after I finish setting up my SSD.

Why not just start the wx version from scratch(keep the io stuff)?


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

Offline

 

#363 2012-11-11 07:34:03

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

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

Whoa! what just happened I merged into master but it merged two branches and removed the entire history! I think i fixed it by removing the source and replacing it witht he one from here


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

Offline

 

#364 2012-11-11 17:16:36

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

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

TRocket wrote:

Whoa! what just happened I merged into master but it merged two branches and removed the entire history! I think i fixed it by removing the source and replacing it witht he one from here

I might have to rewrite the scratchobject stuff. It's printing to the screen using cairo. But then again we can use cairo and wxWidgets.

@Logiblocs
I think you commited to the wrong branch...

Last edited by pwiter (2012-11-11 17:18:11)


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

Offline

 

#365 2012-11-12 02:37:00

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

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

pwiter wrote:

Hey, what ide are you guys using for this? Cause I was using notepad++, but I feel it's not complete.

I'm using eclipse and I think someone is using NetBeans.


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

Offline

 

#366 2012-11-12 12:35:06

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

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

TRocket wrote:

pwiter wrote:

Hey, what ide are you guys using for this? Cause I was using notepad++, but I feel it's not complete.

I'm using eclipse and I think someone is using NetBeans.

I'm using Code::Blocks.


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

Offline

 

#367 2012-11-12 16:15:12

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

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

MathWizz wrote:

TRocket wrote:

pwiter wrote:

Hey, what ide are you guys using for this? Cause I was using notepad++, but I feel it's not complete.

I'm using eclipse and I think someone is using NetBeans.

I'm using Code::Blocks.

I heard that Code::Blocks has wxWidgets compatability added in, but I'm going with Eclipse because I use that for java programming.


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

Offline

 

#368 2012-11-16 01:35:27

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

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

Bump.


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

Offline

 

#369 2012-11-18 02:37:11

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

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

TRocket wrote:

Bump.


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

Offline

 

#370 2012-11-18 21:50:36

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

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

Why are we using GLUT? Glut is outdated. Instead we should use GLFW.


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

Offline

 

#371 2012-11-18 23:20:39

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

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

aion5 wrote:

I just realized its going to be really hard to implement drag and drop in c++

its a piece of cake ..... hint hint

use threads! and the native OS libs


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#372 2012-11-18 23:25:58

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

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

fanofcena wrote:

aion5 wrote:

I just realized its going to be really hard to implement drag and drop in c++

its a piece of cake ..... hint hint

use threads! and the native OS libs

The native OS libraries are probably not appropriate here because they want behaviour not associated with the drag pasteboard which instead resembles the Scratch drag-and-drop interface (i.e. the blocks are moved around within the window with a drop shadow to indicate they have been picked up). They can probably just move the actual block stack's display object around while rendering it with a drop shadow.

Last edited by nXIII (2012-11-18 23:27:45)


nXIII

Offline

 

#373 2012-11-18 23:34:01

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

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

nXIII wrote:

fanofcena wrote:

aion5 wrote:

I just realized its going to be really hard to implement drag and drop in c++

its a piece of cake ..... hint hint

use threads! and the native OS libs

The native OS libraries are probably not appropriate here because they want behaviour not associated with the drag pasteboard which instead resembles the Scratch drag-and-drop interface (i.e. the blocks are moved around within the window with a drop shadow to indicate they have been picked up). They can probably just move the actual block stack's display object around while rendering it with a drop shadow.

True, i thought we are talking about dragging and dropping sprites from the OS :$ like we drag and drop images [ oh silly me ].

But i am reading this whole conversation , i am wondering have you guys ran a single multi sprite scratch project yet :? , i am wondering how are you going to handle the awesome multi-tasking capability scratch posses


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#374 2012-11-18 23:36:17

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

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

fanofcena wrote:

True, i thought we are talking about dragging and dropping sprites from the OS :$ like we drag and drop images [ oh silly me ].

That would actually be a really nice feature to have, too.

But i am reading this whole conversation , i am wondering have you guys ran a single multi sprite scratch project yet :? , i am wondering how are you going to handle the awesome multi-tasking capability scratch posses

I think they can do it the same way Scratch does; it just loops through the current threads and executes them until they yield.

Last edited by nXIII (2012-11-18 23:36:37)


nXIII

Offline

 

#375 2012-11-18 23:45:06

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

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

nXIII wrote:

fanofcena wrote:

True, i thought we are talking about dragging and dropping sprites from the OS :$ like we drag and drop images [ oh silly me ].

That would actually be a really nice feature to have, too.

But i am reading this whole conversation , i am wondering have you guys ran a single multi sprite scratch project yet :? , i am wondering how are you going to handle the awesome multi-tasking capability scratch posses

I think they can do it the same way Scratch does; it just loops through the current threads and executes them until they yield.

with smalltak and flash its easy , with c++ err i am worried a little.

dont you think they will need something like an event stack or something ? to make their life easier ?

probably libev ?  but its  Linux only :-( , so might as well just use libuv  big_smile  , [[ dont think libuv is node.js, libuv is standalone awesome ]]

Last edited by fanofcena (2012-11-18 23:45:30)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

Board footer