Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 1158 times)
0 Members and 1 Guest are viewing this topic.
Offline annabel

Junior Newbie





« Posted 2012-03-29 12: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
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #1 - Posted 2012-03-29 12: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
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline ReBirth
« Reply #2 - Posted 2012-03-29 14: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!
Try the Free Demo of Revenge of the Titans
Offline Damocles
« Reply #3 - Posted 2012-03-29 14: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 14:47:49 »

Here some random ideas IDEA!

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 50
Projects: 15


★★★★★


« Reply #5 - Posted 2012-03-29 15: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 08: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (78 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (121 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (179 views)
2013-05-12 17:10:36

kutucuk (179 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.071 seconds with 21 queries.