Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (778)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
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 3029 times)
0 Members and 1 Guest are viewing this topic.
Offline Gudradain
« Posted 2010-12-21 22: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.

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
Exp: 10 years

Game Engineer

« Reply #1 - Posted 2010-12-22 00: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
Offline Riven

« JGO Overlord »

Medals: 1357
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #2 - Posted 2010-12-22 00: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 00: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 00: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.

Offline CatWeazle

Senior Newbie

« Reply #5 - Posted 2010-12-23 14: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: 8
Projects: 8

« Reply #6 - Posted 2010-12-23 15: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  

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

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

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

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

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

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

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

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

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

nelsongames (2337 views)
2018-04-24 18:14:32
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

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!