Page 3 of 3

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Wed Dec 24, 2014 2:04 pm
by bitRocky
could someone make an executable (MorphOS) of this PONG game or an applet?

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Wed Dec 24, 2014 6:53 pm
by Bugala
Here is MorphOS: https://dl.dropboxusercontent.com/u/337 ... orphos.exe
and applet version: https://dl.dropboxusercontent.com/u/337 ... applet.hwa

Applet version takes only 3 kb.


This is the version which uses the timer to make it run in each machine at same speed, hence the speed numbers are not the same as in tutorial. This is using 300 for ballstartpeed and 700 for computerspeed (that is 300 and 700 pixels per second)

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Wed Dec 24, 2014 11:08 pm
by bitRocky
Thanks!
And merry chrismas!

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Fri Dec 26, 2014 4:35 pm
by bitRocky
The applet isn't working here, Hollywood Player says it only supports compressed applets!

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Fri Dec 26, 2014 11:26 pm
by Yasu
I have finally been able to understand the parts discussed (took a lot of time reading and re-reading though). Now I'm finished :)

I want to send you the text so you can check if it's good enough for you. It's of course in Swedish, but with Google Translate it should be comprehensible.

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Sat Dec 27, 2014 10:02 am
by Bugala
@BitRocky

I used the Hollywoods windows versions editor that comes with it and simply chose the option "Compile Applet" from the menus.
other than that, i have no idea what that menu option means, nor have i ever tried using applet.

I might take a look at that at some point, but other than that, i guess we have to wait for Andreas to answer what is possibly wrong there.

@Yasu

I do understand little bit of swedish. Not enough that I had been able to right away figure out how to play Hello Kitty card game which had only Swedish instructions, but enough that eventually after re reading the swedish instructions several times and finally checking from google translation one-two sentences, i was able to figure out what were the instructions of that game.

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Sat Dec 27, 2014 2:10 pm
by airsoftsoftwair
Just add the -compress flag in IDE settings -> Hollywood -> Options for compiling scripts, e.g.

Code: Select all

%HWPATH %SCRIPT -compile %OUTEXE -exetype %EXEPLATFORM -debugdevice ::hwnd%IDEWINDOW -compress

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Sat Dec 27, 2014 4:06 pm
by Bugala
@BitRocky

try the applet now. I uploaded a new version which was made with that -compile setting that Andreas adviced to do. Link is still the same.

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Tue Dec 30, 2014 9:08 am
by jalih
I wrote a version of the Bugala's Pong example game using my framework.

It also serves as a demonstration on how to do math with rectangles and points using primitives library:

- Rectancles are used for ball and paddles.
- Points are used for location vectors and movement vectors.

Available here

Re: Simple PONG-game tutorial for Beginner Coders

Posted: Tue Dec 30, 2014 9:43 am
by Bugala
Thanks Jalih, although I still have to look your code more to understand it better, this is already very useful in learning some more advanced technics of doing things.