473,569 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some suggestions on improving my game please..

Hello all.

Have been working on the Air Hockey game on and off for a couple of weeks
now.. but have had plenty of other assignments to keep me busy along with
it.

But i would like some suggestions on improving it. It's far from fully
working, but some suggestions on the following would be great. Please
download it from: http://homepage.eircom.net/~basquilletj/AirHockey.rar.

- I need to determine an equation to calculate the PaddleForce (the speed of
the paddle passed when a collision occurs). It's currently fixed at 4.

- Any suggestions on how to improve the hitlines (around the borders of the
table)? How is currently works: the puck is a GraphicsPath from which all
points from it are loaded into an array. On every redrawing of the game,
each point is checked (individually which may hinder the performance). And
if a point is visible on FormRgn (the region outside of the table border),
the direction of the puck is reversed.

- The paddle shouldn't be able to move inside of the puck so easily.
Suggestions on how to prevent this?

Many thanks in advance,

Brian
Nov 16 '05 #1
1 1340
I think you should get the book "Physics for Game Developers" from O'Reilly.
It's great for covering things like how to program with realistic
force/mass/acceleration, etc., as well as talking a lot about hit-detection
and all that stuff.
"Brian Basquille" <re**********@p lease.com> wrote in message
news:eq******** ******@TK2MSFTN GP12.phx.gbl...
Hello all.

Have been working on the Air Hockey game on and off for a couple of weeks
now.. but have had plenty of other assignments to keep me busy along with
it.

But i would like some suggestions on improving it. It's far from fully
working, but some suggestions on the following would be great. Please
download it from: http://homepage.eircom.net/~basquilletj/AirHockey.rar.

- I need to determine an equation to calculate the PaddleForce (the speed
of the paddle passed when a collision occurs). It's currently fixed at 4.

- Any suggestions on how to improve the hitlines (around the borders of
the table)? How is currently works: the puck is a GraphicsPath from which
all points from it are loaded into an array. On every redrawing of the
game, each point is checked (individually which may hinder the
performance). And if a point is visible on FormRgn (the region outside of
the table border), the direction of the puck is reversed.

- The paddle shouldn't be able to move inside of the puck so easily.
Suggestions on how to prevent this?

Many thanks in advance,

Brian

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

193
9444
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I speak only of features in the spirit of C; something like object-orientation, though a nice feature, does not belong in C. Something like being able...
1
2432
by: Brian | last post by:
Greetings all, I wrote a message regarding hit-lines here a couple of days back saying: "Anyone got links to some examples of using Region and/or Region.Intersect in a graphical / gaming enviroment? Am investigating into using it for hit-lines in my game."
2
2297
by: Brian Basquille | last post by:
Hello all. Air Hockey game is due up in just over a month. And i've about 2 and a half weeks to work on it. So, i need some feedback and advice. http://homepage.eircom.net/~basquilletj/AirHockey.rar Please download it and give it a quick spin. Not completely working yet in terms of:
5
8918
by: Kraken | last post by:
Hi, i have a bit of a problem here. I have an assignment to do an animal guessing game using an original database and updating it as the user enters new animals in it. The program enters the file data into an array of structures, with the animal and question in the same variable(question) and the bool isAnimal tells me whether its an animal or...
1
1037
by: smahaboob | last post by:
My interest is that any associate in my office opens any game, he should not proceed further. My .NET application should give a message that Please Close your Game applciation as many timies as he open the game. My query is given below & I would be thankful if any of the gurus would solve my problem. Eg: I have developed an application by...
22
1732
by: Guru Jois | last post by:
Hai all, I have some question. Please answer. 1. What is walking pointer? 2. What is difference between procedure and subroutine? 3. What is template of main in C? 4. What is padding of structure ( or structure padding )? 5. What is advantages of using pointers to functions?.
3
1630
by: ThaDoctor | last post by:
Hi. I am quite new to C++ so I think I would ask here what I am doing wrong with this code. I am writing a little game in a text console, but here is something that is in no way related to the game but when I am compiling this it yields an error.... Why is that #include<iostream>
2
5303
by: LilMeechc20 | last post by:
Hello, I have a group assignment that I have to do. We have to write a Tic Tac Toe game. One person in my group has managed to write the code for a multiplayer (human -vs- human) game and I managed to write a code for a single player (human -vs- computer) game. My problem is, now we want to merge the two games with options to pick which...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.