Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  Suggestion - Applet template  (Read 1531 times)
0 Members and 1 Guest are viewing this topic.
Offline Gudradain
« Posted 2010-12-21 23:17:18 »

As there is already a discussion about changing the rules a little bit to add an highscore feature I guess it could be a good time to suggest it.

Making the applet core code is always a subject of discussion every year. So how about a simple template like this that would do all the dirty job for you.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
import java.awt.Graphics2D;

public class MyApplet extends J4kApplet{
   
   public void init(){
     
   }
   
   public void update(int deltaTime){
     
   }
   
   public void render(Graphics2D g){
     
   }

}


The programmer just have to fill these method and doesn't have to worry about the gameloop, making input listener, etc. The J4kApplet would be a class host on the server and everyone could use it (just adding a ressource tag in the html page). The J4kApplet class wouldn't count in the 4k limit.

Ok that was the idea. It kinda breaks the 4k rule but it give more freedom to do your game (with the extra bits).
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11


Game Engineer


« Reply #1 - Posted 2010-12-22 01:15:33 »

I'd rather just copy/paste a code template and fill it in. That way I have something self contained. But it is a pretty good idea.

See my work:
OTC Software
Online Riven
« League of Dukes »

JGO Overlord


Medals: 743
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2010-12-22 01:26:44 »

I think the highscore support was quite undermining the spirit of Java4K already.

I'd vote 'no', because if we keep adding support for convenient things like this, we're pretty much creating a new platform. Getting the core right in an applet is part of the contest: it takes valuable space, and should not be taken out of the 'byte pool' we have, or everybody would be forced to use this new platform, if only to save space.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zeroone
« Reply #3 - Posted 2010-12-22 01:38:34 »

I agree with Riven.  Such a base would make everyone's coding efforts easier, but it goes against the spirit of the contest.  Though, if we do end up with such a platform, throw in some Slick or LWJGL.
Offline woogley
« Reply #4 - Posted 2010-12-22 01:42:25 »

I'd vote 'no', because if we keep adding support for convenient things like this, we're pretty much creating a new platform.

+1
Offline CatWeazle

Senior Newbie





« Reply #5 - Posted 2010-12-23 15:27:11 »

I agree with Riven & co.. plus its not always possible to separate update & rendering logic without incurring extra overheads - such as requiring class local variables.  just my 2 cents.

[edit: "hi" to everyone by the way! have been lurking on here for a wee while Smiley ]
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #6 - Posted 2010-12-23 16:43:05 »

A 4K game will work still be a game without the highscore, therefor I don't mid that little bit of cheat. However removing the core part of the game will kill the game. Having a template for beginners to use is however a good idea. Feel free to improveand add stuff on
[size=15pt]this wiki[/size]
and maybe motivate it here.

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.

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

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

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

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

ctomni231 (47 views)
2014-07-18 06:55:21

Zero Volt (43 views)
2014-07-17 23:47:54

danieldean (34 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (52 views)
2014-07-14 18:02:53
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!