Bunnie's Progress Thread

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Go down

Re: Bunnie's Progress Thread

Post  Radialronnie on Sat Apr 12, 2014 12:23 am

I like them! They're very clean, and they read well.
In the first one, I like the rough edges combined with the shadow; very nice!

Radialronnie

Posts : 366
Join date : 2012-04-05

View user profile

Back to top Go down

Python Work

Post  BnBGobo99 on Sun Aug 24, 2014 9:35 pm

I've been reading various Python books trying to teach myself Python 3*--and almost all of them go on and on about lists and tuples and dictionaries early on.  So early in fact, that I feel most aspiring programers (myself included) don't really know why we would ever need lists, tuples, or dictionaries.

So I figured I'd write a little "game" where you put items in a basket (list), remove them, or replace them with a different item.

* I'm back on the "learning programming" bandwagon... I fell off trying to be an artist for several months.

My first draft was pretty straightforward and worked well, but once I started creating functions it went down hill fast.  stackoverflow.com was a great help!  Every problem I ran across, somebody had already experienced it and the community came up with a solution.

For example: items in the basket had '[ ]' wrapped around them.  A solution on stackoverflow suggested using print(str(mylist).strip('[ ]'))--and it worked perfectly!  I did print(str(listItems).strip('[]')) in my program.

I'm still confused about calling global variables, which I had to do for some if the items but confusingly not for others--so it was a trial and error process to get the variables to play nicely within the functions.

Here is my script--have fun with it!

Download here: https://www.dropbox.com/s/1m3yl5j9sfvcvfg/ListGame.py?dl=0
Example:

Example wrote:Welcome to "Let's Make a Basket"!

What kind of things will you put in your basket? toys

What item would you like to put in your basket? (press q to quit) Woody
What item would you like to put in your basket? (press q to quit) Buzz
What item would you like to put in your basket? (press q to quit) Ham
What item would you like to put in your basket? (press q to quit) q

Your basket of toys has 3 items.
The items in your basket are:
Buzz
Ham
Woody

Do you want to remove any items from your basket? (y or n) y

What item would you like to remove? Bo Peep
That item is not in the basket.

What item would you like to remove? Woody
Woody has been removed from your basket.

Your basket now contains the following items:
'Buzz', 'Ham'

Do you want to replace any items in your basket? (y or n) y

What item would you like to remove? Rex
And what item would you like to replace Rex with? Ham
That item is not in the basket.

What item would you like to remove? Ham
And what item would you like to replace Ham with? Rex
Ham has been replaced with Rex.

Your basket now contains the following items:
'Rex', 'Buzz'

Do you want to play again? (y or n) n

Thank you for playing "Let's Make a Basket"!
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  billymcguffin on Thu Aug 28, 2014 11:09 pm

Hey Bunnie, cool project!

I thought I'd take a stab at this; I'm starting a class this semester and we're using Python in it so I figured I'd brush up on my Python.

I ran into quite a bit of feature creep I'm afraid. I was originally planning to implement it with the same interface as yours, but without reading your code (to see if we did things differently). I ended up with a different interface and some new features like being able to add more than one item at a time and being able to have more than one basket going (and switch between baskets) at once.

Here's an example run!

Example:

Let's Make a Basket!

What kind of things do you want to put in your basket? Toys
OK, we'll make a basket of Toys.

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
1
What items do you want to add to the basket? (separate items with commas) Woody, Buzz, Ham
Woody added to the basket!
Buzz added to the basket!
Ham added to the basket!

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
4
This basket holds Toys!

The following items are in this basket:
Woody, Buzz, Ham

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
2
What item do you want to remove? Bo Peep
This item is not in the list!

What item do you want to remove? Woody
Woody removed!

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
4
This basket holds Toys!

The following items are in this basket:
Buzz, Ham

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
3
What item do you want to replace? Rex
Rex  is not in the basket!
What item do you want to replace? Ham
What item to you want to exchange for Ham? Rex
Replaced Ham with Rex!

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
5
You only have one basket!
What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
6
What kind of things do you want to put in your basket? Cars
OK, we'll make a basket of Cars.

What would you like to do with your Toys basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
5
Which basket would you like to edit?
    1) Toys
    2) Cars
2
What would you like to do with your Cars basket?

    1) Add items!
    2) Remove an item!
    3) Replace an item!
    4) Can you tell me about this basket?
    5) Can I switch to a different basket?
    6) Create a new basket!
    7) Quit!
7


I started out doing the same operations in your example, then showed off some of the new features and how they work.

As you can see, my menu system takes up quite a bit of space Embarassed

If you want to compare code, you can take a look here: http://pastebin.com/B72zgsNE

I tried to keep it well commented so it should be easy to understand if I do something you're unused to.
I used a class to represent a basket so that I could create more baskets and encapsulate the type of basket and items in the basket. I'm not sure how much you know about classes, but maybe it could help you learn if you don't!
avatar
billymcguffin

Posts : 51
Join date : 2012-05-18
Age : 24
Location : Minnesota

View user profile http://www.coleschultz.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Fri Aug 29, 2014 3:54 pm

Hey, Cole... this is pretty good! I haven't learned about classes, I think I'll look into them this weekend and try them out. I like how you set up your functions so that your main program is only one line: main().

