Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
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 / Networking & Multiplayer / My Online RPG Game - Update 2 on: 2013-12-06 04:13:23
Update #2 is finally out! I have added a lot in the past 4 hours or so in my free time and I am very proud and excited of what I've done! Its definitely getting closer to being a full game.

Things Ive Added:
  • Chat
  • Animations
  • Resized the tiles
  • Added in NPC's
  • Added in dialogs for quests and such
  • Reduced lag of the player when moving
  • Redid some code to make it run smoother

Hope you guys like it and please let me know what you all think!

Update #2:
<a href="http://www.youtube.com/v/2sB4C1sXV_0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/2sB4C1sXV_0?version=3&amp;hl=en_US&amp;start=</a>

-Baseball435
2  Game Development / Networking & Multiplayer / My Online RPG Game on: 2013-12-02 16:50:47
Hey everyone! So about 2 days ago I decided I would start programming an online game because of a video I saw of a very well-done online RPG programmed in Java. It gave me some determination and confidence and led me to what this video is going to show you.

I use the networking library called Kryonet to assist with the networking and keep the code for the networking as clean-looking as possible. I also use the game library LibGDX to help assist with graphics and also the ability to support multiple platforms.

I hope you guys like what I have done so far, it was all coded from scratch by me and I would love to hear you feedback, comments, and suggestions! Thanks a lot!

Update 1:
<a href="http://www.youtube.com/v/oSeMBjt7BLM?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/oSeMBjt7BLM?version=3&amp;hl=en_US&amp;start=</a>

-Baseball435
3  Java Game APIs & Engines / Android / Libgdx Resizing Problem on: 2013-01-17 03:24:15
I am trying to fill the resize function that comes with Libgdx to fit all of the android screens.

I have been searching for a solution for about an hour and a half but have none. The best solution so far is this tutorial: http://www.java-gaming.org/index.php?topic=25685.0 but when I run it on my Galaxy S3 the buttons are really tiny and just overall the whole game is tiny where on the desktop version it is big and the way I want it to be. My resize code right now is:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
        @Override
   public void resize(int width, int height) {
        float aspectRatio = (float)width/(float)height;
        float scale = 2f;
        Vector2 crop = new Vector2(0f, 0f);
        if(aspectRatio > ASPECT_RATIO)
        {
            scale = (float)height/(float)VIRTUAL_HEIGHT;
            crop.x = (width - VIRTUAL_WIDTH*scale)/2f;
        }
        else if(aspectRatio < ASPECT_RATIO)
        {
            scale = (float)width/(float)VIRTUAL_WIDTH;
            crop.y = (height - VIRTUAL_HEIGHT*scale)/2f;
        }
        else
        {
            scale = (float)width/(float)VIRTUAL_WIDTH;
        }

        float w = (float)VIRTUAL_WIDTH*scale;
        float h = (float)VIRTUAL_HEIGHT*scale;
        viewport = new Rectangle(crop.x, crop.y, w, h);
    }

My render code is:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
        @Override
   public void render() {
      // update camera
       camera.update();

        // set viewport
       Gdx.gl.glViewport((int) viewport.x, (int) viewport.y,
                          (int) viewport.width, (int) viewport.height);

        // clear previous frame
       Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
       
       ScreenManager.updateScreen();
       
       sb.begin();
       ScreenManager.renderScreen(sb);
       sb.end();
   }

And my variables are:
1  
2  
3  
4  
5  
6  
7  
8  
9  
        private static final int VIRTUAL_WIDTH = 600;
   private static final int VIRTUAL_HEIGHT = 800;
   private static final float ASPECT_RATIO = (float)VIRTUAL_WIDTH/(float)VIRTUAL_HEIGHT;
   
   public static BitmapFont FONT;
   
   private OrthographicCamera camera;
   private Rectangle viewport;
   private SpriteBatch sb;

Like I said, when I run the desktop version it works fine but when I run it on my Galaxy S3, the game is zoomed out a lot, and it crops out the tops and sides of the game which is not what I want at all. If someone could help me that would be great. Thanks!
4  Java Game APIs & Engines / Java 2D / Re: Java 2D - My Rpg Game So Far on: 2012-03-26 21:22:58
You designed the map maker?

Yes I did, I made all of this from scratch with no 3rd party libraries.
5  Java Game APIs & Engines / Java 2D / Re: Java 2D - My Rpg Game So Far on: 2012-03-25 21:27:30
Thats cause it is Tongue
6  Java Game APIs & Engines / Java 2D / Java 2D - My Rpg Game So Far on: 2012-03-25 18:09:33
Hey everyone, this is my first post on this forum and I thought I would start it off by showcasing something I've been working on. Here is a game I've been working on for 1-2 weeks now using Java 2D and here is the two videos that I posted showing what I've made so far! Hope you guys like it so far!

Update Video 1 - Game And Map Editor:
http://www.youtube.com/watch?v=cCXcUX59Evg

Update Video 2 - Game And Map Editor Again :
http://www.youtube.com/watch?v=IwuNoIh6ShE

Update Video 3 - Shops:
http://www.youtube.com/watch?v=41FucmA6HCw

Update Video 4 - Enemies:
http://www.youtube.com/watch?v=5ayfpO0zzZw

~Baseball435
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.

xsi3rr4x (22 views)
2014-04-15 18:08:23

BurntPizza (17 views)
2014-04-15 03:46:01

UprightPath (31 views)
2014-04-14 17:39:50

UprightPath (15 views)
2014-04-14 17:35:47

Porlus (31 views)
2014-04-14 15:48:38

tom_mai78101 (57 views)
2014-04-10 04:04:31

BurntPizza (115 views)
2014-04-08 23:06:04

tom_mai78101 (214 views)
2014-04-05 13:34:39

trollwarrior1 (182 views)
2014-04-04 12:06:45

CJLetsGame (189 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!