๋‚ด ์ธ์ƒ์—์„œ ๋ฏฟ์„ ๊ฑด ์˜ค์ง ๋‚˜ ์ž์‹ ๋ฟ!

The only one you can truly trust is yourself.

๊ฒŒ์ž„ ํ”„๋กœ๊ทธ๋ž˜๋ฐ/๋ ŒํŒŒ์ด(Ren'Py)

๋ ŒํŒŒ์ด(Ren'Py) #4. ๋น ๋ฅธ ํŠœํ† ๋ฆฌ์–ผ

๐ŸŽฎinspirer9 2024. 2. 10. 23:14
728x90
๋ฐ˜์‘ํ˜•

๋ ŒํŒŒ์ด ๊ณต์‹ ์‚ฌ์ดํŠธ์˜ "Quick Start" - ๋น ๋ฅธ ์‹œ์ž‘ ํŠœํ† ๋ฆฌ์–ผ์„ ๋”ฐ๋ผํ•ด๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.
์ด ํŠœํ† ๋ฆฌ์–ผ์ด ๋ ŒํŒŒ์ด์˜ ์ „๋ฐ˜์ ์ธ ๊ตฌ์กฐ๋ฅผ ๋น ๋ฅด๊ฒŒ ์ดํ•ดํ•˜๊ธฐ ์ข‹๊ฒŒ ์ž‘์„ฑ๋˜์–ด ์žˆ๋Š” ๊ฒƒ ๊ฐ™๋‹ค.

 

Quickstart — Ren'Py Documentation

On Mac OS X, double-click on the downloaded drive image to mount it as a drive. When the drive opens, copy the folder named renpy- somewhere else. (Where does not matter, but it has to be moved out of the read-only drive image. Do not move the renpy app ou

www.renpy.org

์ด ํฌ์ŠคํŒ…์€ ์œ„ ๋ ŒํŒŒ์ด ๋น ๋ฅธ ์‹œ์ž‘ ํŠœํ† ๋ฆฌ์–ผ์„ ํ•œ๊ธ€๋กœ ์ž‘์„ฑํ•œ ๊ฒƒ์— ๋ถˆ๊ณผํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ด๋ฏธ ์ € ํŠœํ† ๋ฆฌ์–ผ์„ ๋”ฐ๋ผํ–ˆ๋˜ ๋ถ„๋“ค์€ ๋ณผ ํ•„์š”๊ฐ€ ์—†๋‹ค.

ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ ํ•ด์ƒ๋„ ๋ณ€๊ฒฝ ๋ฌธ์ œ

Quick Start์˜ ์‹œ์ž‘, ๋‹ค์šด๋กœ๋“œ, ์„ค์น˜, ์‹คํ–‰, ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์€ ๋จผ์ € ๋‹ค๋ค˜๊ธฐ ๋•Œ๋ฌธ์— ๋„˜์–ด๊ฐ„๋‹ค.

๊ทธ๋Ÿฐ๋ฐ ํ€ต ์Šคํƒ€์ด๋ฅผ ์ œ๋Œ€๋กœ ๋ณด์ง€ ์•Š๊ณ  ํ™”๋ฉด ํ•ด์ƒ๋„๋ฅผ 1920x1080์œผ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ–ˆ๋‹ค.
๊ทธ๋ž˜์„œ 1280x720์œผ๋กœ ๋ณ€๊ฒฝํ–ˆ๋”๋‹ˆ GUI์™€ ํ…์ŠคํŠธ ์ถœ๋ ฅ ์œ„์น˜, ํฐํŠธ ํฌ๊ธฐ ๋“ฑ์ด ๋งž์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

gui.rpy๋ฅผ ๋šœ๋‹ฅ๋šœ๋‹ฅํ•ด์„œ ๊ณ ์ณ๋ณด๋ ค๊ณ  ํ–ˆ์œผ๋‚˜ ์‹œ๊ฐ„๋งŒ ๋‚ญ๋น„ํ–ˆ๋‹ค.
ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ ํ•ด์ƒ๋„ ๋ณ€๊ฒฝ์‹œ ๋Œ€์‘์ด ์–ด๋ ต๊ตฌ๋‚˜ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค.

๊ฐ„๋‹จํ•œ ๊ฒŒ์ž„

label ๋ฌธ๊ณผ say๋ฌธ์œผ๋กœ ๊ฐ„๋‹จํ•œ ๋Œ€์‚ฌ ์ถœ๋ ฅ ๋ถ€๋ถ„์„ ๋”ฐ๋ผ ํ•ด๋ณธ๋‹ค.
scene์œผ๋กœ ์ด๋ฏธ์ง€๋ฅผ ๋กœ๋”ฉํ•œ๋‹ค.
์บ๋ฆญํ„ฐ๋ฅผ ์ •์˜ํ•˜๊ณ , show๋ฌธ์œผ๋กœ ์บ๋ฆญํ„ฐ ์ด๋ฏธ์ง€๋ฅผ ๋กœ๋”ฉํ•œ๋‹ค.
๋ ŒํŒŒ์ด์˜ ํด๋”๋Š” ๊ฐœ๋ฐœ ์ชฝ์—์„œ ๊ด€๋ฆฌํ•˜๊ธฐ ํŽธํ•˜๋„๋ก ํ•˜๋Š” ์—ญํ• ์ด๋ฉฐ ํŒŒ์ผ์˜ ์ด๋ฆ„์„ ์ž˜ ์ง€์ •ํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค.
ํŒŒ์ผ๋ช…์˜ ๊ณต๋ฐฑ์„ ์ด์šฉํ•˜์—ฌ ์†์„ฑ์„ ๋‹ค๋ฅผ ์ˆ˜ ์žˆ๋‹ค.
hide ๋ช…๋ น์œผ๋กœ ์ด๋ฏธ์ง€๋ฅผ ์ˆจ๊ธธ ์ˆ˜ ์žˆ๋‹ค.

define s = Character('Sylvie', color="#c8ffc8") # ์บ๋ฆญํ„ฐ1 ์„ค์ •
define m = Character('Me', color="#c8c8ff")     # ์บ๋ฆญํ„ฐ2 ์„ค์ •

label start:
    scene bg meadow # ๋ฐฐ๊ฒฝ ๋กœ๋”ฉ(์†์„ฑ meadow)

	# ๋‚˜๋ ˆ์ด์…˜
    "After a short while, we reach the meadows just outside the neighborhood where we both live."
    "It's a scenic view I've grown used to. Autumn is especially beautiful here."
    "When we were children, we played in these meadows a lot, so they're full of memories."

    m "Hey... Umm..." # ๋Œ€์‚ฌ

    show sylvie green smile # ์บ๋ฆญํ„ฐ ํ‘œ์‹œ (green smile ์†์„ฑ์˜ slyvie ์ถœ๋ ฅ)
                            # ๊ทธ ์ž์ฒด๋กœ ํŒŒ์ผ๋ช…์ด ๋œ๋‹ค. "sylvie green smile.png"
    
    "She turns to me and smiles. She looks so welcoming that I feel my nervousness melt away."
    "I'll ask her...!"

    m "Ummm... Will you..."
    m "Will you be my artist for a visual novel?"

    show sylvie green surprised

    "Silence."
    
label leaving:

    s "I'll get right on it!"

    hide sylvie

    "..."

    m "That wasn't what I meant!"

์„ ํƒ์ง€์™€ ๋ถ„๊ธฐ

menu ๋ฌธ์œผ๋กœ ์„ ํƒ์ง€๋ฅผ ๋›ฐ์šธ ์ˆ˜ ์žˆ๋‹ค.
jump ๋ฌธ์œผ๋กœ ์„ ํƒ์ง€์— ๋”ฐ๋ผ, ํ•ด๋‹น label๋กœ ๋ถ„๊ธฐํ•œ๋‹ค.

    s "Sure, but what's a \"visual novel?\""

menu:

    "It's a videogame.":
        jump game

    "It's an interactive book.":
        jump book

label game:

    m "It's a kind of videogame you can play on your computer or a console."

    jump marry

label book:

    m "It's like an interactive book that you can read on a computer or a console."

    jump marry

label marry:

    "And so, we become a visual novel creating duo."

ํ™”๋ฉด ์ „ํ™˜ ํšจ๊ณผ

ํŠธ๋žœ์ง€์…˜์„ ํ•˜๋Š” ๋ฐฉ๋ฒ•
scene์ด๋‚˜ show๋ฌธ์„ ์ž‘์„ฑํ•œ ๋‹ค์Œ์— with๋ฌธ์œผ๋กœ fade๋‚˜ dissolve ๋“ฑ์˜ ํšจ๊ณผ๋ฅผ ๋„ฃ์„ ์ˆ˜ ์žˆ๋‹ค.

label start:

    scene bg meadow
    with fade

    "After a short while, we reach the meadows just outside the neighborhood where we both live."
    "It's a scenic view I've grown used to. Autumn is especially beautiful here."
    "When we were children, we played in these meadows a lot, so they're full of memories."

    m "Hey... Umm..."

    show sylvie green smile
    with dissolve

    "She turns to me and smiles. She looks so welcoming that I feel my nervousness melt away."
    "I'll ask her...!"

    m "Ummm... Will you..."
    m "Will you be my artist for a visual novel?"

์˜ˆ์‹œ, ํ™”๋ฉด๊ณผ ์บ๋ฆญํ„ฐ๊ฐ€ ๋™์‹œ์— ๋””์กธ๋ธŒ ํšจ๊ณผ์™€ ํ•จ๊ป˜ ๋‚˜ํƒ€๋‚จ.

    scene bg meadow
    show sylvie green smile
    with dissolve

๋ฐฐ๊ฒฝ ํ™”๋ฉด์— ๋””์กธ๋ธŒ ํšจ๊ณผ๋ฅผ ๋จน์ธ ํ›„, ๊ทธ ๋‹ค์Œ์— ์บ๋ฆญํ„ฐ๊ฐ€ ๋””์กธ๋ธŒ ํšจ๊ณผ์™€ ํ•จ๊ป˜ ๋‚˜ํƒ€๋‚จ.

    scene bg meadow
    with dissolve
    show sylvie green smile
    with dissolve

๋ฐฐ๊ฒฝ ํ™”๋ฉด์€ ์ฆ‰์‹œ ๋‚˜์˜ค๊ณ , ์บ๋ฆญํ„ฐ๊ฐ€ ๋””์กธ๋ธŒ ํšจ๊ณผ์™€ ํ•จ๊ป˜ ๋‚˜ํƒ€๋‚จ.

    scene bg meadow
    with None
    show sylvie smile
    with dissolve

์œ„์น˜

at๋ฌธ์„ ์‚ฌ์šฉํ•˜์—ฌ ์บ๋ฆญํ„ฐ ์ถœ๋ ฅ์‹œ ์œ„์น˜๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋‹ค.

  • left : ์™ผ์ชฝ
  • right : ์˜ค๋ฅธ์ชฝ
  • center : ๊ฐ€์šด๋ฐ
  • truecenter : ์ˆ˜ํ‰์ˆ˜์ง ๋ชจ๋‘ ๊ฐ€์šด๋ฐ (์•„์ดํ…œ ๊ฐ™์€ ๊ฑฐ ํ‘œ์‹œํ•  ๋•Œ)
     show sylvie green smile at right

์˜ค๋””์˜ค

play๋ฌธ์œผ๋กœ opus, ogg vorbis, mp3 ํ˜•์‹์˜ ์Œ์•…์„ ์—ฐ์ฃผํ•  ์ˆ˜ ์žˆ๋‹ค.
play music์€ ๋ฐ˜๋ณต ์—ฐ์ฃผ๋œ๋‹ค. play sound๋Š” ํšจ๊ณผ์Œ์œผ๋กœ ํ•œ๋ฒˆ๋งŒ ์ถœ๋ ฅ๋œ๋‹ค.

    play music "audio/illurock.ogg"

์Œ์•… ๊ต์ฒด์‹œ ์ด์ „ ์Œ์•…๊ณผ cross fade ํ•œ๋‹ค. (์ด์ „ ์Œ์•…์ด ์—†์„ ๊ฒฝ์šฐ, ํŽ˜์ด๋“œ์ธ ํšจ๊ณผ๋งŒ)

    play music "audio/illurock.ogg" fadeout 1.0 fadein 1.0

queue๋ฌธ์€ ์ด์ „ ์Œ์•…์ด ์ข…๋ฃŒ๋œ ํ›„ ์ด์–ด์„œ ์—ฐ์ฃผํ•  ๊ณก์„ ํ์— ๋„ฃ๋Š”๋‹ค.

    queue music "audio/next_track.opus"

์Œ์•…์„ ๋ฉˆ์ถ˜๋‹ค.

    stop music

play sound๋ฌธ์œผ๋กœ ํšจ๊ณผ์Œ์„ ์ถœ๋ ฅํ•œ๋‹ค. play music๊ณผ ๋‹ฌ๋ฆฌ ํ•œ๋ฒˆ๋งŒ ์ถœ๋ ฅ๋œ๋‹ค.

    play sound "audio/effect.ogg"

game/audio์— ์Œ์•… ํŒŒ์ผ์ด ์žˆ์„ ๊ฒฝ์šฐ, ํŒŒ์ผ๋ช…, ๋”ฐ์˜ดํ‘œ, ํ™•์žฅ์ž ๋“ฑ์„ ์ƒ๋žต ๊ฐ€๋Šฅ (์˜ˆ์‹œ)

    play music illurock

์ผ์‹œ์ค‘์ง€

pause # ๋งˆ์šฐ์Šค ํด๋ฆญ ์ž…๋ ฅ์„ ๊ธฐ๋‹ค๋ฆด ์ˆ˜ ์žˆ๋‹ค.
pause 3.0 # 3์ดˆ๊ฐ„ ๋ฉˆ์ถ˜๋‹ค.

๊ฒŒ์ž„ ์ข…๋ฃŒ

return ๋ฌธ์œผ๋กœ ๊ฒŒ์ž„์ด ์ข…๋ฃŒ๋œ๋‹ค.

ํŒŒ์ด์ฌ ํ™•์žฅ

๊ฒŒ์ž„ ๋ฐ์ดํ„ฐ ์ €์žฅ, ์ด๋ฒคํŠธ ์—ฐ์ถœ, ๊ฐ์ข… ํ”Œ๋ž˜๊ทธ ๊ด€๋ฆฌ ๋“ฑ์„ ์œ„ํ•ด์„œ ํŒŒ์ด์ฌ ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•ด์„œ ๋ณ€์ˆ˜๋‚˜ ์กฐ๊ฑด๋ฌธ ๋“ฑ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

๊ธฐํƒ€ (ํ™•์žฅํ‚ท ๋ฐ ํŒจ๋Ÿด๋ž™์Šค ์ดํŽ™ํŠธ)

์ด ๋ถ€๋ถ„๋ถ€ํ„ฐ๋Š” ๋ ŒํŒŒ์ดํ€ต์Šคํƒ€ํŠธ์—” ์—†๋Š” ๋‚ด์šฉ์ด์ง€๋งŒ, ์ข€ ๋” ํ€„๋ฆฌํ‹ฐ ๋†’์€ ๊ฒŒ์ž„์„ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ด๋Ÿฐ ํˆดํ‚ท์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์•„๋ณด์ธ๋‹ค.

๋ ŒํŒŒ์ด ๋™๊ทธ๋ž€์‚ฌ๊ฐํ˜• GUI ํ‚ท

  • https://novelkit.itch.io/rounded-gui-kit 
  • USD 9.99$์ด๋ฉฐ, ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๋™๊ทธ๋ž—๊ฒŒ ๋งŒ๋“ค์–ด ์ค€๋‹ค. ์ผ๋‹จ ๊น”๋”ํ•ด์„œ ์ข‹๋‹ค.
  • ๋น„์Šทํ•œ GUI ํ‚ท ์ค‘์—๋Š” ๋ฌด๋ฃŒ๋„ ์กด์žฌํ•˜๊ณ , ๋” ๋น„์‹ผ ๊ฒƒ๋„ ์žˆ์ง€๋งŒ, ๋ญ”๊ฐ€ ์ถ”์ฒœํ•˜๊ธฐ๋Š” ์–ด๋ ต๋‹ค.
  • ์™œ๋ƒ๋ฉด ๊ฒŒ์ž„ ๋ถ„์œ„๊ธฐ์— ๋”ฐ๋ผ ๋ฐ”๋€Œ์–ด์•ผ ํ•˜๋Š” ๋ถ€๋ถ„๋“ค์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜๊ธฐ ๋•Œ๋ฌธ์—... 
  • ์ด๋Ÿฐ ๋…ธ๋ฒจ ํ‚ท์„ ์ง์ ‘ ๋งŒ๋“ค๋ ค๋ฉด, GUI Customization Guide ๋ ŒํŒŒ์ด ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜๊ณ , ํฌํ† ์ƒต ๊ฐ™์€๊ฑธ๋กœ UI ๋””์ž์ธ์„ ์ž˜ ํ•˜๋ฉด ๋˜๊ฒ ์ง€๋งŒ, UX ์„ผ์“ฐ๊ฐ€ ์—†์œผ๋ฉด ํž˜๋“ค์ง€ ์•Š์„๊นŒ?

ํŒจ๋Ÿด๋ž™์Šค ์ดํŽ™ํŠธ

  • 2D ์ด๋ฏธ์ง€๋“ค์˜ Z์ขŒํ‘œ๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ณต๊ฐ„๊ฐ์„ ํ‘œํ˜„ํ•˜๊ธฐ ์œ„ํ•œ ํšจ๊ณผ.
  • ์œ ํŠœ๋ธŒ ์˜์ƒ๊ณผ ๊นƒํ—ˆ๋ธŒ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•˜๊ฒŒ ํ™œ์šฉ๊ฐ€๋Šฅํ•  ๊ฒƒ ๊ฐ™๋‹ค.
  • https://www.youtube.com/watch?v=XEcpQckYtnY

์˜ค๋Š˜์€ ์—ฌ๊ธฐ๊นŒ์ง€...

๋˜ฅ๊ปจ์˜๋ฌผ๋ฆฌ์— ๊ฒŒ์ž„ ์˜์ƒ ์˜ฌ๋ ค์•ผ ๋จ.

์œ ํŠœ๋ธŒ ๋Œ“๊ธ€์ด ์•…ํ”Œ๋ฆฌ ๋‹ฌ๋ฆฌ๊ธธ๋ž˜... ์žฌ๋ฏธ์žˆ์–ด์ง.

728x90
๋ฐ˜์‘ํ˜•