詳解🔍Burn🔥

Fbe207d1bece86feb799fbc1841ce735?s=47 remore
November 08, 2015

 詳解🔍Burn🔥

大江戸Ruby会議05でのNinja Talkの資料です http://regional.rubykaigi.org/oedo05/

Fbe207d1bece86feb799fbc1841ce735?s=128

remore

November 08, 2015
Tweet

Transcript

  1. 2.

    self.introduction do id "remore" name "Kei Sawada" icon from [:Sapporo,

    :Tokyo] job "Software Engineer” works_at community :asakusarb do joined_at “2015-05-26” oedo05_role “࠙਌ձ୲౰” end end
  2. 4.
  3. 11.

    %FDMBSFม਺Λએݴ͢Δ declare do player <<-EOH @- @@-- @- EOH enemy

    <<-EOH XXX CXX XXX EOH blocker "%" shoot ">>>" shoot_flag 0 end ʢgithub.com/remore/burn/example/system_menu/main.rb ΑΓൈਮʣ ʲ֓ཁʳ ɾ4USJOHܕ͔'JYOVNܕͷ஋Λએݴ͢Δ ɾએݴͨ͠஋͸4DFOFͷNBJO@MPPQϝιο υʹ౉͢ϓϩάϥϜจࣈྻ಺Ͱར༻ՄೳʹͳΔ ʲOFTϞʔυͷΈʳ ɾ4USJOHܕ͸Ұߦ͋ͨΓͷഒ਺ͷ਺ͷd· Ͱͷ൒֯਺ࣈͷΈΛ֨ೲՄೳՄೳɻ·ͨɺߦ਺ ΋ͷഒ਺ͷߦ਺Ͱ͋Δඞཁ͕͋Δɻ͜Ε ͸ɺOFTͷ30.ͷύλʔϯςʔϒϧͷ࢓༷ʹ ΑΔ੍໿৚݅
  4. 12.

    4DFOFը໘ͷಈ͖Λॻ͘ scene “foobar” do color :bg, :black label "HELLO, WORLD!",

    2, 2 end ʲओͳݺͼग़͠Մೳϝιουʳ  MBCFMจࣈྻͷදࣔ  DPMPSจࣈྻɾഎܠͷ৭෇͚  XBJUࢦఆඵ਺ϙʔζ  HPUPγʔϯ੾Γସ͑  JOMJOFΠϯϥΠϯίʔυૠೖ  NBJO@MPPQϧʔϓॲཧ ʲOFTͷΈʳ  GBEF@JOɹϑΣʔυΠϯޮՌ  GBEF@PVUϑΣʔυΞ΢τޮՌ  QMBZ TUPQۂ࠶ੜɾఀࢭ  TDSFFOը໘ඳը  TPVOEޮՌԻ࠶ੜ  QBJOU෦෼తͳը໘ண৭
  5. 13.

    .VTJD OFTϞʔυͷΈ  ۂΛॻ͘ music “foobar_purple" do tempo :allegro channel

    "string" do g2 :sixteenth, :accent bs2 :sixteenth, :accent a2 :sixteenth, :tenuto g2 :sixteenth, :tenuto c3 :eighth, :dotted g2 :sixteenth, :accent bs2 :sixteenth, :accent a2 :sixteenth, :tenuto g2 :sixteenth, :tenuto c3 :eighth g2 :sixteenth, :tenuto bs2 :eighth end end ʲओͳݺͼग़͠Մೳͳϝιουʳ  UFNQP  ଎͍ॱʹɺ \QSFTUP BMMFHSP NPEF SBUP BOEBOUF BEBHJP M BSHP^ͷஈ֊ઃఆՄೳ  DIBOOFM  ଟ෼νϟϯωϧ·Ͱ࢖͑Δ  ࢖͑Δָثͷछྨ͸ \lCBTTz lQJBOPz lTUSJOHz  lBSQFHHJPz lTUFQz lCFMMz  lBDPVTUJDz lHVJUBSz  lUIFSFNJOz^ͷछྨ
  6. 14.

    .VTJD OFTϞʔυͷΈ  ۂΛॻ͘ music “foobar_purple" do tempo :allegro channel

    "string" do g2 :sixteenth, :accent bs2 :sixteenth, :accent a2 :sixteenth, :tenuto g2 :sixteenth, :tenuto c3 :eighth, :dotted g2 :sixteenth, :accent bs2 :sixteenth, :accent a2 :sixteenth, :tenuto g2 :sixteenth, :tenuto c3 :eighth g2 :sixteenth, :tenuto bs2 :eighth end end ʲDIBOOFMͷॻ͖ํʳ  υϨϛϑΝιϥγυΛD E F G H B  C DͰදݱ ੢༸Ի֊ͷӳޠಡΈ   ΦΫλʔϒΛ਺ࣈͰදݱ͍ͯͯ͠ d·Ͱͷߴ͞ ݤ෼ ར༻Մೳ  Իͷ௕͞͸ \IBMG RVBSUFS FJHIUI TJYUF FOUI^ͷΑ͏ʹදݱɻٳූ ͸SFTUɻEPUUFE@RVBSUFSͷΑ ͏ʹ͢Δͱූ఺͖ͭɺUSJQMFU@IBMG ͷΑ͏ʹ͢Δͱ࿈ූΛදݱՄೳ  ͦͷଞͷදݱͱ͠ ͯBDDFOU UFOVUP TUBDDBUP ͷԻָදݱ͕Մೳ
  7. 15.

    4PVOE OFTϞʔυͷΈ  ޮՌԻΛॻ͘ sound "change" do effect do duty_cycle

    :higher velocity 15 envelope_decay :disable length 5 pitch 200 end effect do length 4 pitch 100 end end ʲओͳݺͼग़͠Մೳͳϝιουʳ  F⒎FDU  EVUZ@DZDMFʹ͸ \MPXFTU MPXFS IJHIFS  IJHIFTU^Λઃఆɻۣܗ೾ͷ EVUZൺΛdͷ෯ Ͱܾఆɻ  WFMPDJUZͰԻͷڧ͞Λd ͷ෯Ͱઃఆ͠ɺMFOHUIͰԻͷ ௕͞Λdͷ෯Ͱઃఆ  ˞QJUDI΍FOWFMPQF@EFDBZ ͸·ͩͦ͜·Ͱਂ͘࡞ΓࠐΊ ͯͳ͍
  8. 16.

    $POpH UFMOFUϞʔυͷΈ  αʔόઃఆ config :app do target :telnet user_input

    :enable frame_rate :extreme height 13 width 73 end config :server do ip_addr '0.0.0.0' max_clients 1000 end ʲBQQΞϓϦέʔγϣϯઃఆʳ  VTFS@JOQVU͸σϑΥϧτ ͰEJTBCMFɺλʔϛφϧ্ͰͷϢʔβ ೖྗΛड͚෇͚Δ৔߹͸FOBCMFʹ  GSBNF@SBUF͸ը໘ඳըͷස౓Ͱ಺ ෦తʹ &WFOU.BDIJOF1FSJPEJD5JNFSʹ ࢖ΘΕΔɺ \FYUSFNF IJHI OPSNBM TMPX^ ͷछྨ͔Βࢦఆ  IFJHIU XJEUI͸ඳըྖҬʢը໘ ͷߴ͞ɺ෯ʣΛࢦఆ
  9. 25.
  10. 29.
  11. 30.
  12. 32.
  13. 35.
  14. 36.
  15. 38.

    l.BOZPGUIFTFTDFOFTrWJEFPTBOEJNBHFT VQMPBEFEPO:PVUVCF 'BDFCPPLBOEPUIFS EJTDVTTJPOGPSVNTrXPVMEFOEVQCFJOHUBLFO EPXOGBTUFSUIBOUIFZDPVMECFQVUVQ"OEXJUI QSPUFTUPSTDIBSHFEEVFUPUIF&YFDVUJWF :VBOQSPUFTU TUVEFOUHSPVQTPSHBOJ[FEPO155  UIFPOMJOFCVMMFUJOCPBSE

    CFHBOUPSBQJEMZ BTTFNCMFBOEDPNQJMFUIFTFpMFTTPUIBUUIFZ DPVMECFVTFEBTQPUFOUJBMFWJEFODFGVSUIFSPOz IUUQUIFEJQMPNBUDPNIPXUFDIOPMPHZSFWPMVUJPOJ[FEUBJXBOTTVOqPXFSNPWFNFOU
  16. 41.
  17. 43.