Simple PONG-game tutorial for Beginner Coders

The place for any Hollywood tutorials

Re: Simple PONG-game tutorial for Beginner Coders

Postby bitRocky » Wed Dec 24, 2014 3:04 pm

could someone make an executable (MorphOS) of this PONG game or an applet?
bitRocky
 
Posts: 53
Joined: Fri Nov 14, 2014 7:01 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby Bugala » Wed Dec 24, 2014 7:53 pm

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)
Bugala
 
Posts: 645
Joined: Sun Feb 14, 2010 8:11 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby bitRocky » Thu Dec 25, 2014 12:08 am

Thanks!
And merry chrismas!
bitRocky
 
Posts: 53
Joined: Fri Nov 14, 2014 7:01 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby bitRocky » Fri Dec 26, 2014 5:35 pm

The applet isn't working here, Hollywood Player says it only supports compressed applets!
bitRocky
 
Posts: 53
Joined: Fri Nov 14, 2014 7:01 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby Yasu » Sat Dec 27, 2014 12:26 am

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.
Yasu
 
Posts: 17
Joined: Mon Jun 30, 2014 3:12 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby Bugala » Sat Dec 27, 2014 11:02 am

@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.
Bugala
 
Posts: 645
Joined: Sun Feb 14, 2010 8:11 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby airsoftsoftwair » Sat Dec 27, 2014 3:10 pm

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
User avatar
airsoftsoftwair
 
Posts: 2238
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Simple PONG-game tutorial for Beginner Coders

Postby Bugala » Sat Dec 27, 2014 5:06 pm

@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.
Bugala
 
Posts: 645
Joined: Sun Feb 14, 2010 8:11 pm

Re: Simple PONG-game tutorial for Beginner Coders

Postby jalih » Tue Dec 30, 2014 10:08 am

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
jalih
 
Posts: 244
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: Simple PONG-game tutorial for Beginner Coders

Postby Bugala » Tue Dec 30, 2014 10:43 am

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.
Bugala
 
Posts: 645
Joined: Sun Feb 14, 2010 8:11 pm

Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron