Questions tagged [interface]
Refers to a method of interacting with the game. This can be: mouse, keyboard, voice, motion.
75 questions
1
vote
1
answer
269
views
How should I go about handling multiple phone resolutions from a reference resolution?
I built my entire game in Unity based on my Android phone resolution, both for UI and object sizes. Now, everything looks good for a 1080 x 2400 resolution, but I know that's not the aspect ratio of ...
1
vote
1
answer
51
views
Add Item for OptionsButton is Gone from the editor
When i added in a optionbutton for my hud i couldnt find a way to add items manually,this was weird as when i looked for a way,a button on top of the editor should appear but its not there?
I dont ...
0
votes
1
answer
53
views
Creating a procedural filter stack GUI similar to Blender's Mofifier panel
I have a data structure that represents a simple terrain system and a number of filter algorithms that can be run on it. I want to be able to apply them in in any arbitrary order and have multiple ...
0
votes
2
answers
326
views
Interaction between interfaces with C# Unity
I'm making a Mindustry-type prototype. Some block (such as miners) can output resource (with the IOutput interface), some block (such as containers) can input those ...
3
votes
2
answers
364
views
Given a base class and many derived classes with additional features, what's the best practice for accessing those features?
This might sound strange, but let me explain. Say I want to write a safari program.
In this safari there is an object pool of 10 animals (Animal*): 2 ostrich, 5 ...
3
votes
0
answers
1k
views
Zooming in a lot without having 3D objects disappear in the Unity Editor
I'm editing the 2D colliders on some objects of my game, and I need them to be very accurate, so I'm zooming in a lot. Problem is, since my objects are 3D graphically, when I zoom in a lot they ...
3
votes
0
answers
1k
views
Unity Prefabs set to Read Only?
I have a collection of different enemies that I save as Prefabs with default AI settings. I drag them into the game world and apply changes to the AI as necessary.
Every now and then for some reason I ...
2
votes
3
answers
227
views
Is it possible/recommended to make a universal game library interface in C
Lets say I want a game to be able to run with SDL, Allegro, on Game parks or Tiny Arcade and I don't want to recode everything everytime I port my game.
The C and C++ language separate definition in ....
0
votes
1
answer
90
views
How to distinguish between different platforms using an interface
I'm creating a platform system using a raycast controller that uses an interface to perform different tasks based on the type of platform with which my player is currently colliding. Some of the ...
1
vote
0
answers
103
views
Unity - ThirdPersonController - help implementing with my own models please
I've created a basic 3d character (humanoid) in Blender with animations etc. I've imported it into Unity and it works fine. However, I have written my own code to handle the CrossPlatformInput script ...
2
votes
1
answer
2k
views
Why does Unity require an EventSystem component for input during a play-test, where input works fine without it in a build?
Please be aware that this was initially a question about how to get the input to work. A comment pointed me in the direction of a fix, but only left me with more questions in regards to understanding ...
1
vote
0
answers
796
views
FPS game UI theory [closed]
Are there any researches concerning FPS game interfaces? I'm interested in analyses of designing & positioning UI-elements. The only thing I can find are blogs and articles about immersion in ...
3
votes
1
answer
3k
views
How to send an interface message?
I come from Unreal, still using it. There, how it works is like this:
Let's say you as a player have a laser gun or something, and when shooting, you use raycast to see if you've shot anything, and ...
1
vote
1
answer
846
views
What algorithm is used to select a voxel (from a player's perspective)?
In first-person voxel games (like Minecraft, shown below) you can select voxels by going over them. What kind of algorithm is used to select a voxel?
I haven't implemented it in my voxel application ...
11
votes
2
answers
27k
views
What are diegetic, non-diegetic, spatial and meta user interfaces?
Could anyone please explain to me the differences between "diegetic," "non-diegetic," "spatial," and "meta" user interfaces in terms of how they are represented in games and game development?
0
votes
1
answer
252
views
Have several classes with a common interface, but still able to access MonoBehaviour methods through that interface?
In our project we used to have a PlayerObject class and then Unit and Building derived from that class. We recently started taking a look at Bolt, which requires classes that define objects that may ...
2
votes
1
answer
6k
views
Scaling an SDL Surface
I want to create a button for a game's UI. The background uses a gradient and then I blit a surface on top of the gradient and use SDL_SetColorKey to delete the unwanted pixels. The surfaces are not ...
32
votes
7
answers
11k
views
Why do games ask for screen resolution instead of automatically fitting the window size?
It seems to me that it would be more logical, reusable and user-friendly to implement flexible, responsive UI layout over a 3d or 2d screen, which can then be run on any screen resolution.
Some ...
3
votes
1
answer
3k
views
Background color gradient with SDL
I want to create a menu for a game using a color gradient as the background. Is there a way to create a gradient background instead of using an image for it (since I don't know what size the window ...
1
vote
1
answer
699
views
Mouse Cursor Scaleform 4 / AS3
I just solved my issue
in my object (on the stage) I forgot to name the element
I'm trying to make workin a custom mouse cursor on my Scaleform menu.
I have follow some tutorials but nothing good...
...
1
vote
1
answer
2k
views
Saving an interface instance into a Bundle
All
I've have an interface that allows me to switch between different scenes in my Android game. When the home key is pressed, I am saving all of my states (score, sprite positions etc) into a Bundle....
0
votes
1
answer
239
views
Problem with Widget Event Reporting in Libgdx
So I'm trying to test an ImageButton on an Android device. I can get the button to appear on the screen, but when I press it nothing happens or appears on the log. Here is what I have in the Show() ...
2
votes
1
answer
286
views
Is this an appropriate use of abstraction in my game engine?
I have been stuck in the design phase on my new game for a few weeks now because I keep finding new parts of the game engine that I could make more modular and neat. I did, however, run into a ...
3
votes
0
answers
323
views
Does somebody know of a testcase(s) of libRocket [closed]
Today I implemented the interfaces for libRocket in my engine using OpenGL 3.3. I got a standard RML file and some fonts and images which where needed in this RML file. It seems that the page/RML I'm ...
3
votes
1
answer
373
views
Best way to design a negotiation deal?
I'm currently coding a heavily text-based RPG game which requires you to do deals with characters or suppliers in the game, sometimes the deals are good/bad.
Currently the way I'm doing it is that, ...