soul-symphony-ling
↓ 0 downloadsSoul Symphony — Ling Edition. A spiritual 3D adventure in the soul realm: collect the letters of the world-song, clear the monster lattice, and duel in the arcade arena. Wind Waker-style toon renderer with volumetric light pools, SSAO, bloom and oil-slick tilt-shift — all ling-lang vectors.
Keywords game, 3d, toon, music, soul-symphony
lingfu install soul-symphony-lingCode / Files (1947)
game/color.ling
# ── คอนโซลสี (ANSI ผ่าน พิมพ์สี) ──
ฟังก์ชัน พิมพ์แดง(s) { พิมพ์สี(1, s) }
ฟังก์ชัน พิมพ์เขียว(s) { พิมพ์สี(2, s) }
ฟังก์ชัน พิมพ์เหลือง(s) { พิมพ์สี(3, s) }
ฟังก์ชัน พิมพ์ม่วง(s) { พิมพ์สี(5, s) }
ฟังก์ชัน พิมพ์ฟ้า(s) { พิมพ์สี(6, s) }
ฟังก์ชัน พิมพ์ขาว(s) { พิมพ์สี(7, s) }
ฟังก์ชัน color(ค, เฟส) {
สีดินสอ(
ไซน์(ค + เฟส) * 127 + 128,
ไซน์(ค + เฟส + 2.094) * 127 + 128,
ไซน์(ค + เฟส + 4.189) * 127 + 128
)
}
ฟังก์ชัน สีไซเคเดลิก(ค) {
bind เฟส = ค * tau
สีดินสอ(
ไซน์(เฟส) * 100 + 155,
ไซน์(เฟส + 2.094) * 100 + 155,
ไซน์(เฟส + 4.189) * 100 + 155
)
}
ฟังก์ชัน สีชื่อเรื่อง(เลือก) {
ถ้า เลือก == 0 { สีดินสอ(220, 50, 50) }
ถ้า เลือก == 1 { สีดินสอ( 50, 220, 220) }
ถ้า เลือก == 2 { สีดินสอ(220, 220, 50) }
ถ้า เลือก == 3 { สีดินสอ(220, 50, 220) }
}
# ── ระบบแสงสไตล์ Wind Waker (2-Band Cel Shading + Cool Sky Shadow) ──
ฟังก์ชัน คำนวณแสงวินด์เวเกอร์(ดอทแสง, สีพื้น_r, สีพื้น_g, สีพื้น_b) {
# ขั้นแสงแบบ Quantized Step
bind แสงขั้น = 0.35
ถ้า ดอทแสง > 0.35 {
bind แสงขั้น = 1.0
}
# แสงอาทิตย์สีอุ่น + เงาสีฟ้าคราม
bind แดง = สีพื้น_r * (แสงขั้น * 0.95 + 0.25)
bind เขียว = สีพื้น_g * (แสงขั้น * 0.90 + 0.30)
bind น้ำเงิน = สีพื้น_b * (แสงขั้น * 0.70 + 0.50)
สีดินสอ(แดง, เขียว, น้ำเงิน)
}