Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (575)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Shared Code / any mud code out there on: 2003-09-11 20:35:46
If anybody has a working MUD that they can provide code for, i would be gracious
2  Game Development / Networking & Multiplayer / Re: *Java Mud* on: 2003-09-10 16:17:31
Sorry. It applied to more than one forum...
3  Game Development / Networking & Multiplayer / *Java Mud* on: 2003-09-10 16:11:37
Hey its parrot again. asking questions as always...

im going to start a VERY simple MUD(multi-user-dungeon)

an example of a mud can be found at http://achaea.com

mine will not be that complicated...

i only want to have 3 locations...i only need 'travel'commands like north, south, east, and west.

i need to know how to do client-server with text only...


anyone know how to get me started on this
anything would be nice
4  Game Development / Networking & Multiplayer / *Java Mud* on: 2003-09-10 16:10:46
Hey its parrot again. asking questions as always...

im going to start a VERY simple MUD(multi-user-dungeon)

an example of a mud can be found at http://achaea.com

mine will not be that complicated...

i only want to have 3 locations...i only need 'travel'commands like north, south, east, and west.

i need to know how to do client-server with text only...


anyone know how to get me started on this
anything would be nice
5  Java Game APIs & Engines / Java 2D / Re: Displaying a background image on: 2003-08-29 08:45:30
I understand what you are saying but I was hopoing for some second opinions as this is a very complicated subject to a newbie like me and I want to have as many opinions to work with.

SpaceGhost g'head and delete this topic if you want.

Others, If you can help me out, go to th newless clewbies section and check out the *Really Help Me Please* topic.
6  Discussions / Miscellaneous Topics / Re: Sun's WebSite on: 2003-08-29 08:37:33
Why didn't I think of that?

Grin

Now someone needs to write a browser that will handle a 'favorites' that contains over 1200 webpages. Yes, I am VERY active when i surf the net

Cheesy
7  Discussions / General Discussions / Re: New Java.Net front page news! on: 2003-08-29 00:04:38
I may be new to JAVA but I am an old HTML/CSS/FLASH 'guru'(almost) and I would have to say:

Without extensive overkill...the problem cannot be avoided.

Smiley Got my piece in _ # _
                              --
                            ===
