Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

The Flail Scale TaleView game page

Johnny wants to grow a tree using a flail
Submitted by nankink, BrunORC — 8 hours, 19 minutes before the deadline
Add to collection

Play game

The Flail Scale Tale's itch.io page

Results

CriteriaRankScore*Raw Score
Concept (gameplay)#1952.1673.250
Overall#2202.0563.083
Presentation (visuals)#2242.0003.000
Theme#2262.0003.000

Ranked from 4 ratings. Score is adjusted from raw score by the median number of ratings per game in the jam.

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Как ты сделал плавное вращение цепи за мышкой?

Developer

My code is a little messy (one day of jam and such) but it goes like this:

  • Player Script:
    • private void Update() {
           if (!dead) {
                handleAim();
           }
      }
      void handleAim() {
           Vector3 mousePos = Mouse.current.position.ReadValue();
           Vector3 Worldpos = Camera.main.ScreenToWorldPoint(mousePos);
           weapon.Aim(Worldpos);
      }
  • Weapon Script:
    • private void Update() { UpdateAim(); }
      public virtual void Aim(Vector3 mousePos) {
           aimDirection = mousePos - transform.position;
           aimDirection.z = 0;
           aimDirection = aimDirection.normalized;
      }
      public void UpdateAim() {
           Vector3 currentAimDirection = transform.up;
           currentAimDirection.z = 0;
           currentAimDirection = currentAimDirection.normalized;
           Vector3 rightDirection = transform.right;
           rightDirection.z = 0;
           rightDirection = rightDirection.normalized;
           Debug.DrawRay(transform.position, aimDirection, Color.blue, 0.1f);
           Debug.DrawRay(transform.position, currentAimDirection, Color.red, 0.1f);
           float rotationDirection = Vector3.Dot(rightDirection, aimDirection);
           float angularVelocity = -Mathf.Sign(rotationDirection);
           float maxAngle = Vector3.Angle(currentAimDirection, aimDirection);
           float rotationValue = angularVelocity * rotationSpeed * Time.deltaTime;
           rotationValue = Mathf.Sign(rotationValue) * Mathf.Clamp(Mathf.Abs(rotationValue), 0, maxAngle);
           transform.Rotate(0, 0, rotationValue);
      }
Submitted

Looks good and is easy to play,  good job

Developer(+1)

Top