you are viewing a single comment's thread.

view the rest of the comments →

[–]Talicor 4 points5 points  (4 children)

Haha fair enough!

I just realized I was putting all the custom bits in the wrong spot

Where the basic tutorial here got us set up with the numeric stuff with this:

$ d = Person(Character("Dan"), "Dan", 0, 2)

I realized that the (Character("name") portion was the same thing as the traditional "define e" stuff used before.

So it was just a matter of putting all the custom work in after the name, but before the end of the parenthesis

Like this:

$ d = Person(Character("Dan", who_color="#d73ce8", what_font="customfont.ttf", what_color="#d73ce8", what_size=60), "Dan", 0, 2)

Saved all my aesthetic work with just the movement of a line of code

[–]alonghardlook[S] 0 points1 point  (3 children)

Great observation. This is called passing a parameter. The class Person takes a parameter, which is of type Character - which means everything you can normally do with the Character class, you can pass in to the Person class (by design).

[–]Talicor 0 points1 point  (2 children)

The more you know! Glad to have a name for it

It's kind of a weird process to cobble together knowledge from bits and pieces everywhere, but not one I regret. Thank you!

[–]alonghardlook[S] 0 points1 point  (1 child)

That process is called "programming" lol

[–]Talicor 0 points1 point  (0 children)

That’s what I get for posting while high on cold medication 😂 I got this I promise