8  Discussions / General Discussions / Wargames(JAVA o'course) on: 2003-08-28 23:59:40
Does anyone know of any open source wargames written in 100% java? These are my fave types of games and want to get some ideas for the one I am currently developing. I've googled it already and nothing good came up...
9  Discussions / Miscellaneous Topics / Sun's WebSite on: 2003-08-28 23:56:45
How often does Sun change the layout for sun.com

I may be the only one who thinks this, but their layout is a little too excessive in navigation. To get to the api(if you dont wanna d/l it) you have to go through 5 or 6 screens. Why cant their be a link at the bottom of the main page or something. I know this is being picky, but it sure would help out 56k'ers.
10  Java Game APIs & Engines / Java 2D / Displaying a background image on: 2003-08-28 23:38:12
I have code for a hexgrid(below)which has been graciously provided by kevglass. I am wondering how to display a background Image ' 'Below ' ' the grid. Code would be wonderful..  Smiley

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
import javax.swing.JFrame;

import java.awt.Graphics;
import java.awt.Color;

import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;

/**
 * A simple test class to draw a hexagon grid. Currently this class
 * draws directly onto the background of the JFrame. This would be nicer
 * if it was pulles out into a seperate JPanel or canvas.
 *
 * This uses pure Java 2D, not accelerated.
 *
 * Note: This could be done with java.awt.Polygon much more simply.
 * Note: This code isn't nice :)
 *
 * @author Kevin Glass
 */

public class Puzzle extends JFrame {
      /** The controlable size of the hexagons */
        private static final int SIZE = 15;
      /** The width of the grid (in hexagons) */
      private static int WIDTH = 10;
      /** The height of the grid (in hexagons) */
      private static int HEIGHT = 40;

      /**
       * Creates the new puzzle class. This will create the window and
       * cause it to be displayed
       */

      public Puzzle() {
            // call the super class to set the title
            super("Steel Platoon Combat -Chris Gillis(poisonousparrot)-kevglass");

            // this add a listener that will exit the program is the window
            // created here is closed
            addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
                        // stop the program
                        System.exit(0);
                  }
            });

            // set the size of the window
            setSize(700,700);
            // make the frame visible to the user
            setVisible(true);
      }

      /**
       * The AWT callback for drawing this frame. This is called by the AWT system
       * when drawing this frame. You must use the graphics context "g" to draw
       * what ever you want to appear in the window. In this case a hexagaon
       * grid.
       *
       * @param g The graphics context on which to draw this windows contents
       */

      public void paint(Graphics g) {
            // Fill in the background white, just in case it isn't already
            g.setColor(Color.white);
            g.fillRect(0,0,1000,1000);

            // move the graphics drawing to 50,50 somewhere that we can see
            // it
            g.translate(50,50);

            // cycle through the grid cells drawing the hexagons
            for (int y=0;y<HEIGHT;y++) {
                  for (int x=0;x<WIDTH;x++) {
                        int offset = 0;

                        // every odd row must be offset a bit
                        // to make the tesalate
                        if (y % 2 != 0) {
                              offset = (int) (SIZE*2);
                        }

                        drawHex(g,(x*(SIZE*4))+offset,y*(SIZE));
                  }
            }
      }


      /**
       * Draws an individual hexgaon on the graphics context supplied,
       * centered on the specified coordinates.
       *
       * @param g The graphics context on which to draw the hexagon
       * @param xp The center x position
       * @param yp The center y position
       */

      private void drawHex(Graphics g,int xp,int yp) {
            // set the colour to black for drawing the hexagons
            g.setColor(Color.black);

            // draw each line of the hexagon
            g.drawLine((int) (xp-(SIZE*1.5)),(int) yp,(int) (xp-(SIZE*0.5)),(int) (yp-(SIZE)));
            g.drawLine((int) (xp-(SIZE*1.5)),(int) yp,(int) (xp-(SIZE*0.5)),(int) (yp+(SIZE)));

            g.drawLine((int) (xp+(SIZE*1.5)),(int) yp,(int) (xp+(SIZE*0.5)),(int) (yp-(SIZE)));
            g.drawLine((int) (xp+(SIZE*1.5)),(int) yp,(int) (xp+(SIZE*0.5)),(int) (yp+(SIZE)));

            g.drawLine((int) (xp-(SIZE*0.5)),(int) yp-(SIZE),(int) (xp+(SIZE*0.5)),(int) yp-(SIZE));
            g.drawLine((int) (xp-(SIZE*0.5)),(int) yp+(SIZE),(int) (xp+(SIZE*0.5)),(int) yp+(SIZE));
      }

      /**
       * Entry point into the program, just creates a new display
       *
       * @param argv The arguments passed into the program
       */

      public static void main(String[] args) {
            new Puzzle();
      }

}


Is it possible? How can I do it?
11  Game Development / Shared Code / Re: Java 3D Games Programming Chapters online on: 2003-08-28 21:08:53
Oh Okay. Just wonderin.
12  Game Development / Shared Code / Re: Java 3D Games Programming Chapters online on: 2003-08-28 18:16:25
Umm...maybe im blind Wink but i cant seem to find anything on Java2d...
13  Java Game APIs & Engines / Java 2D / Re: What is the best way to drag an image?? on: 2003-08-28 18:09:09
I have the same question. Grin
14  Java Game APIs & Engines / Java 2D / Re: Java2D Images and DnD on: 2003-08-27 08:40:51
I already have gage. The shooter example didnt help me. How do I drag and drop the images on the bkgd?
15  Java Game APIs & Engines / Java 2D / Java2D Images and DnD on: 2003-08-26 23:32:53
I am making a simple game. Well, I don't think you could really call it that as of now.

I need to know how to display a background image 600x400, display more images 20x20 on top of the background, and also how to drag and drop the images on top of the background.

Please give me down to Earth instructions. I can accomplish things as long as they are laid out in front of me.

I appreciate any responses. Yes, I realize I am a total newb.

-The Poisonous Parrot
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (33 views)
2014-10-17 03:59:02

Norakomi (25 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (26 views)
2014-10-15 16:18:58

TehJavaDev (50 views)
2014-10-14 00:39:48

TehJavaDev (50 views)
2014-10-14 00:35:47

TehJavaDev (40 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (74 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!