PURE DATA forum~

...that deal with pure data

You are not logged in.

#1 2006-03-18 20:05:50

hardoff
Member

pd pong

this must have been done already right?

pong for pd.


Attachments:
Attachment Icon pong.pd, Size: 6,935 bytes, Downloads: 390

Offline

 

#2 2006-03-20 19:43:35

disinter
Member

Re: pd pong

Yes indeed
But that is a very novel way of doing it without GEM, nice one dude! Totally never thought of that.

Offline

 

#3 2006-04-11 17:26:43

cabowitz
Member

Re: pd pong

also here - http://footils.org/cms/show/27
but yours rules :)


<~.~>

Offline

 

#4 2006-04-16 00:35:26

obiwannabe
Administrator

Re: pd pong

V. cool. Great annoying  sounds too! Nice efficient coding of the game. :)


Use the Source.

Offline

 

#5 2006-04-16 13:49:14

hardoff
Member

Re: pd pong

don't be fooled by all the rocks that i've got, cos i'm still jenny from the block

Offline

 

#6 2006-05-10 04:21:22

minikomi
Member

Re: pd pong

wow.

Offline

 

#7 2011-11-29 13:04:34

liammur
Member

Re: pd pong

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.

Offline

 

#8 2011-11-29 13:49:09

mod
Administrator

Re: pd pong

(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  (
|
[s lineTarget]

and

[<= 0]
|
[sel 1]
|
[480  (
|
[s lineTarget]


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. :D

Offline

 

#9 2011-11-29 17:59:34

Flipp
Member

Re: pd pong

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?!

Offline

 

#10 2011-11-29 18:41:45

mod
Administrator

Re: pd pong

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.

Last edited by mod (2011-11-29 19:11:50)

Offline

 

#11 2011-11-29 21:27:19

Flipp
Member

Re: pd pong

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???...

Last edited by Flipp (2011-11-29 21:27:41)

Offline

 

#12 2011-11-29 22:50:26

liammur
Member

Re: pd pong

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!

Offline

 

#13 2011-11-30 01:45:42

Maelstorm
Administrator

Re: pd pong

@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.


.mmb   |   My library

Offline

 

#14 2011-11-30 05:36:36

mod
Administrator

Re: pd pong

liammur wrote:

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

Offline

 

#15 2011-12-03 15:28:47

eimer
Member

Re: pd pong

Now do arkanoid ;-)

Offline

 

#16 2011-12-03 18:30:01

Flipp
Member

Re: pd pong

@ 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?!

Last edited by Flipp (2011-12-03 18:30:21)

Offline

 

#17 2011-12-03 22:46:42

Maelstorm
Administrator

Re: pd pong

Flipp wrote:

@ 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.


.mmb   |   My library

Offline

 

#18 2011-12-04 03:07:19

mod
Administrator

Re: pd pong

yarrr!  get off my lawn!!

Offline

 

#19 2012-12-05 18:03:14

muthomas
Member

Re: pd pong

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

Offline

 

#20 2012-12-06 01:59:46

mod
Administrator

Re: pd pong

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-s … os-x-lion/

Offline

 

#21 2012-12-14 18:44:14

jancsika
Member

Re: pd pong

In recent versions of Pd-Extended:

[cnv] <-- Right-click and choose "Help", turn your audio on, then look for a precariously placed object.

Last edited by jancsika (2012-12-14 18:44:36)

Offline

 

Board footer

Powered by PunBB
Copyright 20022005 Rickard Andersson


pd.webring info