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

#526 2009-11-15 04:02:18

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

i just need to reset my password, im doing that know.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#527 2009-11-15 13:14:01

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

^ You're back! (And you replied to almost every thread...hehe)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#528 2009-11-15 13:27:07

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

i know... i like being all over the place.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#529 2009-11-15 14:20:25

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

well that's a thing.


Converting my Scratch projects to Python!

Offline

 

#530 2009-11-15 19:18:21

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Gershmer on punbb-hosting.com/forums/Emerald wrote:

We may actually be able to have sprites sooner than thought.

This simple .py file can display a .png file


Pretty cool, huh?

A quick Python-ing.

Display real images (not GUI pieces, ex menu bar, window, text box) in Python using PyGame.

Code:

import pygame   #loads the pygame module

w = [width] #sets image displaying area  width

h = [height] #sets  image displaying area height

screen = pygame.display.set_mode(([width], [height]))  #make and display window

graphic = pygame.image.load("[image name + file extension]").convert()

screen.blit(graphic, (0, 0)) #Display image at 0, 0

pygame.display.flip()   #Update screen

running = 1

while running:          #Loop this

   for event in pygame.event.get():    #get user input

      if event.type == pygame.QUIT:    #if user clicks the close X

           running = 0                 #make running 0 to break out of loop

 

   screen.blit(graphic, (0, 0)) #Display image at 0, 0

 

   pygame.display.flip()   #Update screen

Make it a  no command line ☺ ☺ ☺ .pyw file

Oh yeah, if something in my code looks like this: [value], substitute the value for it, without brackets...

One more thing. You can't run the file through IDLE as "Run Module (F5)" You have to click on the .pyw file and let it run through itself. (Not in IDLE)

Last edited by gershmer (2009-11-15 19:25:54)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#531 2009-11-16 04:15:35

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

We'll need to attach the PyGame module to our installation (I can do all the installation wizards, I'm pretty good at NSIS).

Well, that's SOMETHING. Now we only need to set up how projects should be parsed. I personally like my idea from like a month ago - to an user it's an .emrd file ( remember, .emrld is for scripts ), but to the program it's an archive (you can use zlib), where the folder structutre is like this: (<this denotes a folder>)

project.xml This file holds the project info (sprites, track of remixes, etc.)
<Sprite1>
  sprite.xml This file tells the program where the other files are
  sprite.emrld This is the script file
  <Costumes>
    costume1.png
  <Sounds>
    sound1.ogg

And that's it.


Converting my Scratch projects to Python!

Offline

 

#532 2009-11-16 12:05:23

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Marky: I just remembered, if you can make Emerald in Java, then we can have it for the website.  big_smile
Gershmer: Thanks for that, it should help very much in making graphics!

Everyone: Maybe once we get Version 1 of Emerald out, I'm thinking of having the Mods delete all the posts, or I could just make a new topic and delete this one. Any ideas?

Offline

 

#533 2009-11-16 12:40:52

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Nah, just let it bury after we move completely to Emerald Forums...


Converting my Scratch projects to Python!

Offline

 

#534 2009-11-16 13:54:05

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Offline

 

#535 2009-11-16 17:17:42

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Magnie wrote:

1. Gershmer: Thanks for that, it should help very much in making graphics!

2. Everyone: Maybe once we get Version 1 of Emerald out, I'm thinking of having the Mods delete all the posts, or I could just make a new topic and delete this one. Any ideas?

1. Thank you
2. Just create a [Release] Emerald v1.x thread here, along with the forums @PunBB, as most people would only see this thread. And if we ever see the need for Emerald v2.x, then do [Release] Emerald v2.x. Or just create another thread, the post-0.9 (as in 1.0 and on) Release thread. (Development still in here)

By the way, this has 534 replies and 7629 views, NOT BAD AT ALL, publicity wise.

Seriously, more than 7.5 thousand views? Sure, a lot are us, but that leaves still a ton of views.



Hopefully, one day, we will be endorsed by the MIT Media Lab, and we will look back and say "we were awesome"

Regards,
     Gershmer

Last edited by gershmer (2009-11-16 17:21:51)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#536 2009-11-16 17:59:04

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#537 2009-11-16 19:18:45

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Gershmer1: Yes, 7.5k views are a lot, that's why I think, instead of making new topic, just ask Mods to rename it and delete all the posts, I love are views.  tongue

Offline

 

#538 2009-11-17 02:32:06

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

I still think just to let it bury under the tons of Advanced Topics when it comes to an end, eg. final 1.0 release.


Converting my Scratch projects to Python!

Offline

 

#539 2009-11-17 10:17:33

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

So you mean just don't post here? That works. ^.^

Offline

 

#540 2009-11-17 10:42:28

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

I'm now starting doing the website...


Converting my Scratch projects to Python!

Offline

 

#541 2009-11-17 11:03:37

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

whos hosting?

Magnie: Why dont we just ask scratch for the source code for their one? and edit it for .emrld files?

Plus: If this works, we'll need to add an upload button. But we'll either need to program a program (lol) for it to added to the site, or we just put them all in a big folder and update once a day.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#542 2009-11-17 12:58:29

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

My first experiment with MS Installer...

http://filesocial.com/hv9wqz


Converting my Scratch projects to Python!

Offline

 

#543 2009-11-17 13:19:58

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

How 'bout we host it on my website? ( emerald.mintriver.site90.com )

Marky: If we just make it are selves, then it's rightfully ours, not Scratch's.

Offline

 

#544 2009-11-17 14:03:16

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Magnie: No, Gershmer's hosting has support for ASP.Net
Marky: They can just get us domain at .media.mit.edu and some hosting space...


Converting my Scratch projects to Python!

Offline

 

#545 2009-11-17 14:14:55

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

I lol'ed.

You were all like No, Magnie, no no no, silly child, Gershmer has ASP.NET support, silly.


In the voice of my 7th Grade English Teacher, of course. (In my head that's what it sounded like)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#546 2009-11-17 14:27:00

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

Yeah, pretty much like this...

Plus: Scratch _does_ share their source code for the website. Try searching "scratchr platform" in Scratch search.


Converting my Scratch projects to Python!

Offline

 

#547 2009-11-17 16:13:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

My website should support it tooooo. xD

Offline

 

#548 2009-11-18 05:14:22

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

Scratchr Platform is what powers the website, not the program for view the projects. We could just ask to look at the source code for the viewer, then build our own one seperately.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#549 2009-11-18 10:07:55

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I want an actual download link to the ScratchR Platform...

Offline

 

#550 2009-11-18 14:47:04

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

i think this is what your looking for then: http://svn.assembla.com/svn/scratchr/


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer