Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
- Posts: 119
- Joined: Mon May 22, 2017 8:12 am
- Completed: Santa's workshop, Cat's Bath, Computer Art Club
- Location: Taiwan
What are some other games that you learned to code from?
Are there ethical issues related to viewing a game's code or is it accepted practice? If there are ethical issues, are there some developers that are more open to the idea of letting others learn from their code?
What games would you recommend learning from and why?
Personally, this was an issue that I had when I started and I've seen other newbies with similar issues.
- Posts: 136
- Joined: Thu Jan 14, 2016 9:52 pm
- Projects: Efemural Hearts, It Ends With Graduation
- itch: empish
But the general concept is that people learn best by doing. When you have an idea for something that could be achieved, the best thing to do is to sit down and take it apart, piece by piece. You want to make a gallery, for example? Great! Do you want one page, or multiple pages you can click through? How many images do you want per page? Do you want a basic grid or a more complicated system? Do you want the gallery to be static or to change based on gameplay? Asking these questions can help pinpoint the functionality you want, and only then should you go looking for examples of how someone else has done it.
Now, full disclaimer, I'm a coder by trade, so I already was familiar with computer science concepts when I started learning Ren'py. But I've seen people spend too much time trying to adapt someone else's code to their own purposes when it would have been faster just to do it from scratch. If you don't understand what's going on, taking a piece of big, complicated code is only going to muddy the waters. It's better to do small experiments and get a feel for what behavior you'll have in what circumstances, and THEN you can add it to other code of yours to make something more complicated.
- Eileen-Class Veteran
- Posts: 1624
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
- Projects: Slumberland
- Location: Brazil
You will find many Ren'Py games that are open source. The author doesn't mind or explicitly encourages you to study the game scripts. See the open source section here: viewtopic.php?p=386691#p386691
Doing some search you will find more examples. Cyanide Tea released the scripts from Ristorante Amore for downloading: http://risamo.cyanide-tea.net/rpy/
Another free game with open source is Time Labyrinth: https://games.renpy.org/game/time-labyrinth
Yes, studying other people's scripts and trying to understand how things work is a really good way of learning.
Personally, I only keep my own game files archived because I don't think I'm a good example to others.
TOIRE NO HANAKO (A Story About Fear)
- Posts: 12
- Joined: Thu Dec 21, 2017 9:23 am
- Projects: Eleventh Hour [Working Title]
- Soundcloud: Ezmar
Users browsing this forum: Yahoo [Bot]