I'm going to start working on a new "game" using dictionaries and either PyGame or Pillow. I've found a great link to install both on 3.4.1 very easily:
http://www.youtube.com/watch?v=SqmSpJfN7OE (warning--mute the audio or turn it low if you have it turned up. It's just a bit loud is all.)
http://www.lfd.uci.edu/~gohlke/pythonlibs/ (lots of pre-packaged modules for Python.)
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  billymcguffin on Fri Aug 29, 2014 11:56 pm

Yeah, classes are very useful once you get into programs which can be separated into a bunch of different parts. Once you begin to understand classes and see where you can go with them, you probably won't go back! Once you get a basic grasp of classes and how they work, I'd suggest taking a look at the following playlists from Derek Banas:
Object Oriented Design: https://www.youtube.com/playlist?list=PLGLfVvz_LVvS5P7khyR4xDp7T9lCk9PgE
Design Patterns: https://www.youtube.com/playlist?list=PLF206E906175C7E07
Code Refactoring: https://www.youtube.com/playlist?list=PLGLfVvz_LVvSuz6NuHAzpM52qKM6bPlCV

He uses Java in these I believe, but they're very useful for understanding how you might go about structuring a more complex program.


Getting into the graphics end of things is a pretty different train of thought, because the input and output aren't as fundamentally linked as in a text based system, and you can't just take input from the console usually. Good luck! Smile
avatar
billymcguffin

Posts : 51
Join date : 2012-05-18
Age : 24
Location : Minnesota

View user profile http://www.coleschultz.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Sat Aug 30, 2014 8:27 pm

Just an update--I've been working feverishly on this...

I was able to get a text-based version of my dictionary game working, I got a pygame version that is displaying images and has some interactivity--but it's very very buggy and only partially ported over.

This "game" has been the hardest thing I've ever tried to do--for realz.  I've learned more in the last week about programming than the past few years combined.  Most of the sweat and tears has been over the pygame version of the game...

Here's the text version:
Spoiler:

We all know that cats and mice don't get along.
We also know that dogs and cats don't get along.
But dogs and mice get along just fine.
Which means that the solution is to get rid of the cat.

A mouse, a cat, and a dog are each hidden behind their own door: 1, 2, or 3.
Find the cat and bring about world peace.

What door would you like to open? 1

Before we open door #1, let's see what's behind door #3.
The animal behind door #3 is the dog!

The cat is behind one of these two doors.  Do you want to switch? (y or n) y
Your new door is door #2

The animal behind the door you selected is the mouse!

Would you like to play again? (y or n) n
Thank you for playing "Find the Cat!"

Here's the .py file: http://pastebin.com/jMQFcYQd

Here's a screenshot of the pygame version:
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Fri Oct 31, 2014 3:40 am

Homework for "Color and Composition" class:




(Both are 100% Blender, believe it or not. No post-production other than to resize.)
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Fri Oct 31, 2014 3:44 am

Here's another one (also Blender--two renders mixed with a solid ground, so 90% Blender):



It was made with two cylinders scaled to a point at the bottom and stacked inside one another:

(Also a Blender render)
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Sat Nov 01, 2014 9:52 pm

ARTT120 Project One Assignment:


We were constrained to black and white with limited use of gray to make a brochure or pamphlet.  Total time (including sketches and one abandoned attempt: 15 hours).
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Tue Nov 11, 2014 7:29 pm

Here's the render for week 4's assignment.  I used this as my template to create an Illustrator version by having the render on one monitor and eyeballing it on the other.  I could have used the image-to-vector function I wrote about in my tutorial or even used the render as a layer and copied over it, but I figured that defeated the purpose of my instructor's guidance to not use Blender anymore:
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Fri Dec 12, 2014 6:03 pm

Here's one of my favorite images I did for class:



Here's the concept sketch for it:
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  Yodaman921 on Fri Dec 12, 2014 7:21 pm

Was that one where you weren't allowed to use Blender?
avatar
Yodaman921

Posts : 233
Join date : 2012-04-04
Age : 25

View user profile

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Sat Dec 13, 2014 8:47 am

So everything after the T-800 user guide brochure was in AI and PS. I did a "beauty shot" for the final exam in Blender, but that was just for fun--the design itself used Adobe. The waves above used IA.

Now that I'm done with class I can do fun things like study HTML/CSS/JS/PHP/SQL and gear up for foreign language class in February! BTW: www.w3schools.com has been really helpful in learning the ins and outs of the programming languages.
avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Sun May 07, 2017 1:17 am

A brochure I designed for my final exam a few years ago:

avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  BnBGobo99 on Sun May 07, 2017 1:24 am

A fun project I did:
I took a drawing of the Berenstain bears I found online and cut them into pieces and overlaid them onto a lined paper image:


The papers edges were "torn" and re-arranged:


And put onto a book cover. Looking back at it I don't like the color, but what can you do, lol:

avatar
BnBGobo99

Posts : 453
Join date : 2012-04-04
Age : 37
Location : Pacific Islands

View user profile http://studiogreenleaf.wordpress.com

Back to top Go down

Re: Bunnie's Progress Thread

Post  Yodaman921 on Sat Jun 03, 2017 1:48 am

Wow... I really like what you did with the Berenstain bears, a very cool idea that's never even crossed my mind before. 10 points to Bunnydor!
avatar
Yodaman921

Posts : 233
Join date : 2012-04-04
Age : 25

View user profile

Back to top Go down

Re: Bunnie's Progress Thread

Post  Sponsored content


Sponsored content


Back to top Go down

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum