this must have been done already right?
pong for pd.
Pd pong
Yes indeed
But that is a very novel way of doing it without GEM, nice one dude! Totally never thought of that.
also here - http://footils.org/cms/show/27
but yours rules
<~.~>
V. cool. Great annoying sounds too! Nice efficient coding of the game.
Use the Source.
don't be fooled by all the rocks that i've got, cos i'm still jenny from the block
wow.
hi, im new to pd. Could you explain how the paddle reacts with the ball in this game? im having difficulty simulating the same idea with a patch of my own. thanks.
(i was hardoff before i got re-incarnated)
this is a very old patch, and i barely remember making it. But..
it just uses a [line] to send the ball in either direction. the line time is set at 1000, and the direction is always the opposite to what it was going in.
I'm surprised it's not buggy, but the construct i used was to send the [line] value to a select object. The pong table has dimensions from 0 to 480, so i just used [sel 0 480] and then the 0 outlet sent a new line target of 480, and the 480 outlet sent a new target of 0.
if i did this patch again now though, i'd use:
[>= 480]
|
[sel 1]
|
[0 (
|
and
[<= 0]
|
[sel 1]
|
[480 (
|
the angle seems to have been semi randomly generated within a certain area. You can see that section on the right hand side of the patch below the [r angle] object.
that is probably a bit different to the original game, which might have actually calculated the angle of reflection, but it seemed to work well enough and add a bit more realism perhaps.
anyway, thanks for the encouragement to post patches. quite funny to see a response to one i did years ago and didn't even remember.
Nice thing!! Especially cause it's not even done with gem! ..verry retro, cyber-retro..
Well it needs a little bit of luck to find some nice patches... not only because everything is scattered in the "patch"-subforum but also because the section contains some (..too much..) "technical issues"..
Wouldn't it be handy to create a new subsection like "users" with one "toppic" per active user , where he / she can post his/her patches all together?! And since it's still a forum others could easily contribute or comment etc. And we would have it all at one place instead of many places speard around in the web (..or just even in this forum). And beside all that it can be seen as a little pd-showcase for new users..
I don't know if that all is what the "patch"-subsection originally should have been, plz tell me, but yet it's too diffuse and [dirty (.. ..so a bit more structure here and there may be not bad, what do you people think about it?!
i have started cleaning up the patches section and will move all irrelevant posts to the technical issues section.
there are 21 pages and i have to open and check each one, so it will take a while!
when all that has been sorted out, let's see how it looks.
I didn't think the work on this would start that fast.. cool
I just read your sticky post.. What do you think of the "1 toppic per user please" with all the users patches inside this?!
If it's a good idea, could you add an advice to the sticky post, suggesting each user to first of all create a post called eg. " 'username's patches" and include all the users patches there..?!
...Or can this even be scripted???...
thank you for that, explained a lot. One last question, how does the score rise when it goes offscreen? im trying to do something similar however i want a score raised when it comes in contact with an object similar to the pong bats. sorry for the beginner questions!
@Flipp: You're right, the patch~ section is really sort of a showcase/critique section. I do think it would be cool if each user had a page where they could host their patches, but I think we would need a more advanced CMS for that. Doing it by creating your own personal post on the forum is kind of hacky. puredata.info probably is a better place for something like that.
Once we get patch~ cleaned up, though, it will be easier to search for the patches by user. If you go to the search page and type the user you want in the author field , select "patch~" from the Forum dropdown menu, set Sort By to "Author" and Sort Order to "Ascending", you'll get a list of all the topics that the user started or commented on. But, they'll be arranged in alphabetical order of the original author's name, so you can easily find all the posts in patch~ from that person. I'll likely put those instructions in the sticky once we get it cleaned up.
@liammur said:
thank you for that, explained a lot. One last question, how does the score rise when it goes offscreen? im trying to do something similar however i want a score raised when it comes in contact with an object similar to the pong bats. sorry for the beginner questions!
when the ball X position is either 0 or 480 (left or right edge), the ball Y position is subtracted from the paddle Y position. If this value is within the allowed range (for some reason i seem to have chosen -80 -> +20 pixels) then the ball is 'HIT'. If the value is outside the allowed range, then the ball is 'OUT'. If it goes out on the left edge, the right hand side player get's one point added - and vice versa
Now do arkanoid
@ Maelstorm: ...and how tricky will it be to get a new CMS?! ..I got no clue about that stuff, I just googled CMS and, yeah.....
Personally I don't have an account at puredata.info (do you?!) since the page occured a little messy and partially outdated to me. And my browser doesn't trust some sections (there's no valid certificate) AND I even got a popup displaying some ??spanish?? text, no idea what that was!!!
.. Anyhow I think since pd.info uses that structure successfully, it's must be good idea..
Granted it's a little hacky with only "personal posts" instead of "folders", but hey, that's not an hack but a workaround.. it just corresponds to the nature of pd...
Maybe some users would like that idea but just don't think about it, ..so just as an advice for a little more structure..
Another comparable issue:
For example this thread: http://puredata.hurleur.com/sujet-6481-mindset came up recently in the forums "extra~"-section. I guess that's where it should be, but again that section is bloated as well.
Wouldn't it be nice to have a location for just the links to externals (..or externals themselves...) found somewhere around the web?! Just to form a database, or something..
...many forums do have some kind of "sticky subforum" (inside of a more general topic) sothat eg. just the links would go to "extra~s" subforum and anything else related to that goes to "extra~" itself.
...if this goes on, we should start a new thread, shouldn't we?!
@Flipp said:
@ Maelstorm: ...and how tricky will it be to get a new CMS?! ..I got no clue about that stuff, I just googled CMS and, yeah.....
I've never personally done it myself, but it's pretty tricky, and probably not worth it.
Personally I don't have an account at puredata.info (do you?!)
Yes.
...since the page occured a little messy and partially outdated to me. And my browser doesn't trust some sections (there's no valid certificate) AND I even got a popup displaying some ??spanish?? text, no idea what that was!!!
Yeah, I get those on occasion.
Keep in mind that the content on puredata.info is a user-contributed community site. If something is out-dated, it's because no-one has bothered to update it. The idea is that if you see something is out-dated, you can fix it yourself or ask the author to update it. I'm sure there's plenty of out-dated information on this forum, too.
.. Anyhow I think since pd.info uses that structure successfully, it's must be good idea..
And if it's successful, I don't see why we should try and compete with it.
Granted it's a little hacky with only "personal posts" instead of "folders", but hey, that's not an hack but a workaround.. it just corresponds to the nature of pd...
Maybe some users would like that idea but just don't think about it, ..so just as an advice for a little more structure..
Yeah, I'm not saying it wouldn't be cool to have, and I'm not discouraging you or anyone from sharing your whole library on one topic in patch~ (hell, I did it once). I just don't really think using the forum as a code repo is really what this site is about.
I personally think it's just a better idea to put your stuff on another site (like GitHub or puredata.info or your own site) and link to it in your signature.
Another comparable issue:
For example this thread: http://puredata.hurleur.com/sujet-6481-mindset came up recently in the forums "extra~"-section...<snip>
...if this goes on, we should start a new thread, shouldn't we?!
mod and I have been talking about doing some reorganization along with cleaning up the forum, so some of that stuff is being addressed.
Speaking of things being in the wrong section, if you want to continue this discussion, start a thread in the "this forum" section. We're kind of hijacking the thread at this point.
yarrr! get off my lawn!!
Is there a way to increase the size of the game so that when it goes into fullscreen the game fits the screen or is the size of the screen to begin with
this was just a 'proof of concept', so it's all coded at the size it is.
a workaround would be something like this:
http://osxdaily.com/2012/01/02/enable-screen-zoom-in-mac-os-x-lion/
In recent versions of Pd-Extended:
[cnv] <-- Right-click and choose "Help", turn your audio on, then look for a precariously placed object.
Oops! Looks like something went wrong!