Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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 4248 times)
0 Members and 1 Guest are viewing this topic.
Offline lcass
« Posted 2014-01-22 21: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.
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();

   public void tick(){
   public void render(){
   public void close(){
      util.state("Closing", 1);
   public static void main(String[] args){
      r = new demorunner();

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

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

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

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

Class names should start with capitals. Pointing

Offline lcass
« Reply #2 - Posted 2014-01-22 22: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 Opiop
« Reply #3 - Posted 2014-01-22 22: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 18: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 Opiop
« Reply #5 - Posted 2014-01-24 18: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.

Oh and no offense, this line:
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
« Reply #6 - Posted 2014-01-24 20:56:41 »

Opiop, stop giving advice to our compettitors!

Is 60 the Fps? If so, why enter more than once?
Offline lcass
« Reply #7 - Posted 2014-01-25 00: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  

hadezbladez (2610 views)
2018-11-16 13:46:03

hadezbladez (935 views)
2018-11-16 13:41:33

hadezbladez (2563 views)
2018-11-16 13:35:35

hadezbladez (503 views)
2018-11-16 13:32:03

EgonOlsen (3683 views)
2018-06-10 19:43:48

EgonOlsen (4059 views)
2018-06-10 19:43:44

EgonOlsen (2444 views)
2018-06-10 19:43:20

DesertCoockie (3250 views)
2018-05-13 18:23:11

nelsongames (3322 views)
2018-04-24 18:15:36

nelsongames (4292 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!