Skip to main content

The Cabbages - 1.02

A topdown action/adventure rpg in the nostalgic spirit of the 80's.


Sean J McKiernan
(mekire)

Title Register Select
Gameplay Camp Screen Death

Controls
Arrows Movement
Spacebar Attack
S-key Go to camp menu
Left Ctrl Secondary ability (not implemented)
Left Shift Interact / Open chest
Enter Confirm selection
Escape / X-key Cancel

Links

Home Page
https://github.com/Mekire
Source
http://code.google.com/p/cabbages-and-kings/downloads/list

Releases

The Cabbages 0.01 — 11 Nov, 2011

The Cabbages 1.01 — 11 Mar, 2012

The Cabbages 1.02 — 22 Sep, 2012

The Cabbages 0.1 (recoded) — 3 May, 2014

Pygame.org account Comments

  • John 2011-11-15 06:15:37

    crash on running, error from globs.py:

    Traceback (most recent call last):  File "C:\Users\Saba\Desktop\pygame\Cabbage\main.py", line 1, in <module>    import pygame,sys,os,spritesetc  File "C:\Users\Saba\Desktop\pygame\Cabbage\spritesetc.py", line 3, in <module>    import globs,projectile  File "C:\Users\Saba\Desktop\pygame\Cabbage\globs.py", line 46    DirectBin  = {"back" : 0b1000,                                ^SyntaxError: invalid syntax

    John 2011-11-15 06:17:34

    sorry forgot to format:

    Traceback (most recent call last):
    File "C:\Users\Saba\Desktop\pygame\Cabbage\main.py", line 1, in <module>
    import pygame,sys,os,spritesetc
    File "C:\Users\Saba\Desktop\pygame\Cabbage\spritesetc.py", line 3, in <module>
    import globs,projectile
    File "C:\Users\Saba\Desktop\pygame\Cabbage\globs.py", line 46
    DirectBin  = {"back" : 0b1000,

    SyntaxError: invalid syntax

    Mekire 2011-11-15 10:14:43

    What version of python are you using?  It seems it is either having an issue with that method of inputting dictionaries, or (and this is what I suspect) multiline statements still require a trailing "\" at the end of them in your version even when the statement is enclosed in "( )","{ },"[ ].

    -Mek

    Mekire 2011-11-15 10:24:18

    Ahh, nevermind.  It is due to the way your version of python uses binary numbers.

    If you change the:

    0b1000 
    to  
    int('1000',2)

    and do the same for the lines below it it might solve the problem but I may have used that syntax other places in the file as well.
    The problem should be solved if you use Python 2.6+ (I suspect that you are using 2.5 at the moment, correct me if I'm wrong). 

  • renesd 2011-11-17 19:35:11

    Hi,

    I really love the look of your feathered creature.  Wonderful :)

    Mekire 2011-11-18 13:06:23

    Thank you,  hope you actually found him in the game to see how he acts.  There is a link to the artists Deviant Art page in the credits section on my google code page if you would like to see other things she has done (I unfortunately am just the code monkey =P).

  • Connor Wood 2011-12-23 13:34:26

    Love it. Can't wait for the final release!

    Mekire 2011-12-24 06:01:29

    Thanks.  I hope to get a new release ready within the next couple weeks, but it will still not be anywhere close to done...  I have so far added doors that unlock with keys, treasure chests and a few other minor things... I'm hoping to at least make another dungeon as well before I post it.

    Cheers,
    -Mek

  • Exiledangel420 2012-02-29 22:40:58

     Found one of your errors in worldmapRewind.py:
    Line 165
    game_maps["worldmap1"] = ["maps/world",loadworld(os.path.join("maps\world","worldmap1.wld"))]
    Should be
    game_maps["worldmap1"] = ["maps/world",loadworld(os.path.join("maps/world","worldmap1.wld"))]

  • Exiledangel420 2012-02-29 22:47:47

    The reason I found this error is the game wouldn't load past pygame black screen with python idle 3.2.

    Exiledangel420 2012-03-04 00:42:46

    Yeah guess your right. I use Linux mainly Ubuntu & Debian Distributions.
    Never been a big fan of windows.

    Mekire 2012-03-03 00:14:55

     Hmm... yeah this doesn't occur in my OS even with 3.2 so I didn't realize it was still there.  The best solution is to just not use "/" or "\" and make the os.path.join take care of the whole thing.  That way different OS won't complain if they expect one slash and get another.  I will try to take care of this incompatibility next release.

    -Mek

  • Tommy B 2012-03-17 08:19:43

    Using python 2.6 i get the following error:
    \Cabbage-101\heroconfig.py", line 654, in ?  imagelist = {way[:-4]:pygame.image.load(os.path.join(spriteroot,way)).convert_alpha() for way in waylist if way[-3:] == "png"}

    Mekire 2012-03-17 18:43:41

     Ahh... sorry bout that.  That is a dictionary comprehension.  Those weren't supported before Python 2.7.

    -Mek

  • Paul Weissbach 2013-06-29 19:54:16

    really cool graphic design! :D
    I also liked your code.

    Mekire 2013-07-04 06:54:52

    Glad you enjoyed it. The code is quite out of date with my current style. One of the reasons I stopped working on this project is that it became quite unmaintainable. I do intend to fully recode this game from scratch at some point in the future; but then I intend to do a lot of things that I never get around to actually doing =(.

    -Mek

  • David 2013-10-24 04:11:18

    This is brilliant. I hope I can become as good a programmer as you.

  • dema1909 2013-11-13 18:38:57

    need help ... i dont know how to run or make it

    Mekire 2013-11-19 10:56:00

    It's python so you don't have to make anything. You just need to have python 2.7+ and a corresponding installation of pygame. The main file is located in the top directory and is called main.py.

    -Mek

  • Kyle 2014-11-15 07:38:05

    This is awesome, I hope you keep at recoding the game. Everything is very neat and I've been trying to figure out how to add things myself.

  • IamSomeone 2015-01-06 23:31:45

    Somehow I can't figure out how to get into the caves. Is it unfinished, is it a glitch, or am I just blind?

    Mekire 2015-03-08 16:23:22

    Sorry for the late reply. In my older (much rougher and poorly coded) version you can enter caves and there is even a boss fight in the Aztec temple. You can find that older version here:
    https://code.google.com/p/cabb...

    In this recode, no, you are not crazy; caves haven't been implemented yet.

    Thanks for the interest,
    Mek