The Repl.it RPG
h
BryceMcIn (15)

Hey everyone, I just wanted to share a little project that I've been working on. I've always loved text based RPGs, so I decided that I was going to start working on my own. The project is nowhere close to being anything substantial, but I thought it's a cool little proof-of-concept. Let me know what you think!

You are viewing a single comment. View All
Nerd0000 (5)

how did you made the writing effect? XD

BryceMcIn (15)

@Nerd0000 In C, at least on linux systems, you're able to use ascii codes for color. There's a big list on github if you look up "ascii color codes c" on google. I read my dialogue lines into a string, and fed them in to a function that looped until the end of line printing each character one by one. You can see an example in my code!