Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  HLGCE  (Read 815 times)
0 Members and 1 Guest are viewing this topic.
Offline lcass
« Posted 2014-01-22 22:46:26 »

HLGCE- High level graphical coding environment.

Hello. My alias is Lcass and I have been messing around with LWJGL for a little while mainly due to the GPU optimization. I have begun development on a graphical coding framework for use with java. HLGCE will be built around usability and simplicity, the packages will offer as much graphical support as possible to offer quick , efficient and neat code all whilst having massive customization options. This project has only just started as of such fairly little has been developed. This post will be updated with all additions to the code along with relevant examples and explanations of the various methods. The software is not for release however a small example below will show how compact the environment can be.
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  
import com.lcass.utilitys.Util;

public class demorunner extends runner{//demonstration of how to use the runner class.
  private core core;
   private Util util;
   private static demorunner r;
   public void init(){
      core = new core(800,600,"Demo game");
      util = new Util();

   }
   @Override
   public void tick(){
   
   }
   @Override
   public void render(){
      core.updatedisplay(60);
   }
   @Override
   public void close(){
      util.state("Closing", 1);
      core.end();
   }
   public static void main(String[] args){
      r = new demorunner();
      r.init();
      r.start(60);
   }
}

This code demonstrates functions that create a main game window, handle closing and a game loop.
Offline HeroesGraveDev

JGO Kernel


Medals: 238
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #1 - Posted 2014-01-22 22:57:21 »

Class names should start with capitals. Pointing

Offline lcass
« Reply #2 - Posted 2014-01-22 23:15:26 »

demo code I wrote quickly . Nice spotting.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #3 - Posted 2014-01-22 23:33:14 »

But but... MERCury uses a Runner class also! Sad Copyright infringement Wink

In all seriousness, I think you have too many things going on at once. MERCury uses one class, the Runner, that starts and runs the entire engine. It makes setting up a new project a breeze, and information all comes from a central class, making it easy to use.

Offline lcass
« Reply #4 - Posted 2014-01-24 19:10:49 »

I only use the runner as a loop class, which makes sense due to its name. I use core as the core class for window modifications and setup.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #5 - Posted 2014-01-24 19:27:15 »

Right, but wouldn't it be easier to have one central class?

I think a lot of "home brew" engines or libraries suffer from lack of code organization. When you give your library to a developer who has never used it, you want them to be able to understand your library as quick as possible. Using three different classes to perform small tasks only causes confusion about which to use. A single class will prevent that (obviously) because there is only one class that can control the engine.

I know, its just the beginning of your engine so it probably doesn't matter that much, but engine developers really have to think about how code goes together, and fragmentation of functions so the end user can have the best experience with your engine. I also have a small library I use sometimes, and I made sure to centralize code, and it works great. MERCury is a prime example of it also.

I know I'm just some weirdo ranting on, but code structure is something to think about when designing engines, and its important.

Edit:
Oh and no offense, this line:
1  
util.state("Closing", 1);

Made me cringe a little. Are you doing state changes based on strings? That's just asking for confusion. At least have an enumeration or constants to switch off of.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #6 - Posted 2014-01-24 21:56:41 »

Opiop, stop giving advice to our compettitors!
[/joke]

Is 60 the Fps? If so, why enter more than once?

Offline lcass
« Reply #7 - Posted 2014-01-25 01:37:00 »

Just an example, one is the tick loop the other is the Display.sync. Only early stages I want to get main features in then sort out those annoying bits.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Riven (19 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!