Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 3463 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!
Online Riven

« JGO Overlord »

Medals: 1340
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: 120
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  

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

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

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

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

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

nelsongames (125 views)
2018-04-24 18:14:32

ivj94 (866 views)
2018-03-24 14:47:39

ivj94 (127 views)
2018-03-24 14:46:31

ivj94 (770 views)
2018-03-24 14:43:53

Solater (142 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!