Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (116)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Quidditch  (Read 9492 times)
0 Members and 1 Guest are viewing this topic.
Offline gouessej
« Reply #30 - Posted 2011-07-21 09:51:00 »

Hi!

How can I throw the quaffle with the player 1? The "how to play" section says "Player 1:/? key".

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #31 - Posted 2011-07-21 12:04:54 »

@gouesse
That's exactly what it means, hit the key with the forward slash and question mark above it.

Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #32 - Posted 2011-07-21 12:21:51 »

Hi!

How can I throw the quaffle with the player 1? The "how to play" section says "Player 1:/? key".

Sorry if it wasn't clear enough- it's the key that has the forward slash on it, which on my keyboard is '?' if you type it while pressing shift (you don't press shift to throw the quaffle).

On my keyboard it's directly to the left of the shift key, between shift and the .> key, which is the bat key. I hope that makes sense, but if not, you can always remap the controls by clicking the "Redefine Keys" button in the lower left corner of the main menu. Apparently some keyboards don't have those keys, which I didn't think about.

Again, thanks for trying to play the game, and sorry if anything was confusing. Hopefully this helps you out.

Static Void Games - Play indie games, learn game programming, upload your own games!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #33 - Posted 2011-07-21 13:35:57 »

Sorry, I use an AZERTY keyboard, something standard in France. The forward slash is not on the same key than the question mark on this kind of keyboard. Please could you find a better default key? I will try your suggestion. Thanks.

It would be better if the "how to play" section took into account the changes of keys.

Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #34 - Posted 2011-07-21 13:39:30 »

Sorry, I use an AZERTY keyboard, something standard in France. The forward slash is not on the same key than the question mark on this kind of keyboard. Please could you find a better default key? I will try your suggestion. Thanks.

Sure, in the future, I'll try to use keys that are more standard. But for the time being, that's why I added the ability to remap the keys to whatever you want them to be. Thanks again for trying it out.

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline dishmoth
« Reply #35 - Posted 2011-07-26 17:48:23 »

Overall I think the game's strangely charming.  There are quite a few rough edges in the presentation, but I think they've been pretty thoroughly discussed already so I won't add anything.  (Rule of thumb: user interfaces are always harder to understand than their creators think they are.)

I only played single-player.  Has anyone at all played two-player yet?

I'm always in favour of simplifying controls where possible.  Would it work if 'bat' and 'throw' used the same button, so that you can only bat away the bludgers if you're not holding the quaffle?  That doesn't seem unreasonable from a gameplay point-of-view.

Maybe you could stress that the game is "Quidditch One-on-One", and as such shouldn't be expected to have the same rules as normal Quidditch. Wink

Simon

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #36 - Posted 2011-07-26 23:11:59 »

I'm always in favour of simplifying controls where possible.  Would it work if 'bat' and 'throw' used the same button, so that you can only bat away the bludgers if you're not holding the quaffle?  That doesn't seem unreasonable from a gameplay point-of-view.
But what if I am holding the quaffle and a bludger's coming my way? I would like to bat it away, not throw the Quaffle Wink

Offline roland
« Reply #37 - Posted 2011-07-27 01:39:58 »

Quidditch is definitely one of the things I most enjoy about the harry potter series.
I never thought a computer game could be implemented that would be able to be nearly as fun as reading the quidditch games in the books.

My suggestions:
-Could you implement some scrolling, so the map is a bit larger?

-I know it is Quidditch one-on-one, but, instead of just two players, have 2 teams, but you can switch between which player in your team that you can control (like soccer games), while the rest are AI controlled.
-Get knocked back in the direction the bludger travels, further depending on bludger speed, if you get hit hard enough in the head you get knocked to the ground (and possibly knocked out, so you have one less player on your team (if you do have teams).
-Hold down bludger button for power (like in worms with bazooka)
-Hit opponents with bat
-make snitch a lot harder to catch
-Movement is awesome, keep it like it is.

Good game  Grin




Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #38 - Posted 2011-07-27 06:55:24 »

Oooooh I can just imagine it, an online multiplayer 7 vs 7 Quidditch game!

Offline roland
« Reply #39 - Posted 2011-07-27 11:39:04 »

Yes. Do it!   Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #40 - Posted 2011-07-27 13:09:12 »

Overall I think the game's strangely charming.  There are quite a few rough edges in the presentation, but I think they've been pretty thoroughly discussed already so I won't add anything.  (Rule of thumb: user interfaces are always harder to understand than their creators think they are.)

I only played single-player.  Has anyone at all played two-player yet?

I'm always in favour of simplifying controls where possible.  Would it work if 'bat' and 'throw' used the same button, so that you can only bat away the bludgers if you're not holding the quaffle?  That doesn't seem unreasonable from a gameplay point-of-view.

Maybe you could stress that the game is "Quidditch One-on-One", and as such shouldn't be expected to have the same rules as normal Quidditch. Wink

Simon

I thought about using a single bat/throw button, but I went with the same logic that ra4king arrived at- there are situations where you could do both but only want to do one, so I made them separate buttons. Forcing you to throw the quaffle before hitting the bludgers away defeats most of the purpose of hitting them at all, I think. Thanks for playing!

Static Void Games - Play indie games, learn game programming, upload your own games!
Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #41 - Posted 2011-07-27 13:29:54 »

Quidditch is definitely one of the things I most enjoy about the harry potter series.
I never thought a computer game could be implemented that would be able to be nearly as fun as reading the quidditch games in the books.

Heh, I can't tell whether you're saying the game is fun or not! Hopefully it is though.

My suggestions:
-Could you implement some scrolling, so the map is a bit larger?

What's weird is that my original plan did have scrolling. Actually, if you look at the painting code, I have a boolean you can change so that the view is zoomed in just enough to keep both players visible instead of showing the whole field. It feels like a completely different game, and I recommend you try it (full disclosure- I added the quality control after that code, so it might not work right out of the box). In the end, my fundamental goal was to keep things simple, obvious, and fun, so I chose to show the whole field.


-I know it is Quidditch one-on-one, but, instead of just two players, have 2 teams, but you can switch between which player in your team that you can control (like soccer games), while the rest are AI controlled.

I thought about that as well, and that would definitely be in any updated version, but my simple AI is dumb enough that you'd just have a jumble of players all doing the same thing- there are definitely ways around that, but I went with the bare minimum I could accomplish instead of adding features I thought would be awesome that would keep me postponing the release.


-Get knocked back in the direction the bludger travels, further depending on bludger speed, if you get hit hard enough in the head you get knocked to the ground (and possibly knocked out, so you have one less player on your team (if you do have teams).

That's a really good idea, and not hard to implement. I probably should have gone that way instead, but my focus has shifted so I probably won't have time to add it to this version. Actually I also originally wanted to try to implement the Wronski feint so that players could hit the ground, but again, in the end I went with simplicity, so I had to cut a ton of features for time and sanity's sake. Maybe in the next version.


-Hold down bludger button for power (like in worms with bazooka)
-Hit opponents with bat

Again, it's weird how much you're in my brain. Both of these features, along with the scrolling, were a part of my original idea- but simplicity won in the end. I had some short-lived grand schemes of having a penalty system where you could hit opponents with your bat, but you had a chance to be "seen by the ref", which would allow your opponent to shoot a foul. But, I wanted to keep things obvious and not confusing, so I scratched it and just allowed the players to push one another, not hit one another.

-make snitch a lot harder to catch

Yeah, I explained this above so I won't harp on it, but I probably should have made it harder to catch. I wanted to make sure the games didn't last too long and get boring, but maybe I overcompensated.

-Movement is awesome, keep it like it is.

That's awesome to hear, as it's one of the things I was wondering about. I thought about making it so the left and right arrows controlled the angle of your broom and the up and down arrows controlled speed, but I thought that might be clumsy or confusing. Maybe in another version I could have that as an "advanced controls" option, maybe with the bonus that you could go faster if you used it (like choosing manual transmission in racing games).

Good game  Grin

Thanks so much, and thanks for playing!

Hopefully I can eventually find an artist to help out with the next version, because I'd love to implement all the great suggestions I've heard!

Static Void Games - Play indie games, learn game programming, upload your own games!
Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #42 - Posted 2011-07-27 13:33:02 »

Oooooh I can just imagine it, an online multiplayer 7 vs 7 Quidditch game!

Haha oh geez. That would be pretty awesome, but I've got quite a ways to go before I implement that! Maybe in addition to an artist, I also need an "online guy" to help with that stuff for the next version?

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline roland
« Reply #43 - Posted 2011-07-28 04:33:43 »

I'm glad I could help.  Smiley
It sounds like you could make two different versions - a quick, fun, small game, and a more complex game which would be harder to learn but in the long run be better. It is good to keep things simple. The game is fun, but after a while will become boring if there isn't enough variation and challenge.
I had a look at your code, and added a camera that follows just player 1 and I think it's pretty fun! (don't try 2 player, it won't work well... haha )
http://www.chaosreef.com/quidditch/quidditch.html
I added some deltax and deltay when you get hit by the bludgers, but the direction is completely random because I couldn't be bothered reading through and finding out how the heading variable works.

Oooooh I can just imagine it, an online multiplayer 7 vs 7 Quidditch game!

Haha oh geez. That would be pretty awesome, but I've got quite a ways to go before I implement that! Maybe in addition to an artist, I also need an "online guy" to help with that stuff for the next version?

I might be able to be the "online guy"  Wink
Online KevinWorkman

JGO Wizard


Medals: 71
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #44 - Posted 2011-07-28 13:00:00 »

I'm glad I could help.  Smiley
It sounds like you could make two different versions - a quick, fun, small game, and a more complex game which would be harder to learn but in the long run be better. It is good to keep things simple. The game is fun, but after a while will become boring if there isn't enough variation and challenge.

That's a good point. I kept things simple because my target audience was a few girl friends who like Harry Potter but don't really ever play games, so almost every decision was made with the idea of simplicity. But compared to the 1300 views this thread received so far (I know that doesn't equal 1300 plays, but still), maybe I should add some more complicated gameplay to keep things interesting and replayable. I'll definitely keep that in mind for games I make in the future.


I had a look at your code, and added a camera that follows just player 1 and I think it's pretty fun! (don't try 2 player, it won't work well... haha )
http://www.chaosreef.com/quidditch/quidditch.html

That's very cool, and I'm pretty thrilled that a stranger on the internet liked something I did enough to spend time on it. Seriously, thanks, what an awesome way to start the day! I wonder if you used any of the code I wrote for keeping both players on the screen (the if statement that I deactivated in paintComponent() but left in the code), or if you did it from scratch? It wouldn't have been hard to modify my code to only worry about one of the players, I don't think. Either way, very cool.

I added some deltax and deltay when you get hit by the bludgers, but the direction is completely random because I couldn't be bothered reading through and finding out how the heading variable works.

You probably could just get the bludger's current deltaX and deltaY (before it bounces off the player), then set the player's deltaX and deltaY based off that. But I like your effect, and I'll probably add it if I ever do come back to this.

I might be able to be the "online guy"  Wink

Cool, I'll keep you posted. I have a ton of ideas for this, but I'm mostly hampered by my lack of art skills. So if an artist ever comes along, I'd be interested in coming back to this. I've got a lot on my plate at the moment, but in the future, this would be a fun project.

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline roland
« Reply #45 - Posted 2011-07-29 02:37:27 »


I used most of your code, just changed a few things slightly.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
if (!drawZoomed){...}
else{

         double border = 200;
         
         double x = player1.getX()/2 -gameWidth/4 + image.getWidth()/2;//(player1.getX() + player2.getX()) / 2;
        double y = player1.getY()/2 -gameHeight/4 + image.getHeight()/2;//(player1.getY() + player2.getY()) / 2;
        //double distance = Math.hypot(player2.getX()-player1.getX(), 0);//player2.getY()-player1.getY());

         int left = (int)(x-border);
         int right = (int)(x+border);
         int up = (int)(y-border);
         int down = (int)(y+border);
         if (left < 0)
         {
            left = 0;
            right = (int) (border*2);
         }
         if (right > image.getWidth())
         {
            left = (int) (image.getWidth()-border*2);
            right = image.getWidth();
         }
         
         if (up < 0)
         {
            up = 0;
            down = (int) (border*2);
         }
         if (down > image.getHeight())
         {
            up = (int) (image.getHeight()-border*2);
            down = image.getHeight();
         }
         
         g.drawImage(image,
               0,
               0,
               getWidth(),
               getHeight(),
               left,
               up,
               right,
               down,
               this);
      }


Quote
You probably could just get the bludger's current deltaX and deltaY (before it bounces off the player)
oops. I didn't see them lol  Clueless

Quote
Cool, I'll keep you posted. I have a ton of ideas for this, but I'm mostly hampered by my lack of art skills. So if an artist ever comes along, I'd be interested in coming back to this. I've got a lot on my plate at the moment, but in the future, this would be a fun project.
Sounds good. If I don't reply on this thread just send me a quick email at chaosreef@gmail.com




Pages: 1 [2]
  ignore  |  Print  
 
 

 
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!