詳解🔍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. ৄղ #VSO 0FEP3VCZ,BJHJ !SFNPSF

  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
  3. ʲ໨࣍ʳ ̍ɺ#VSOͷ͓͞Β͍ ̎ɺৄղ#VSO 'VFM%4-  ̏ɺ໌೔͔Β࢖͑Δ ɹɹ#VSOΛ࢖ͬͨ฻Β͠ͷ޻෉ ̐ɺ#VSOͷं૭͔Β

  4. None
  5. l"NB[JOHXPSLz l7FSZWFSZDPPM TUV⒎z

  6. l5IFDPPMFTUTIJUJT BMXBZTUIFNPTU VTFMFTTz ௒༁ɿ࠷ߴʹΫʔϧͳ΋ͷ͸͍ͭ΋ ࠷ߴʹ໾ʹཱͨͳ͍΋ͷͰ͢Ͷ

  7. l5IF.PTU6TFMFTTz ͱධ͞Εͨϲ݄ޙ

  8. 3VCZLBJHJ SFTVMUPGZPVS$'1 BEPQUFE 

  9. ʲ໨࣍ʳ ̍ɺ#VSOͷ͓͞Β͍ ̎ɺৄղ#VSO 'VFM%4-  ̏ɺ໌೔͔Β࢖͑Δ ɹɹ#VSOΛ࢖ͬͨ฻Β͠ͷ޻෉ ̐ɺ#VSOͷं૭͔Β

  10. #VSOͰ͸Լهͭͷର৅෺Λ %4-Ͱૢ࡞Մೳʹ͍ͯ͠·͢ ɹ%FDMBSFม਺Λએݴ͢Δ ɹ4DFOFը໘ͷಈ͖Λॻ͘ ɹ.VTJD OFTϞʔυͷΈ  ۂΛॻ͘ ɹ4PVOE OFTϞʔυͷΈ

     ޮՌԻΛॻ͘ ɹ$POpH UFMOFUϞʔυͷΈ  αʔόઃఆ
  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.ͷύλʔϯςʔϒϧͷ࢓༷ʹ ΑΔ੍໿৚݅
  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෦෼తͳը໘ண৭
  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^ͷछྨ
  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 ͷԻָදݱ͕Մೳ
  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 ͸·ͩͦ͜·Ͱਂ͘࡞ΓࠐΊ ͯͳ͍
  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͸ඳըྖҬʢը໘ ͷߴ͞ɺ෯ʣΛࢦఆ
  17. ʲ໨࣍ʳ ̍ɺ#VSOͷ͓͞Β͍ ̎ɺৄղ#VSO 'VFM%4-  ̏ɺ໌೔͔Β࢖͑Δ ɹɹ#VSOΛ࢖ͬͨ฻Β͠ͷ޻෉ ̐ɺ#VSOͷं૭͔Β

  18. ࣄલ४උ HFNJOTUBMMCVSO CVSOJOJU

  19. $BTF ɾձٞࣨʹϓϩδΣΫλ͕ແ͍࣌ ͱ͔ ɾλʔϛφϧͰϓϨθϯ͍ͨ࣌͠ ʢ3'$ͷςΩετΛಡ΋͏ͱ͔ʣ ͔ͭ ɾ3BCCJUΈ͍ͨͳλΠϜΩʔϓ͍ͨ͠

  20. XHFUIUUQTUPPMTJFUGPSHSGDSGDUYU CVSOGVFMGSGDUYUIU NBJOSCCVSO UFMOFUMPDBMIPTU

  21. $BTF ੲͷήʔϜͷۂ໊͕෼͔Βͳ͍࣌

  22. NLEJSDBTFDEDBTF FDIPbHVBSE TIFMM \XBUDI   SC \c NcACVSODA^^`(VBSEpMF HVBSE

    WJNNBJOSC'VFM%4-Λॻ͘
  23. $BTF 5FMOFUͰಈ͘""Λ࡞ͬͨΓ ήʔϜΛ࡞ͬͨΓ΋Ͱ͖·͢ HJUIVCDPNSFNPSFCVSOFYBNQMF ʹ͍͔ͭ͘ͷαϯϓϧ͕͋Γ·͢

  24. ʲ໨࣍ʳ ̍ɺ#VSOͷ͓͞Β͍ ̎ɺ໌೔͔Β࢖͑Δ ɹɹ#VSOΛ࢖ͬͨ฻Β͠ͷ޻෉ ̏ɺৄղ#VSO 'VFM%4-  ̐ɺ#VSOͷं૭͔Β

  25. None
  26. ୆࿷͔Β3VCZJTU͕ ଟ਺དྷ͍ͯͨ ڈ೥ͷ1SF3VCZ,BJHJ 8FMDPNF1BSUZ

  27. l୆࿷ʹ΋DIΈ͍ͨͳ ܝࣔ൘͕͋ͬͯɺ͚ͩͲ ͦ͜ʹ͸5FMOFUͰܨ͗ʹߦ͘z !ZPSLYJO

  28. UFMOFUQUUDD ˞J5FSN౳ͰจࣈԽ͚͢Δ৔ ߹͸1$.BO##41SPKFDUͳ ͲΛར༻͢ΔͱΑ͍

  29. None
  30. ಡΊͳ͍

  31. ʢগ͠୤ઢ͠·͕͢ʣ ୆࿷ͱݴ͑͹

  32. None
  33. IUUQHWBTJBKBUX

  34. HWUX ৘ใΛ࣋ͭωοτࢢຽʹ ΑΔࢀՃܕͷ࣏ࣗΛ໨ࢦ͢ ࢢຽӡಈ

  35. None
  36. None
  37. ࠓ೔ͳͥHWUXͷ࿩Λ ͍ͯ͠Δͷ͔ͱ͍͏ͱ

  38. l.BOZPGUIFTFTDFOFTrWJEFPTBOEJNBHFT VQMPBEFEPO:PVUVCF 'BDFCPPLBOEPUIFS EJTDVTTJPOGPSVNTrXPVMEFOEVQCFJO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