Please Help (Mouse input and graphics for small game)
Hi everyone, I'm new to this forum, but it looked like a good place to get some help with a simple-ish game I've been working on. I sorta posted the beginnings of it on a forum dedicated to another cool game called Soldat.
So that I don't have to retype much about the game itself, the link to the discussion is here (please mind the non-dev talk in there):
http://www.soldatforums.com/topic.asp?topic_id=20916
and the start of the 'game' is here:
http://llsc.us/members/Solidarnosc/uploads/SolidarnoscNew.jar
Anyhow, I need some advice on fast graphics. My game is sorta 3D (sorta-3D = that enigmatic 3D look in a 3D environment with sprites and no perspective), but I managed to use some simple mathematics and the basic AWT drawing methods to replicate 3D. The problem is that this is rather slow.
I have started to have a look at different methods of drawing such as OpenGL using JOGL etc, but this is all rather daunting at the moment for someone somewhat self taught (OK, I have done a bit of Java at high school, but it didn't get as far as using such big words as Classpath, Package, let alone Buffer) and I seem to have a curse like Tubbers when it comes to semi-complicated tutorials. Ideally, it would be handy if there was a very simple example or a class that extended a Frame or something similar that had a modified graphics/drawing system with a 'perfect' buffering system (OK, maybe I'm dreaming).
The other thing that I need help with is mouse movement detection. Currently, I am using a simple system of reading the mouse position on the frame to determine movement, but ideally I need a system that allows the mouse to keep moving without the constraints of the cursor needing to be in the form and not moving at edges of screen, etc.
Help would be appreciated, but thanks for reading this anyway.
Maybe I'm not making myself clear here (or maybe I
missed a sign that that said "open source only"). I
don't need a part of my program fixed by someone else
as such, but rather I was just wondering what the
easiest way to speed up AWT graphics is and how can I
read mouse motion (specific to neither the cursor nor
the application's frame) or even just set the
cursor's position relative to frame. Failing that,
can someone tell me how I should read mouse input in
a way similar to a standard First Person Shooter?Unless I am missunderstanding what you want again, then take a look at AWT's Toolkit, it has
public void addAWTEventListener(AWTEventListener listener,
long eventMask)and it should do what you want.
Similar Messages
-
Please help GW letters and address for BOA, NEED ADVICE!
Ok!, so i paid off a collection i had for a old BOA CC and i want it to be removed from my CRs. How should i go about doing that? Are there any emails, mailing addresses, etc. i should know about?
winchestertherealtor wrote:
Ok!, so i paid off a collection i had for a old BOA CC and i want it to be removed from my CRs. How should i go about doing that? Are there any emails, mailing addresses, etc. i should know about?I would Google BoAs headquarters address and mail the GW letter to the office of the CEO. Good luck http://ficoforums.myfico.com/t5/Rebuilding-Your-Credit/GW-letter-Q-amp-A-Examples-and-GW-Success-Stories/td-p/1573680 -
I have a new Ipad and when I try to buy an app it asks for my questions! I dont remember them so I press the button that send me an email to reset them. Ive sent it various times but it doesnt arrive. please help I need this app for school!!!
See Kappy's great User Tips.
See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
Rescue email address and how to reset Apple ID security questions
http://support.apple.com/kb/HT5312
Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
Cheers, Tom -
Hi! I cant conect The face time betwen my iPad ,iPod and iPhone, please help me,what i need for this issue?
What is it doing when you try to facetime? also if you are using the same apple Id/email on each device, it wont work.
-
please help - installed IOS7 and now I am having problems playing Words Free on my Iphone. It gives me a pop up telling me to connect to ITunes but will not connect. Cannot get out and have to continually shut down my phone and start over.
Hi, jeantwin.
Thank you for visiting Apple Support Communities.
The steps in the article below may help you resolve the issue with push notifications.
iPad and iPod touch: Unable to use YouTube or Push notifications
http://support.apple.com/kb/ts3305
If the issue persists, try signing out of your Apple ID and then sign back in.
iOS: Changing the signed-in iTunes Store Apple ID account
http://support.apple.com/kb/HT1311
Cheers,
Jason H. -
How can I make Apple Earphones be the Input and Output for Audio
I have some older headphones and they aren't compatible with a Mid 2010 (Intel Core i3) 21.5 Inch iMac
Is there some way to make Apple Earphones be the Input and Output for Audio in the iMac
This is a problem for me personally as when I am talking to someone on Skype the iMac picks up the In-built Microphone audio, and yes the headphones I'm using do work straight from the iMac as audio output
Any help is appreciatedyou can connect the headset to something like this
http://www.ebay.com/itm/NEW-MaelineA-3-5mm-Female-to-2-Male-Gold-Plated-Headphon e-Mic-Audio-Y-Splitter-/381100440348
and then connect the mic to the input and the headset to the headset port -
Dear Adobe Community,
I got my first imac a few days ago, and i decided to install Adobe CC.
When i want to run Adobe Bridge, says "the operation could not be completed", the same happens with Adobe After Effects.
And I also have a problem with Premiere, when i want to export a project says that premiere must close.
This is the try version, is this a problem of Adobe or Apple? i'm very worried
Help!
Thank you!
IvanaMuchas gracias!!! Ha funcionado!
El 11/02/2014, a las 00:02, Federico Platon <[email protected]> escribió:
Re: PLEASE Help! - Bridge and Premiere CC- "the operation could not be completed" and export error - MAC
created by Federico Platon in Foros de usuario a usuario - View the full discussion
Confirma que se trata de una cuestión de permisos.
Por cierto te aconsejos actualices la 9.1 a 9.2, posiblemente se habría arreglado así también.
Bueno los pasos son:
2. Select Go from the Finder Menu.
3. Select Computer.
4. Select Macintosh HD.
5. Select Users.
6. Select your user profile.
7. Right click on user profile. Select Get Info.
8. Go to bottom and unlock with admin password to make changes.
9. Make sure your user profile has Read and Write privileges by selecting from dropdown menu.
10. Go down to wheel at very bottom and select Apply to enclosed items. This should allow Adobe Bridge to run properly.
Creo que no se necesita traducción.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6107188#6107188
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6107188#6107188
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6107188#6107188. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Foros de usuario a usuario at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
I work on the CompactRIO 9068 that the password is lost for some time.
Please help me to reset it, for finish my end of study project.
Thank you,but the page of ni support does not work:
https://sine.ni.com/srm/app/newrequest
and I have the recovery.cfg file from NI with this steps :
1. Copy the recovery.cfg file, found in the zip folder attached at the bottom of the email, to the thumb drive.
2. With the cRIO device powered off, plug in the USB drive to the controller.
3. Hold down the reset button while powering on the controller. Continue holding the reset button until the status light turns on, then release the reset button.
4. Wait for the controller to boot. This should take less than a minute.
5. Check that the password has been reset to the default. (you will still be prompted for a password even if the default is blank)
6. Reinstall software to the controller. Using the USB reset will leave the system in a state where it is unable to run LVRT
I have followed the procedure as mentioned
Result: the LED "Status" is permanently blinking.
Would you please provide as with another alternative so that we can fix this issue. -
Please help to modifiy this query for better performance
Please help to rewrite this query for better performance. This is taking long time to execute.
Table t_t_bil_bil_cycle_change contains 1200000 rows and table t_acctnumberTab countains 200000 rows.
I have created index on ACCOUNT_ID
Query is shown below
update rbabu.t_t_bil_bil_cycle_change a
set account_number =
( select distinct b.account_number
from rbabu.t_acctnumberTab b
where a.account_id = b.account_id
Table structure is shown below
SQL> DESC t_acctnumberTab;
Name Type Nullable Default Comments
ACCOUNT_ID NUMBER(10)
ACCOUNT_NUMBER VARCHAR2(24)
SQL> DESC t_t_bil_bil_cycle_change;
Name Type Nullable Default Comments
ACCOUNT_ID NUMBER(10)
ACCOUNT_NUMBER VARCHAR2(24) YIshan's solution is good. I would avoid updating rows which already have the right value - it's a waste of time.
You should have a UNIQUE or PRIMARY KEY constraint on t_acctnumberTab.account_id
merge rbabu.t_t_bil_bil_cycle_change a
using
( select distinct account_number, account_id
from rbabu.t_acctnumberTab
) t
on ( a.account_id = b.account_id
and decode(a.account_number, b.account_number, 0, 1) = 1
when matched then
update set a.account_number = b.account_number -
I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?
If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it. -
Please help I can't enter for app new pay security
Please help I can't enter for app security my name Sarah Simpson
You are not speaking to Apple here. We are users just like you. Your question is not clear but if you can be more specific, we might be able to help. If English is not your native language, you can try posing in your language and someone will be able to figure it out.
-
IF YOU HELP MY NANO upgraded when you install PERFECT BUT DOES NOT APPEAR ON THE SCREEN NOTHING BUT as if you were OFF if turned PLEASE HELP OR MORE AND HAS THE NEW UPDATE
iPod not recognized in 'My Computer' and in iTunes for Windows
-
Why doesn't my iPhone 4 have an 'Internet tethering' options? Is it carrier related or iOs related? Please help me find the solution for this. thanx
Personal Hot spot
http://support.apple.com/kb/HT3574
Understanding
http://support.apple.com/kb/HT4517
Trouble Shooting
http://support.apple.com/kb/TS2756 -
Can't find a playlist I created on my playlist or computer? I didn't delete it. I don't want to create it again because it took a long time. please help me find and recover.
Playlists only exist as part of the larger iTunes library listing so if you are not seeing it there it doesn't exist anywhere else. I know with my older version of iTunes it is very easy to accidentally delete a playlist. With newer versions it may be possible to recover it with the undo feature in the menu but this likely will only work immediately after the deletion.
-
I have been able to access a site regularly but in the last few days get a message: "cookies required to access this site." please help, I use this site for work daily:)
Goto > Settings > Safari... Enable Cookies > Always
Good luck!
Maybe you are looking for
-
Account Based CO-PA Quantity Not updated in COEP-MEGBTR
Hello, We use account based CO-PA. For certain Billing transactions, the quantity is not coming to the BW. On analysis, we notice that the line item document created in COEP table is not updating the quantity field MEGBTR but only the field MBGBTR.
-
I am unable to see tutorial videos on the apple site due to a missing pug-in
I am trying to view the video tutorials on the Apple website, I can hear the sound but can't see the video, just the words "missing plug-in"! What am I missing and how do I get it?
-
PC 10.0 - Unable to add Regulation to an Org Unit
Hi All, I added the org through Root Org hierarchy, but when i tried to modify and add the regulaiton to the Org unit - there is no add button available in the Org Unit for reguatlions. Only Remove button is available. Is any authorization missing fo
-
Is there a way to iMessage using ipad2 with all of the contacts on my iPhone? Some of them say that they are not registered with iMessage and therefore it won't send the message.
-
Runtime error sur photoshop element 11
Bonjour, j'ai acheté photoshop element 11 et l'ai installé. Après quelques jours d'utilisation, il a cessé de fonctionner et le message runtime error est apparut a l'écran. J'ai désinstallé le programme et j'ai effectué la réinstallation avec succès.