Questions related to images, including creation and modification
1
vote
3answers
199 views
2D Sprites vs UI Image Scripts in Unity
I am doing a 2D casual puzzle where the user can drag and drop some pieces into a board. The pieces are 2 or 3 or 4 tiles. Each tile may have text over the sprite.
Target platform: Mobiles and ...
0
votes
2answers
4k views
How do I add an image inside a rectangle or a circle in JavaFX?
Suppose we have a rectangle called r
Rectangle r = new Rectangle(40, 20);
and an image called image
Image image = new Image("...src for image");
How do I fit the image inside the rectangle? ...
0
votes
2answers
501 views
Cocos2d: Moving background on update: offsett issue
working with Objective C, iOS and Cocos2d I am developing a vertical scrolling shooter game for iPhone (retina display models with 640 width x 960 height pixel resolution).
My basic algorithm works ...
0
votes
1answer
25 views
JAVA: Unformed Sprite When trying to Read SpriteSheet
So Im a beginner experimenting with ImageIO. Can someone tell me why im getting this pixelated-incomplete sprite?
Here's the code
public BufferedImage getImage(String location)
{
try
{
...
0
votes
1answer
74 views
How to Reciprocally draw on a 3D mesh and 2D UI Image in Unity?
My question is a bit involved so I'm going to split it into parts and attach a picture.
1) In Unity I'd like to be able to draw a line on a 3D worldspace mesh with the mouse.
2) As I'm drawing on ...
-2
votes
1answer
464 views
Cannot instantiate the type Image java?
public Image images[] = new Image[20];
for(i=0; i<10; i++){
images[i]=new Image(getClass().getResource("/images/"+i+".jpg"));
}
I am trying to add images to array but it gives the ...
1
vote
0answers
2k views
Drawing and rotating bitmaps (with transparency) efficiently in Android
I just started making a game for Android and I'm already having some issues regarding performance.
You can imagine the game as being some kind of Tower Defense game with a top-view, and the enemies ...
1
vote
0answers
483 views
How to code a 4x shader/filter which emulates arcade crt display behavior?
I want to write a shader/filer probably in adobe Pixel Bender that will do the best job possible in emulating the fill of an oldskul monochromatic arcade CRT screen. Much like this here:
...
0
votes
0answers
25 views
File and Image paths in a .jar file
im making a bomberman game and im close to getting it done. The game works ok when i run it in netbeans. I can run the game in any PC that has netbeans in it. But when i build the project into a .jar ...
0
votes
0answers
19 views
show different color areas of image on touch
How do I show colors filled in on a colorless version of an image on user touch. (for example color mania or guess the colors app). I know one way is to provide the same image 3 times (for 3 colors) ...
0
votes
0answers
27 views
Starling Image is not moving
I am having some problems with my character not showing/moving on the screen. I do not have a vector of textures for a movieclip only one image. My character is:
package objects
{
import ...
0
votes
0answers
107 views
How to change Google Play thumbnail image in link
Whenever i share my android game which is on Google Play as a link on social media my least favorite pic of the game gets used as a thumbnail. I have since deleted this pic from the developer console. ...
0
votes
0answers
53 views
Load Images in Pygame with XML
As the title suggests, I'm trying to find a way to load images in Pygame with xml, but my attempts have given me naught.
XML script:
<Creatures>
<Creature>
...
0
votes
0answers
42 views
How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working
How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working.
PoolGameSingle poolgame = new PoolGameSingle();
var cue = poolgame.CueStick;
...
0
votes
0answers
141 views
(libgdx) how to make an actor transmits the events it receives to its children?
I use the following class :
public class InGameMenu extends Actor{
/** VARIABLES **/
private boolean debug= true;
private float x,y,width,height, margin;
private static final String TAG = ...
0
votes
0answers
81 views
Load different grayscale images into the same texture
I have a series of images loaded as
data1 = stbi_load_from_file(file1,&width,&height,&comp,1);
data2 = stbi_load_from_file(file2,&width,&height,&comp,1);
data3 = ...
0
votes
0answers
71 views
Drawing pathmap [Solved]
I am developing an editor for my game and I like to implement something like this (screenshot from wc3 editor):
(I need the pathmap)
I have one implementation already, I just store in chunk renderer ...