Online game applet
What classes are used for drawing graphics to the screen? I want to make an online game like Pong or Street fighter as an applet, but am not sure what classes to use for that.
Read the API. Take a guess. To draw graphics, use the Graphics class.
You will most likely need to override the 'paint' method in a Component such as JLabel or JPanel. The paint method gets a Graphics object as a parameter. Then you can call methods in the Graphics class on that object.
Similar Messages
-
How to create a turn-based multiplayer online game?
Hello. This is my first time here. I am familiar with programming games and have been doing so for 20 years. However, I'm completely new to using Java to do so. In the past, I wrote games in BASIC, Blitz, and C++ using DirectX. Being familiar with C/C++, the Java language syntax is not a hurdle for me.
I've never created a networking game, but I feel that if I tried to create one using one of the programming languages I already know that I would succeed at doing so. (I'm just trying to show that I feel confident in programming with the languages that i know)
The dilemma here is that someone else would like me to program a turn'based multiplayer game for them in Java.
I've downloaded the NetBeans 4.1 IDE and uncovered a lot of terms and such that I'm unfamiliar with.
What I'm looking for from you guys is an overview of what I need to do to achieve my ultimate goal of creating this online game.
As a reference, I need to create a game very similar to this one:
http://www.tacticsarena.com/play/
Click on the "Launch Game: Tactics Arena Online" link to see the game.
Create a new account to play (accounts are free).
Upon starting the NetBeans IDE, I found that I could create several different types of projects. I guess first of all, I need to know what kind of project is best suited to make this type of game.
To name a few, I have to select from:
Java Application
Java Class Library (is this an Applet?)
Web Application
Enterprise Application
EJB Module
Then I guess I would like to know if any of the above projects would be used to make the clients interface or the server side software or both? Or do I need to use some other kind of software/programming language/etc. to create the server side? (As a side note, typically what kind of Operating system would the server be using? I ask because I may set one up myself for testing purposes.)
Somewhere I came upon the term 'Servlet'. Is this some kind of Java server application? Do I need/want to be using this?
As you can see, I'm very lost at where to begin. I'm not at all unfamiliar with programming. I'm just unfamiliar with Java.
WolRonHi WolRon
I am in the process of learning Java myself and from what i have read, you have a long road ahead of you!
To start this Project the following will be essential for you to know:
Applets - if this is going to an online game
Multiple Threads - for the Server side
Swing - for the GUI on both sides
AWT - help work with the user input (mouseListeners, buttonListeners, etc)
And knowledge of a database.
those are the most obvious things that you will need to understand.
I strongly suggest buying a Java book from which you need to start at the beginning. Although the concept of OOP is the same through most languages Java has terms - as do all languages- that will be different from the other languages. Starting at the beginning will be beneficial to your Java coding future.
Good luck. -
[urgent]online game development
i would like to know if i hope to develop an online game, like what we play in yahoo reversi, once the user put the black peg , the oponent can see he / she put the black peg , how this would be done...any recommend site to learn the online game programming? is done by using applet , jsp or any other language.....??thanks
See my previous post:
http://forum.java.sun.com/thread.jsp?forum=406&thread=492839
The short answer is: JN_'s answer.
I was able to get this to work for myself. The applets communicate to each other through the server. I left almost all my game logic in the client, so the server basically just receives a message and forwards it to all the connected clients.
-Pakaderm -
URGENT: Multiplayer Online Game
What would be the best way to make a multiplayer online game? I know how to create a game using an applet. Do I need to use a servlet? I know nothing about comunicating across the internet using java. Thanks.
no you dont need a servlet, nor an applet.. just write it. you choose servet vs. applet vs app when you ask 'how do i want them to get it?" then that helps you decide limitations of the game..
do you mind them dl'ing a client manually?
do you want it put into a web page for auto download?
do you want it to be a web page? (sorta dull dont ya think? click right to go right, click left arrow to go left.. reminds me of wumpus hunting!)
so, then you need to figure out how to communicate over a wire... advanced java networks is a good book for that.. gives a good smattering of rmi, corba, sockets, etc etc..
so once you realize sockets is the answer then go look at java.io, java.net and what not.. follow the tutorials.. ask some questions along the way and walla.. you have a simpel client/server.. after that, start writing your game.
enjoy. -
Best way to build an online game with chat functionality
i need to build an online game like the ones on yahoo with chat functionality.
do i need to invent my own protocol for communicating between the client applet and the server application or i can use a higher level protocol like rmi or jaxm.
as far as i know the problems with rmi would be
1. there would be no way for server application to send messages to clients without signing my code.
2. rmi would not run on browsers with older versions of jre. though clients can install latest versions, but i don't want that.
would there be similar issues with jaxm or jms.
do i need to invent my own protocol. what benefits would udp bring than tcp/ip.
is there some higher level protocol which would take care of network problems on the internet. what about performance. what would happen if the connection between the client and server breaks down. how do i know of that.Implement a multi-threaded multi-client/multi-server strcuture.
Each client-server channel is used for a specific operation
such as one for the gamming data, and another for the chat relay.
These channels will be controled by the application (game) and so
can update the chat text and game data at the same time without
the game having to read a file that is being writen by another
IO stream comming from the server.
I have not done this and I dont plan to, but in deisgn it should work. -
What I need to use to develop amultiplayer online game ..say a TicTacToe Game, 2 player can start one instance, another two play can start anathor game and so on..
Is it possible with J2SE, or I need to use J2EE?jwenting wrote:
Not even a servlet container. Could be a standalone tcp server running next to a regular webserver like Apache.
The webserver serves the applet and static html it's displayed in, applet connects to the standalone server using a custom protocol (it does need to run on the same host to be accessible of course).Yep, even that. Although I'd posit that using a servlet container would probably be simpler, and alleviate some of the more bothersome low-level networking hassle. But yep, it's worth considering. -
i want to create a ping-pong online game as applet and i have a few problems:
the game contains 4 classes:
user pedal
computer pedal
ball
boardgame
do i have to use 4 applet(1 applet to every class)?
or to use one applet that contains 4 panels?
did every class contain the paint metode?The way i will do it is: 1 Applet, 4 classes that extends Component each have a paint method.
Noah -
i wish to develop an online game , which is mastermind online game, one is gussing the peg another user is evaluation the pegs that correct or incorrect, i heard some one said tat should use the RMI, i am not sure, can i get some idea or recommendation? after i finish the game, where should i post to allow friends around the world can play my game simultaneously....?
actually, my lecturer want me to do this assignment by using java applet (similar to yahoo 's game)together with RMI with this way:
1. once the user log in, they are allowed to create table, then wait for the other player to join the game or invite the player from the list. (similar to yahoo reversi)the user can play as chooser or guesser, chooser is the person who decide what peg to be guess. guesser will guess the peg.(in this situation, there is a button should be provided to decide u want to sit as guesser or chooser)
2. if u are a chooser, u are able to see the answer at the bottom in order to give the black peg or white peg to the guesser. once the guesser put the color peg, chooser will evaluate it. my problem now is how the guesser will see the evaluated result once the chooser evaluate it? (how the guesser can get the updated information) and at the same time, the guesser will put the color peg, how the chooser get the updated information at the same time, both parties will see the movement?
3. how do my program serve more than one table ( each table contains two player)
thanks. -
Open ports on new airport extreme to play online games
hey, i have the new airport extreme and i wanna play online games.
how do i open ports with the utily that came on disk.
i have no clue how to configure it.
i tried in bridge mode, but than the airport starts flashing amber and other users in house wanna surf on the net aswel.
kind regardsAirport Utility -> Manual setup (Cmd+L)
Internet -> NAT
Enable a default host
Then in Internet -> DHCP
permanently assign the default host IP to the machine you're going to play the games on.
This is what other routers call the "DMZ" address. Be sure to run a firewall on that machine! -
What prog language/tools for a browser based online game ?
I am going to start a project for an multiplayer online game community soon, and need some advice.
The community will consist of the game itself, forum, wiki and irc-chat and use f/oss software to keep the running costs as low as possible.
The game is the heart of the community and will be a turn-based wargame with roleplaying and strategy options, mainly text based with some graphics and animations and played through a browser. (These kind of games are often referred to as Multiplayer Online RolePlaying game MORPG )
The SQL player database will have up to approx 100k player records, each of which will have many fields.
The game code will run 24/7 on a linux server (distro not chosen yet) and needs to fulfill these requirements :
easily maintanable by multiple programmers
programmers should be able to develop/test parts of the code on their own pc's using linux or windows.
good, fast access to the player DB
combat calculations will be mathemically complicated, and need to be fast
User interaction will be through a web-page
A way to keep users from accessing the game code directly to avoid computer players. (it's possible this has more to do with the code structure than with the language)
Most games of this type seem to use a php/ C combination, but that appears to have several drawbacks.
Specifically code maintainability and distinguishing between humans and bots/computer players are a problem for these games.
What environment do you think would fulfill these requirements ?
P.S. if this is to theoretical, check out these links to see some similar games :
Lords of Legend
Ogamei think java could be a good choice for the programminglanguage. Most computer have the JVM installed already...
-
Dear all readers of this writing,
I truly want to get help or advice of solving my blue screen problem called "bad_pool_caller".
Even, I nicknamed myself as "bad_pool_caller of death" because this caused several painful experiences while playing online games. Furthermore I am just a beginner about computers, so even this small problem makes me crazy.
Let me introduce my problem and what I have done to solve this problem.
-Symptoms
this bad_pool_caller problem does not occur in offline. I found that none of problem occurs even while playing single player games over 7 hours like Far cry3 or bioshock infinite.
Only while accessing Internet, this problem occurs.
Especially, while playing any youtube videos
even also other sort of video players, almost within 20 seconds, my computer shut down by bad_pool_caller error.
and video's buffering is extremely slow.
This is not just a Internet access problem I think, because I have another my own laptop and when I play youtube video of my laptop, it plays well.
Also, when I enter a posting linked with bgm files, and try to install and play online games like starcraft 2, same things happens.
(Although the frequency is lower than that of bad poor caller, Driver IRQL Less or equal error
pops up while playing online games.
During surfing Internet without these, bad pool caller error does not happen, so I think these three things(youtube video, listening bgm, online games) have much to do with my error.
-What I have done
I tried to solve by myself after I found this link.
http://social.technet.microsoft.com/Forums/windows/en-US/e5e06b4e-6ed0-4eab-80ab-56c334f924be/windows-8-blue-screen-of-death-bsod-badpoolcaller?forum=w8itproperf
I was very happy when I found this because the situation of the writer in upper link is almost same with that of mine.
As the answer written, I format my C drive(Toshiba) and install windows 8.1 full version completely and upgraded graphic drive(GTX 760) and upgraded latetest windows 8.1 beta version upgrade of Wireless lan card drive(Netgear N900).
However, you know, still this error occurs...
-Guess the cause
I know that most bad pool caller problem arise from Hard drive and memory corruption.
But, my desktop PC is bought only a month ago and I bought quite a good SSD and HDD and Ram for playing high quality games.
So I don't think the main cause is my SSD or HDD. My graphic card is also a new one.
I suspect the cause is my network adapter, wireless lan card (USB) because this connects Internet access between my desktop PC and Louter.
I am living in University dorm and using louter using with other students together.
For getting Internet access of my desktop PC, I've bought wireless lan card (Netgear N 900) and I think this lan card causes problem such as windows 8.1 compatible
But I fully upgraded and updated lan card driver and reinstalled several times and this N900 is not bad lan card so I don't determine this is the real cause.
Here is link of my minidump record files.
https://onedrive.live.com/#cid=CF99CE81DCA9027A&id=CF99CE81DCA9027A%21943
(most error is about bad_pool_caller, but one is about Driver_IRQL_Less or Equal)
and sorry for my poor English writing skills because I am international student arrived US only 3 months. If you have some things that cannot understand of my writing, just ask me again.
Thanks for your help in advance.2: kd> lmvm NETIO
start end module name
fffff800`00800000 fffff800`00879000 NETIO (private pdb symbols)
Loaded symbol image file: NETIO.SYS
Mapped memory image file: Image path: \SystemRoot\system32\drivers\NETIO.SYS
Image name: NETIO.SYS
Timestamp: Thu Aug 22 19:37:08 2013 (5215F7E4)
CheckSum: 0007A220
ImageSize: 00079000
File version: 6.3.9600.16384
Product version: 6.3.9600.16384
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 3.6 Driver
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft® Windows® Operating System
InternalName: netio.sys
OriginalFilename: netio.sys
ProductVersion: 6.3.9600.16384
FileVersion: 6.3.9600.16384 (winblue_rtm.130821-1623)
FileDescription: Network I/O Subsystem
LegalCopyright: © Microsoft Corporation. All rights reserved.
Hi,
As you said,you have updated your NIC driver.
Did this issue happend when you used the wired LAN?
I think this is related to wireless driver.
I suggest that you try other wirless card to test this issue.
Regards,
Kelvin Xu
TechNet Community Support -
None of my online games work on my laptop. I updated Adobe Flash player but it doesn't seem to make a difference. I didn't see anything wrong with the old version and now there is definitely something wrong with this new version. Everything worked just fine last night and now none of it works. Why is that?
== This happened ==
Every time Firefox opened
== I was forced to update to the new version of firefox.ive never had any problems with ap[ple products in the past... this is a first and a stupid problem if you ask me
-
IPad 4 online games not working properly
ever since the release of the new update, I am having difficulty connecting some game apps online. These includes Conquer online (cannot connect to game server), Injustice (online game wins not credited) and Deer Hunter 2014 (automatic updating not functioning). The issues started even before I install the update but after downloading the update. It seems like the download of data is good (CO downloads patches normally, i can manually download map updates for DH, Injustice can download the data on which I will battle) but there seems to be a problem uploading data as seen after playing Injustice where my wins are not credited.By the way, my connection is okay so the issue is really related to the update and the bug it brings. Even tried uninstalling and reinstalling apps and updating my OS to the newest to solve problem but it persists. Contacted game support groups and they are saying that app is working normally for others.
Hello geraldluigibryan,
You may consider contacting the developers of the affected games for further assistance, as you've exhausted all other potential troubleshooting steps detailed in the article below.
Contact the developer
If you see the issue again, contact the developer of the app for help:
Find the app in the App Store.
Tap the app and tap Reviews.
Tap App Support.
iOS: An app you installed unexpectedly quits, stops responding, or won’t open
http://support.apple.com/kb/TS1702
Cheers,
Allen -
when I try to purchase items on my online game I can no longer buy them.For some reason firefox stops the payment options from showing.I choose what I want to buy but when it comes to paying for it thats when nothing happens.No payment option is offered.All that is there is what I have picked to buy.Before it would offer payment options when I had picked what I wanted to purchase but this no longer happens and no payment options are given.It is left like that until I stop and just leave.I would like to know why it now does this?
I got offered firefox beta and installed it.That is when it started doing this.I have cleared my cache,browser and history then restarted firefox a number of times now and still the problem persists.Can you please assist me please to somehow put it right back to the way it was before.Thank you for your time.You can try to (re)install the current Firefox 17.0.1 release if it isn't working with the current Firefox 18 beta
*Firefox 17.0.x: http://www.mozilla.org/en-US/firefox/all.html
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Due to plugin problem online games don't open i have played them a lot before
it don't say which plug in. i keep losing the response you send. i am having trouble with knowledge of this stuff.
I'm locking this post as a duplicate.
I replied to your earlier post, here:
http://support.mozilla.com/questions/784479 <br>
''i removed some plugins and i have trouble with online games now''
Maybe you are looking for
-
Is it possible to get a download of Snow Leopard?
I am having some kind of problem with my OS when it is first turned on following a normal end of day closure (properly shut down). The symptoms were place on a this community several day ago with no replies to date as to possible causes/remedies. I
-
Presentation slides made in keynote or powerpoint do not play correctly on keynote for ios
I am working with 3 colleagues on some simple slides (foreign language vocabulary) that we build in the most recent versions of either keynote or powerpoint, then import into keynote for iOS. The slides simply play with the word, then the definition
-
How to see Movies-Marker View in Garageband 4.1.2 as Illustrated in GarageBand_08_Getting_Started.pdf page 16
-
Can someone explain what is the benefit of the Find My iPhone feature?
I've upgraded my iPhone 4 to the next OS and it comes with the Find My iPhone feature. It took me a while to set it up, but it's OK, especially when it's free for those lucky iPhone 4 users. But now the question I have, what is the benefit of this fe
-
Need to have user update a portion of his page daily...
How would I go about having a user update only a certain section of his web page daily. The user doesn't have Dreamweaver MX 2004 only I do. My thought would be to some how just have him create a file and post it to our web server and I would link hi