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 start? pinball!  (Read 1230 times)
0 Members and 1 Guest are viewing this topic.
Offline Molemar

Junior Newbie




Java games rock!


« Posted 2004-02-01 22:47:56 »

hi guys.
I've been given a simplistic pinball game to design and code but unfortunately even after 2 years of programming in java I have no idea about graphics.
I read through the java tutorials on the sun website but they weren't really much help.
I was just wondering where to start?
having looked at some basic pong games poeple have done has made some things a bit clearer but I'm still lacking the underlying ideas.
i think about the whole program and i get worried bout creating shapes such as circles and triangles then the collision detection in them.
flippers- i mean come on!!!
far too much to to just jump in feet first and this is something i'd really like to tackle by myself (however no doubt further assistance will be required!)

so any basic tutorials/websites you could suggest would be greatly appreciated.

Thanks in advance guys.

Cheers

A very stumped programmer
Offline tux

Junior Newbie




free at last!


« Reply #1 - Posted 2004-02-02 00:17:07 »

Maybe this book can help you out. It includes a 2d/3d game library java2d etc. Just got my copy, looks good  Smiley
It uses software rendering, but also mentions lwjgl , gl4java.

"Developing Games in Java - David Brackeen"
Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2004-02-02 02:41:01 »

Okay, a conceptual basic or two.

All computer games are in effect "dynamic movies".  You sit  ina  tight loops building 1 frame, put it to the screen, move everythign based on how long its been scince you last moved everything, and do it again.

(This is also called a "discrete time based simulation" in tecno-geek speak.)

The first thing i would do if I were you is get a game loop working that can move your ball image horizontally from one side to the other.  Once you have that you have the structure of the game and the rest are inout and position-caclulation details.  (You'll need to do collision too, again done a frame at a time based on the current positions of things.)

JK


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
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 #3 - Posted 2004-02-02 11:29:20 »

I'm with Jeff on this one. The first thing you need to get down is a your game loop (also called a render loop or timming loop). You can look in this section or the 2d section for lots of topics (a lot due to my own frustrations) concerning the topic. Markus Presson has a WIKI tutorial here  http://wiki.java.net/bin/view/Games/EfficientDiscreteStepTimingLoop Both Immudium and I have made succesful implementations of his gameloop. You can find a conversation about it here  http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1072821056 Immudium's jar file has all code that you can look at for more help (if he doesn't mind me saying so). I just got my loop to work and am currently writting a tutorial on  the matter. Your best bet is tyo first SEARCH the forums here, then try to implement the basic concepts, and then ask questions if you get stuck.

Kommi
Offline Molemar

Junior Newbie




Java games rock!


« Reply #4 - Posted 2004-02-03 06:58:21 »

thanks a lot guys.
i'll get started and see what I can come up with.
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 (17 views)
2014-08-28 18:26:30

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

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

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

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

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

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

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

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

BurntPizza (36 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!