constants.gd 289 B

1234567891011
  1. func test():
  2. const _TEST = 12 + 34 - 56 * 78
  3. const _STRING = "yes"
  4. const _VECTOR = Vector2(5, 6)
  5. const _ARRAY = []
  6. const _DICTIONARY = {"this": "dictionary"}
  7. # Create user constants from built-in constants.
  8. const _HELLO = PI + TAU
  9. const _INFINITY = INF
  10. const _NOT_A_NUMBER = NAN