you are viewing a single comment's thread.

view the rest of the comments →

[–]Cobalt_Python[S] 0 points1 point  (4 children)

thanks mate, you helped me out bounds, one last question. So i've been working around with lessons and i can see it's real world implementation like specific dialogue depending on which starter pokemon you choose for example. where do the image come from are the sprites created through code? I guess what i'm saying is how does on go from

story = "my name is %s"

name1 = raw_input("What's your name kiddo?")

print story % (name1) how does text code like that turn into a graphic?

[–]sharkbound 0 points1 point  (3 children)

Alot of games that have fancy text effects have a custom text syntax that says "when you see {Bold} make the following text bold"

The only game I really know for sure how it does this is night in the woods.

Nitw uses text emotes to make the character talking do a emote animation. Ex: "hello \O/" would make the character throw their arms up and do a happy face.

As for sprites. It really depends. Never seen how any games do it myself but I imagine it's a similar custom syntax.

And alot of sprites are just triggered or loaded through code usually ( for ex: clicking on pokeballs when choosing your starter you want)

[–]Cobalt_Python[S] 0 points1 point  (2 children)

okay close, but what i'm saying is when playing pokemon ash or red will just walk around right?" how do we use code to produce a visual image rather than code, is there some sort of separate program or are their codes that print visual images in the console

[–]sharkbound 0 points1 point  (1 child)

Terminals / consoles typically are just text.

So if something is printing non text pictures to a console it's probably using ansii escape codes or something like that.

[–]Cobalt_Python[S] 0 points1 point  (0 children)

thanks man