Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra from gmlscripts #70

Open
CryoEagle opened this issue Jan 1, 2019 · 0 comments
Open

Extra from gmlscripts #70

CryoEagle opened this issue Jan 1, 2019 · 0 comments

Comments

@CryoEagle
Copy link
Collaborator

CryoEagle commented Jan 1, 2019

Ai

  • intercept_course(origin,target,speed) ✔️
    Returns the course direction required to hit a moving target at a given projectile speed, or (-1) if no solution is found.

Date Time

  • date_time_string(format); ❌
  • unix_timestamp([datetime]) ❌
    Returns a Unix timestamp for the current time or optionally given SimplexRpgEngine datetime value.

Draw

  • draw_text_shadow(x,y,str,color,shadow,intensity,distance,direction)

Strings

  • int_to_base(int number, int base) --> string ✔️

Misc

  • line_get_slope(Vector2 p1, Vector2 p2) ✔️
  • boxstep(a, b, x) ✔️
  • smoothstep(a, b, x) ✔️

Math

  • factorial(n) ✔️
  • permutations(set, subset) ✔️
  • random_weighted(p1, [p2..]) 🔸✔️ --> irandom_weighted
  • fibonacci(n) ✔️
  • lcm(a, b) ✔️
  • gcd(a, b) ✔️
  • next_pow2(n) 📌✔️ --> far more efficient implementation
@CryoEagle CryoEagle changed the title Ai, Date Time Ai, Date Time, Draw Jan 1, 2019
@lofcz lofcz changed the title Ai, Date Time, Draw Extra from gmlscripts Jan 1, 2019
@lofcz lofcz added the GM port label Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants