Jump to content
  • Advertisement
  • entries
    59
  • comments
    86
  • views
    40894

Weekly update #24

Ph4nt0m

987 views

UI: character menu & build mode panel Domen Koneski

Continuing with the UI, I have decided to implement a brand new character menu that includes all the player stats, player model and item slots for your dressing needs (will be implemented in the future). You can rotate your player model with the script that is provided below.

character_menu_ui_lowpoly_floatlands.png
New character menu

I have also changed the looks of the Build mode to make it as simple as possible.

ui_buildmode_lowpoly_floatlands.png

New build mode outlook

 

Generic mouse swipe script Domen Koneski

It is time to give away some code for those in need of a solution when you want to do something with the mouse gestures, in this case a mouse “swipe” gesture, e.g. you wish to rotate your character model in the character menu with your mouse. The script provided can be used in your projects, free of charge, and can handle multiple things:

  • Unity Event when moving the mouse in X direction only
  • Unity Event when moving the mouse in Y direction only
  • Unity Event when moving the mouse in XY direction
  • Knowing if the mouse is “down” on the selected raycastable panel

To make things work create a UI panel, hide the image (do not disable the component), select the image as raycastable and add this script. What you have to do now is to populate your Unity events with your custom function calls. Do not forget when calling your function via this script the function getting called must take one (for X or Y only events) or two (XY event) arguments type of float. The last thing is to mark the event as dynamic, see image below.

mouse_swipe_script_lowpoly_floatlands.pn
mouse swipe script

using UnityEngine;
 
using UnityEngine.Events;
 
using UnityEngine.EventSystems;
 
namespace Floatlands.UI
{
    public class MouseSwiper : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
    {
        public bool isHoldingDown;
        public Vector2 totalDeltaVector;
        public Vector2 deltaVector;
        private Vector2 prevVector;
 
       private Vector2 startPosition;
        private PointerEventData eventData;
 
       [SerializeField]
        public SwipeSingleEvent OnSwipeXEvent;
        [SerializeField]
        public SwipeSingleEvent OnSwipeYEvent;
        [SerializeField]
        public SwipeDoubleEvent OnSwipeXYEvent;
 
       public void OnPointerDown(PointerEventData eventData)
        {
            isHoldingDown = true;
            startPosition = eventData.pressPosition;
            prevVector = startPosition;
            this.eventData = eventData;
        }
 
       public void OnPointerUp(PointerEventData eventData)
        {
            isHoldingDown = false;
        }
 
       void Update()
        {
            if (isHoldingDown)
            {
                Vector2 currentPosition = this.eventData.position;
                totalDeltaVector = currentPosition - startPosition;
 
               deltaVector = currentPosition - prevVector;
 
               prevVector = currentPosition;
 
               OnSwipe((int)deltaVector.x, (int)deltaVector.y);
            }
            else
            {
                totalDeltaVector = Vector2.zero;
            }  
       }
 
       void OnSwipe(int deltaX, int deltaY)
        {
            if (OnSwipeXEvent != null)
                OnSwipeXEvent.Invoke(deltaX);
            if (OnSwipeYEvent != null)
                OnSwipeYEvent.Invoke(deltaY);
            if (OnSwipeXYEvent != null)
                OnSwipeXYEvent.Invoke(deltaX, deltaY);
        }
    }
 
   [System.Serializable]
    public class SwipeSingleEvent : UnityEvent<int> { }
    [System.Serializable]
    public class SwipeDoubleEvent : UnityEvent<int, int> { }
}

 

Outfits and speakers Andrej Krebs

Mito created some outfits concepts for “techies” that would distinguish them from the “farmers”. So this week I was occupied with modeling and weight painting the new outfits. They put more metal pieces on themselves as armour is made of junk pieces of sheet metal.

techies_outfits_lowpoly_floatlands-1.png
various “techies” outfits

After that I modeled propaganda speakers, which will appear in the world. The speakers will emit propaganda messages and other sounds.

propaganda_speakers_lowpoly_floatlands.p

propaganda speakers

 

Extra robot concepts Mito Horvat

Currently there is only one type of enemy robots. Simple humanoid machines that wield various weapon types (from snipers to grenadiers etc), they roam around and attack anything in sight. In the near future we’ll add sturdy, hard to destroy robots that will challenge the player. In addition, we’ll also add small spider like robots that will be quick and unforgiving with their melee attacks. Those enemies will surely test your aim. You can see the first glimpse of concept sketches below.

enemy_robots_concepts_lowpoly_floatlands
a different kind of enemy robots

 

Mining drone in action tadej vranesic floatlands

This week I’ve been playing around with drones, particularly “mining” drone which Andrej beautifully modeled. Mining drone will represent a fine touch to resource collecting. Upon destruction its loot will be dropped and ready for collection, which allows the player to gather resources faster. Tweaking its avoidance system makes it fly smootly regardless of any obstacles on its path. Finishing touches were also made for the drill rotation. More nuts and bolts next week.

mining_drone_active_lowpoly_floatlands.g
mining drone in action

NPC battles vili ikona

Humans are already alive and fighting each other (Farmers vs. Techies). They have 3 different weapons for now: fists, single shot pistol and revolver. They can also melee attack with pistols!

NPC_fighting_lowpoly_floatlands.png
NPCs fighting

I also just started working on ‘Hint nodes’, which will have different geometric shapes. Those hint nodes will provide information about the world – safe spots, danger spots, sniper spots and so on.

basic_gizmos_lowpoly_floatlands.png
basic gizmos


More about Floatlands: website, facebook, twitter, instagram



1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Advertisement
  • Blog Entries

  • Similar Content

    • By ggenije
      On picture 1 is actually what I get, but how to make it to look like pic 2?

    • By Mercutio604x
      Hi,
      I am using unitys mecanim system
      I have a layer that controls movement ie idle -> run
      it works fine when I press W I run forward with the animation via transform.position += anim.deltaPosition; // anim is on a child object that has the animator
      I have a second layer for attack set to override 100%, on this layer I have just the head moving and is masked just for the neck up. it plays when I press the mouse button.
       
      Now my problem is when I press W and mouse button, it plays both animations BUT it stops moving forward.
      Theres no location key frames on the attack or any key frames on the root node for that matter.
       
      Please tell me if I am being unclear.
      Thanks in advance,
       
      Also I lost my other acc because I cant remember my pass or the email i used, is there a way I can get it back? like I say the account name and it tells me which email i used?
    • By Thing Trunk
      Hi,
      Our hack & slash game, Book of Demons is exiting early access in less than an hour (8am PST) and we're doing an AMA live on reddit 
       
      Feel free to join and ask us any questions
    • By tspartant
      Hey everyone! My name is Ryan. 
       
      Visualistic Studios is looking for experienced developers of all talents to join a game development team focused on completing contract work for compensation. 
       
      Work Description
      Typically you will either be assisting the team or working on your own contract.
      We usually bid $16-$25/h, however contracts can go above and below that so all pay grades are welcome, just be realistic. 
       
      Short Term Contracts
      Long Term Contracts
       
      We have the highest priority for these skills right now
       
      Programming - Unity, Unreal Blueprints
      Environment Artist
      Character Artist
      Character Animation
      UI Artist
      3D Asset Optimization
       
      VR/Mobile experience is a plus. 
       
      The Process 
      All communication is done through discord. All tasks and design documents will be laid out in "HackNPlan" for organization. 
      Initially, you'll get in contact with me and answer a few questions so I can get a scope of your experience. Afterwards, our outreach team will start looking for jobs that fit your description. Nothing is guaranteed, but if we know you're interested we can start looking 
       
      Our Experience
      For the past 3 years I've been working in game development contracting, and the past year I've been working full time from home. Since then, I've received more and more contracts and I'm now at the point that I have too many for myself to handle. This sparked the idea of creating a game development team for contract work! I've also been running my own hobby company for 5 years, and have a lot of experience in team management. 
       
      Get in contact!
      Please fill out this form so we can get all of the information out of the way, then we'll get in contact with you!
      Thank you everyone for reading, hope to hear from you soon!
    • By addictCoderCS
      Hi there,
      I'm working on an web RPG. This is not and action RPG. 
      The problem is I work full-time as a software developer and while I may get some code for the game done at work, I'm still a little short on time. So I'm looking for a second programmer to help me out. Please no beginners. I prefer working with someone who has built a full game (client, game server, web services, db)
      Requirements:
      Proficient in C# Proficient in .Net Core 2.X Experience with ASP.Net Core MVC Experience with ASP.Net Core Web API Experience with Unity 2018 Proficient in SQL and SQLite Proficient in EntityFramework Experience in AWS (RDS and EC2) Experience with IIS I'll handle the cost of any third-party services, domain names, etc. I'm just looking for a little help to get this game built in a reasonable amount of time. It will also be nice to bounce some ideas off each other.
       
      If you are interested, please send me an email: addictcodercs@gmail.com
       
       
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!