すくすくゴートうちゃん Android 版(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

goatoh.mod.hsp 1.0 KiB

1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #module \
  2. Goatoh
  3. #defcfunc local \
  4. New \
  5. double p_initPosX,\
  6. double p_initPosY,\
  7. int p_initDirection
  8. posX.insNum = p_initPosX
  9. posY.insNum = p_initPosY
  10. ; 角度
  11. arg.insNum = 0.
  12. ; 首の角度
  13. neckArg.insNum = 0.
  14. walkVel.insNum = 3.
  15. walkAcl.insNum = 0.
  16. runVel.insNum = 5.
  17. runVel.insNum = 0.
  18. direction.insNum = p_initDirection
  19. walking.insNum = False
  20. eating.insNum = False
  21. openingEyes.insNum = False
  22. openingMouth.insNum = False
  23. frame.insNum = 0
  24. insNum++
  25. Return insNum - 1
  26. #deffunc local \
  27. Walk \
  28. int p_insId
  29. If direction.p_insId = DIRECTION_LEFT {
  30. posX.p_insId -= walkVel.p_insId * Cos (arg.p_insId)
  31. posY.p_insId -= walkVel.p_insId * Sin (arg.p_insId)
  32. }
  33. Else {
  34. posX.p_insId += walkVel.p_insId * Cos (arg.p_insId)
  35. posY.p_insId += walkVel.p_insId * Sin (arg.p_insId)
  36. }
  37. Return
  38. #deffunc local \
  39. DoRun \
  40. int p_insId
  41. Return
  42. #deffunc local \
  43. Eat \
  44. int p_insId
  45. Return
  46. #deffunc local \
  47. Draw \
  48. int p_insId
  49. Pos posX.p_insId, posY.p_insId
  50. CelPut BUFFER_GOATOH_TARSO
  51. Return
  52. #global