Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  
  2D Gaming Chapters now Online  (Read 2868 times)
0 Members and 1 Guest are viewing this topic.
Offline Andrew Davison

Junior Member


Medals: 2



« Posted 2004-02-03 05:55:24 »

Dear All,

I've started putting the 2D gaming chapters of my
book "Java Programming Techniques for 2D, 2.5D, 3D,
and Networked Games" online at
http://fivedots.coe.psu.ac.th/~ad/jg/

Comments, suggestions, are appreciated.

Thanks,
 Andrew
 dandrew@ratree.psu.ac.th

Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Offline bibo

Junior Newbie




The early bird catches the worm


« Reply #1 - Posted 2004-02-03 11:25:43 »

whoa THX  Wink



cheers,

bibo
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #2 - Posted 2004-02-03 11:46:34 »

Hey thanx for sharing  Smiley
I went through your first chapter and would like to say that you have an interesting workaround concerning the poor resolution of the sleep() method. However, I am not sure wether it is a good idea to continue developing games with a sleep method in their game loops. The issue of garbage collection does come up, but some of the more experienced programmers here have found ways of ironing out the kinks in that, and I am guessing that future jdk's will have solved some of the problems related to the GC. Then again I really dont have enough experience to be sure about this, so any responses are more than welcome.  

Kommi
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline NickL

Junior Newbie




Java games rock!


« Reply #3 - Posted 2004-02-11 02:04:25 »


Andrew, I am working through the 2D stuff in your book, what a great resource!

I have noticed an issue with FSEM WormChase. About half the time on my machine when the WormChase starts up it just paints the screen gray and that's it. Hitting ESC exits the program. I'm running 1.4.2 on a not-too-ancient Dell running Windows XP with Direct X 9.

I experimented a little by changing the background color of the JFrame to Color.BLUE and indeed, it now gives me a screen full of blue about half the time.  I'm wondering if the JFrame is occasionally winniing a race to grab the drawing surface?

- Nick
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #4 - Posted 2004-02-11 10:59:23 »

Tha could be a known full screen exclusive bug with 1.4.2 Also are you checking that all you images are loaded completely before the first rendering is done?

Kommi
Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #5 - Posted 2004-02-11 11:57:03 »

V.Useful introduction to J2D.

Are you going to cover ManagedImages, HW acceleration, and the other black arts of J2D in the coming chapters? (I hope so, It would solve so many of the reoccuring questions that come up on this, and other forums Tongue)

1 thing the Fullscreen Exclusive Mode bit doesn't touch on, is the reason the fps maxed out at 80-85, when 100 was requested - Vsync.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline NickL

Junior Newbie




Java games rock!


« Reply #6 - Posted 2004-02-11 14:57:37 »

Quote
Tha could be a known full screen exclusive bug with 1.4.2 Also are you checking that all you images are loaded completely before the first rendering is done?


The sample app is not loading any images. It draws text and calls AWT drawing functions.

Which known bug are you reffering to? Is there a work around? I couldn't find it in the bug database but maybe I missed it. Thanks for your help!

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #7 - Posted 2004-02-11 15:32:42 »

Quote


The sample app is not loading any images. It draws text and calls AWT drawing functions.

Which known bug are you reffering to? Is there a work around? I couldn't find it in the bug database but maybe I missed it. Thanks for your help!



I think Kommi is refering to the fullscreen deadlock bug that surfaces occasionally during bufferStrategy creation.

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1046462693;start=2#2

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline NickL

Junior Newbie




Java games rock!


« Reply #8 - Posted 2004-02-11 18:55:29 »


looks like that was it, works fine now.  Grin
Offline Andrew Davison

Junior Member


Medals: 2



« Reply #9 - Posted 2004-02-11 23:11:03 »

Dear All,

Thanks for the info on the buffer strategy creation
bug; I'll try to add the fix into the code and chapter
today or tomorrow. Did the problem occur in
1.5, which is meant to have fixed it?

The next chapter is about image manipulation, with
a discussion about managed images, and a
few special effects like fading, flipping, etc.

One dilemma I have, is how much to stick with 1.4.2. Smiley

For example, I really need to revisit chapters 1-3
and use the nanosecond counter rather than the
Java 3D timer. In chapter 4, should I mention the
workaround when using ImageIO to create a
managed image?


- Andrew


Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #10 - Posted 2004-03-09 18:58:40 »

Hey Andrew how is the book going by the way?

Kommi
Offline elwiz

Senior Newbie




Bom-Shackalack, Jatack!


« Reply #11 - Posted 2004-03-10 03:16:33 »

Not good I suppose, broken link  Cry
Offline zingbat

Senior Member




Java games rock!


« Reply #12 - Posted 2004-03-13 10:10:33 »

Quote
Dear All,

I've started putting the 2D gaming chapters of my
book "Java Programming Techniques for 2D, 2.5D, 3D,
and Networked Games" online at
http://fivedots.coe.psu.ac.th/~ad/jg/

Comments, suggestions, are appreciated.

Thanks,
 Andrew
 dandrew@ratree.psu.ac.th


Thanks a lot Andrew. You are being a big help to the games community. I have your 3d chapters already and the 2d stuff will be very useful.


Offline Andrew Davison

Junior Member


Medals: 2



« Reply #13 - Posted 2004-03-19 02:12:14 »

Dear All,

The book's Web site was offline last week, due to
cable repair in Japan. It's been back since then.
http://fivedots.coe.psu.ac.th/~ad/jg/

I've just added a long chapter (70 pages) called
"Images, Visual Effects, and Animations",
about Java 2D imaging.

Please have a look if you're interested.
Comments appreciated, of course.

Thanks,
 Andrew

Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University, Hat Yai
Songkhla 90112, Thailand
Offline Serethos

Junior Member




Java games rock!


« Reply #14 - Posted 2004-03-19 06:38:45 »

Congratulations for finding a publisher. I really liked what i have seen so far from your book. I have read quite a few books about java game development but they all lack on going into depth of the graphics features. so you have a good chance to fill a gap.

thx, for distributing them for free.
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.

Pippogeek (35 views)
2014-09-24 16:13:29

Pippogeek (28 views)
2014-09-24 16:12:22

Pippogeek (17 views)
2014-09-24 16:12:06

Grunnt (40 views)
2014-09-23 14:38:19

radar3301 (23 views)
2014-09-21 23:33:17

BurntPizza (59 views)
2014-09-21 02:42:18

BurntPizza (29 views)
2014-09-21 01:30:30

moogie (34 views)
2014-09-21 00:26:15

UprightPath (47 views)
2014-09-20 20:14:06

BurntPizza (51 views)
2014-09-19 03:14:18
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!