Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Where do I begin?  (Read 2047 times)
0 Members and 1 Guest are viewing this topic.
Offline annabel

Junior Newbie





« Posted 2012-03-29 10:02:57 »

I've never coded a 4k java game before  Huh I'm about to put on a course of 4 workshops for undergraduate computing students to try to stimulate their programming of java, and want to get them to try to write a 4k game. Can anyone recommend any books or a place to look I can use to create some worksheets to help them (and me) get started? I guess I need some kind of instruction list or description of the process of creating a game and optimising it. Any advice would be very much appreciated!
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2012-03-29 10:15:11 »

4K is a horrible way to learn java. About 80% of the task is in compression of the JAR, and has nothing to do with Java.

Further, it encourages anti-patterns. I'd advise you to stimulate their motivation in other ways. Seriously.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ReBirth
« Reply #2 - Posted 2012-03-29 12:35:29 »

As far as I seen no book teaching for java4k. It'll be great if I'm the one who first do it Smiley You can try make a game for desktop first, out of any compo.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Damocles
« Reply #3 - Posted 2012-03-29 12:42:37 »

I think Java4k is a great way to learn Java + having fun as it keeps the code very simple,
and you have visual and interative results with low overhead.
(Just keep out the freaky bit optimizations for compressing images etc, this is not stuff for beginners,
and fuzzing with the obfuscator and compressors is also not needed for teaching the concept)

This is more motivating than making a huge class-hierarchy to output a Textline

There are some template 4k codes you can have a look at.

Try to build a simple packman game around it, to teach the code step by step

Offline ReBirth
« Reply #4 - Posted 2012-03-29 12:47:49 »

Here some random ideas IDEA!

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #5 - Posted 2012-03-29 13:21:35 »

Learn to code games in pure Java2D first, don't worry about size. Once you've got a grasp and good understanding of the API only then should you attempt a Java 4k game.

The starting place is creating a small game loop and optimise it as much as possible. There are a number of threads in the java4k contest forum subsections (especially in the earlier years of the 4k contests) that discuss small loops and have various code snippets. Source code for various 4k games are also available that can help but usually very messy and hard to understand. The rest is just manual optimisations and using various tool to get the size down.
Offline annabel

Junior Newbie





« Reply #6 - Posted 2012-04-08 06:55:29 »

Thanks everyone, I'll see what I can come up with and let you know how the students do! I'm not sure it's the best way to help them learn (not my idea) but it may motivate them to do some coding in their spare time... Thanks again
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.

TehJavaDev (12 views)
2014-08-28 18:26:30

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (37 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (29 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!