M30W Programming Forum

M30W is a text-based version of Scratch

You are not logged in.

Announcement

This is the development forum for M30W (also known as Emerald, do not confuse with Emerald Programming Language).
Our Non-development forums are available here

M30W(Emerald) 0.3 is out! (Download) Requires Python 2.6 or higher.
Opal 0.3(A better command line M30W) is out! (Download) Requires Python 2.6 or higher.
M30W 0.3.6 GUI barebones (Download) Requires Python 2.6 or higher and wxPython
Diamond-2 RED2 GUI Barebones (Fancy M30W editor) s out! (Download) Requires .NET Framework 3.5 or higher, does not require Python
M30W++ GUI barebones (Java M30W) Alpha 1 is out! (Download) Requires Java.


Gershmer.net, our hosting, will close in February 2011. We have not fully decided what to do with our hosting after that, but we will tell you when we decide.

Adverts

Adverts

#26 2010-07-22 06:20:03

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

Guys, I think you're forgetting the 'version of Scratch'. Keep everything as similar to Scratch as possible.

When a sprite thumbnail is clicked, it opens up a separate script used for manipulating only that sprite itself. The code is "When sprite clicked", not "spritename.clicked()" or anything like that.

I think that parentheses are a no-go unless for grouping equations. The commands should be like Scratch, with each argument appearing in various places throughout the command, like "wait 5 secs" instead of "wait(5)"


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

2010-07-22 06:20:03

AdBot
Advertisements

#27 2010-07-23 04:54:28

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

Hey, I just realized that python already comes with a regular expression module. Heh.


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#28 2010-07-24 12:28:24

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

floppy_gunk wrote:

Hey, I just realized that python already comes with a regular expression module. Heh.

Which does what for us?

Also, post a prototype.


http://card.ly/images/vcard-green-small.png

Offline

 

#29 2010-07-24 17:00:10

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Ok... so hows everything going? plus parentheses would be ok, since it would be easier to read, plus we don't have to copy everything of scratch, its just supposed to have similarieties and be the next step up from scratch, and when you go up a level things do change. the GUI while still have similarities but of course it will be different due to it being coded in text not blocks.

Yes I do agree that we did get side tracked by forgetting the thumbnails things, its kinda hard what to include and what not,

Will we have things like plugins? Ofcourse they'd have to be unique to that sprite, unless we have sprites able to inherit methods from other sprites.


I am A M30Wr.
I always get the last word.

Offline

 

#30 2010-07-24 20:49:40

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

Gershmer wrote:

floppy_gunk wrote:

Hey, I just realized that python already comes with a regular expression module. Heh.

Which does what for us?

Also, post a prototype.

I was needing to build my own regex module, which is quit difficult considering that I need to create programs that check for, say, a quote followed by any amount of anything that isn't a quote, and then another quote, and then it has to fail if it does not succeed, and return the string value plus the rest of the code that's left if it succeeds. As a regular expression, this is just:

Code:

"[^"]*"

A prototype will be coming up shortly!


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#31 2010-07-27 05:24:26

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

http://www.mediafire.com/?j6tg005ntxsdv09

Type code in the text box and press the run button (>)

Supports strings (encased in single or double quotes) and numbers (integer, decimal, or negative).
If a string is entered where a number is needed and it can't be converted to a number, then it will count as a zero.
Expressions and Variables to be added in the future.

Functions:
say {value}: Make the value show up as text
wait {value} secs: Wait for a number of seconds
set {var} to {value}: Sets the x position, y position, or costume (with var = x, y and costume respectively)
change {var} by {value} Changes the x position or y position by the value (with var = x and y respectively)

I made an example script, but it's gone now. :(


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#32 2010-07-27 05:52:19

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

http://img689.imageshack.us/img689/7489/screenshot20100727at549.png


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#33 2010-07-27 10:12:09

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Looks good... besides the fact thats the mac version, it might look different on the pc... i'll just go download it...

Doesn't work. Won't start. Maybe a PC compatitable version would be helpful...?


I am A M30Wr.
I always get the last word.

Offline

 

#34 2010-07-27 19:13:00

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: Enough!

markyparky56 wrote:

Doesn't work. Won't start. Maybe a PC compatitable version would be helpful...?

Does it come up with an error? If so, then could you tell me what it is?


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

#35 2010-07-27 23:42:36

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

Looks amazing... anyway...

Code:

Traceback (most recent call last):
  File "C:\Documents and Settings\_USER_\Desktop\M30W3.9\M30W\M30W.py", line 193, in <module>
    Window(None, '') # Makes the window
  File "C:\Documents and Settings\_USER_\Desktop\M30W3.9\M30W\M30W.py", line 172, in __init__
    self.stage = canvas(panel) # Makes the sprite area
  File "C:\Documents and Settings\_USER_\Desktop\M30W3.9\M30W\M30W.py", line 33, in __init__
    self.speak.SetFont(wx.Font(18, wx.SWISS, wx.BOLD, wx.NORMAL))
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 2082, in __init__
    _gdi_.Font_swiginit(self,_gdi_.new_Font(*args, **kwargs))
PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\msw\font.cpp(541) in wxNativeFontInfo::SetStyle(): unknown font style

http://card.ly/images/vcard-green-small.png

Offline

 

#36 2010-07-28 00:02:52

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Enough!

Also, make a video for us.


http://card.ly/images/vcard-green-small.png

Offline

 

#37 2010-07-28 09:01:49

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Enough!

Should we close this? We've got 0.3.9 and the fixed PC version, so this isn't realy needed anymore.


I am A M30Wr.
I always get the last word.

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting