2d

Java 2D game programming - Newbie questions

Hi, We're a team of a programmer and a designer and we want to make a medium-sized java game which will be played as an applet in the web browser. Me (the programmer) has 3 years of general development experience, but I haven't done any game programming before. We're assuming that: We'll decide on a plot, storyline of the game, etc....

Which to choose: 2D or 3D for a java game

What should a small team choose for their first game, when they are low on time but have big ambitions? I'm an experienced programmer, but haven't done any game programming before this. My designer is very talented and artistic, he has worked with 3D about an year ago but hasn't done it since so it could take him some time to learn it ag...

How to design interface for a game in Java

We're a team of a designer and a programmer. Me, the programmer, is hopeless on design of all sorts, so the user interface of the game must be created by the designer. We were thinking of a main screen, where the character walks around, a small minimap in the top, an inventory section, etc. All these things would have to be designed in ...

Full-justification with a Java Graphics.drawString replacement?

Does anyone know of existing code that lets you draw fully justified text in Java2D? For example, if I said, drawString("sample text here", x, y, width), is there an existing library that could figure out how much of that text fits within the width, do some inter-character spacing to make the text look good, and automatically do basic w...

Is it possible to get high quality graphics in 2D?

I'm considering between using 2D and 3D for a game am leaning towards 2D, but most of the 2D games that I see look like they're hand drawn and the graphics don't really look good. Is it possible to create slick-looking graphics in 2D at all? I was thinking of animations such as: Rays coming out of the hands/eyes of a player that attac...

C++ Returning and Inserting a 2D array object

I am trying to return an array Data Member from one smaller 2D Array Object, and trying to insert the array into a larger 2D array object. But when attempting this, I came into two problems. First problem is that I want to return the name of the 2D array, but I do not know how to properly syntax to return 2D Array name. This is what my...

Customizable player avatar in a 2D Game

How can I have that functionality in my game through which the players can change their hairstyle, look, style of clothes, etc., and so whenever they wear a different item of clothing their avatar is updated with it. Should I: Have my designer create all possible combinations of armor, hairstyles, and faces as sprites (this could be a...

C++ Inserting 2D array Object into another

This problem is a continuation of a previous problem: http://stackoverflow.com/questions/402432/c-returning-and-inserting-a-2d-array-object and it is highly recommended to view the link to understand the following. I followed through Adam Rosenfield's answer and it solved the first two problems. However the last problem is not yet to ...

Porting easily from 2D to 3D on a Java game

Due to lack of capital and time we are having to do our game in 2D even though me (the developer) would prefer if it was done in 3D. I would hate for users to join the game, only to think the graphics look bad and leave. Though I suppose we just have to try and do our best. That being said, I would like to develop the game in such a way...

How do I calculate the surface area of a 2d polygon?

Assuming a series of points in 2d space that do not self-intersect, what is an efficient method of determining the surface area of the resulting polygon? As a side note, this is not homework and I am not looking for code. I am looking for a description I can use to implement my own method. I have my ideas about pulling a sequence of t...

constructing the contour of a 2d figure(in particular a triangulation)

Hi, How would I go about constructing the contour of 2d figure which is formed of only triangles and it can have holes and the external contour can be concave/convex and the holes can also be concave/convex. From what I'm reading over here it seems that It's exactly the inverse of the triangulation problem. Do you know any articles tre...

Flex 2D graphics learning path for Java/GWT developer?

I have been developing with Java for several years and last six months I have been building GWT based application. But I have almost no Flash or Action Script experience and I would like to try out some hobby programming with Flex. Especially 2D graphics and image manipulation would be interesting topics. Adobe's tutorials for Java deve...

BufferedImage's getSubimage performance

I'm working on a Java 2D rendering program (running on 1.6.0_11), which uses external images for its UI rendering. These large images contain several UI graphics parts at the same time, which I extract now with the BufferedImage.getSubimage(). Assuming an average desktop system (with our without enabling DirectX/OpenGL acceleration), my ...

Simple object-oriented 2D graphics framework for use in Visual C++?

We're building a method of connecting components visually via a GUI in a Visual C++ application (MFC). Simple things like clicking on boxes and drawing lines between those that are connected, and storing information on them. The problem is that we're making all this by ourselves from the ground up in GDI and it quickly becomes a heck of ...

How to draw a Perspective-Correct Grid in 2D

I have an application that defines a real world rectangle on top of an image/photograph, of course in 2D it may not be a rectangle because you are looking at it from an angle. The problem is, say that the rectangle needs to have grid lines drawn on it, for example if it is 3x5 so I need to draw 2 lines from side 1 to side 3, and 4 lines...

How to approximate a vector contour from an elevation raster?

I have an elevation map stored as a raster. I'd like to fit a smooth "vector" curve to the contours of constant elevation. In my application, the data are actually geographic elevations, but the problem could be generalized to any function of two variables. I can produce another raster with anti-aliased contour lines, and use that as in...

Why does use of pens with dash patterns cause huge (!) performance degredation in WPF custom 2D drawing?

Hope anyone can shed light on this so I can use pens with dash patterns? I am writing a scrollable chart (a Panel inside ScrollViewer that implements IScrollInfo) in WPF using DrawingVisual's DataContext.DrawX. I have several thousand DrawingVisuals that get scrolled by using TranslateTransform on the Panel that hosts them. I implement...

Java 2D and resize

I have some old Java 2D code I want to reuse, but was wondering, is this the best way to get the highest quality images? public static BufferedImage getScaled(BufferedImage imgSrc, Dimension dim) { // This code ensures that all the pixels in the image are loaded. Image scaled = imgSrc.getScaledInstance( dim.width, dim.height, ...

WPF: Finding an element along a path (Not Yet Answered)

I have not marked this question Answered yet. The current accepted answer got accepted automatically because of the Bounty Time-Limit With reference to this programming game I am currently building. As you can see from the above link, I am currently building a game in where user-programmable robots fight autonomously in an arena. ...

A good 2d engine for Java ?

DUPLICATE: http://stackoverflow.com/questions/293079/java-2d-game-frameworks Does anyone knows a good 2D engine for Java with sprites, animations and colisions handling ? ...