<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>General Programming (new posts)</title>
		<link>http://gamedesign.wikidot.com/forum/c-6098/general-programming</link>
		<description>Posts in the forum category &quot;General Programming&quot; - Discuss general programming and talk about programming languages.</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 09 Sep 2026 18:38:59 +0000</lastBuildDate>
		
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10904#post-1981185</guid>
				<title>FB Tutorials: Re: FB Tutorials</title>
				<link>http://gamedesign.wikidot.com/forum/t-10904/fb-tutorials#post-1981185</link>
				<description></description>
				<pubDate>Sat, 01 Mar 2014 11:25:21 +0000</pubDate>
				<wikidot:authorName>Amirtexter</wikidot:authorName>				<wikidot:authorUserId>1829589</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey thanks for this tuts</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-43054#post-113349</guid>
				<title>Script software: Re: Script software</title>
				<link>http://gamedesign.wikidot.com/forum/t-43054/script-software#post-113349</link>
				<description></description>
				<pubDate>Mon, 25 Feb 2008 16:07:50 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't understand the question. Could you please elaborate a bit?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-43054#post-112446</guid>
				<title>Script software: Script software</title>
				<link>http://gamedesign.wikidot.com/forum/t-43054/script-software#post-112446</link>
				<description></description>
				<pubDate>Sat, 23 Feb 2008 21:59:15 +0000</pubDate>
				<wikidot:authorName>macjsus09</wikidot:authorName>				<wikidot:authorUserId>51032</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I want to make a script that can only be used in the pro edition in the advanced version,<br /> could I use the same scripts from another script software ?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-19794#post-84864</guid>
				<title>Research - Pong: umm... a little help</title>
				<link>http://gamedesign.wikidot.com/forum/t-19794/research-pong#post-84864</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2007 09:51:49 +0000</pubDate>
				<wikidot:authorName>Rozza</wikidot:authorName>				<wikidot:authorUserId>62663</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>ok here is my problem if u would like to help,</p> <p>i had game maker 7 pro, but for some reason my computer isn't letting me use it anymore which means i can't finish this project anymore because i need pro to finish, but the funny thing is that it would load game maker 7 lite instead, and when i try getting pro it just does it all ver again.</p> <p>any help?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-28270#post-72856</guid>
				<title>Errors: Re: Errors</title>
				<link>http://gamedesign.wikidot.com/forum/t-28270/errors#post-72856</link>
				<description></description>
				<pubDate>Tue, 27 Nov 2007 21:30:54 +0000</pubDate>
				<wikidot:authorName>macjsus09</wikidot:authorName>				<wikidot:authorUserId>51032</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks but I just had to change the name of the variable but it's working now.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-28270#post-71806</guid>
				<title>Errors: Re: Errors</title>
				<link>http://gamedesign.wikidot.com/forum/t-28270/errors#post-71806</link>
				<description></description>
				<pubDate>Sun, 25 Nov 2007 12:04:55 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You can post the line of code here, where the error is. Maybe also the line just before.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-28270#post-71761</guid>
				<title>Errors: Re: Errors</title>
				<link>http://gamedesign.wikidot.com/forum/t-28270/errors#post-71761</link>
				<description></description>
				<pubDate>Sun, 25 Nov 2007 04:21:08 +0000</pubDate>
				<wikidot:authorName>Linkage2</wikidot:authorName>				<wikidot:authorUserId>29081</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This probably means that you're using a keyword incorrectly or mistyping a variable. &quot;Variable name expected&quot; generally means it's come across a word that isn't a keyword (e.g. if, for and so on) and that also isn't a variable that you have declared.</p> <p>Is it showing you what word is causing the problem?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-28270#post-71623</guid>
				<title>Errors: Errors</title>
				<link>http://gamedesign.wikidot.com/forum/t-28270/errors#post-71623</link>
				<description></description>
				<pubDate>Sat, 24 Nov 2007 16:36:30 +0000</pubDate>
				<wikidot:authorName>macjsus09</wikidot:authorName>				<wikidot:authorUserId>51032</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This Error message &quot;variable name expected&quot; keeps coming up, what does that mean?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-65109</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-65109</link>
				<description></description>
				<pubDate>Mon, 05 Nov 2007 23:16:18 +0000</pubDate>
				<wikidot:authorName>Linkage2</wikidot:authorName>				<wikidot:authorUserId>29081</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, I also use them often. But it's funny, just recently it came to my mind the fact that I shouldn't use them as much as I should (as in, before I read your post about it).</p> <p>Keeping things as variables also makes it a lot easier to change said magic numbers when you need to, then you only have to change the variable rather than go through the code and change each instance of the number.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64910</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64910</link>
				<description></description>
				<pubDate>Mon, 05 Nov 2007 08:49:54 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>yeah, me too&#8230; I'm terrible at using magic numbers (i.e. i use them all the time).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64851</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64851</link>
				<description></description>
				<pubDate>Mon, 05 Nov 2007 05:44:10 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Matt, you rock. :)</p> <blockquote> <p>Magic numbers are numbers used in your code. All numbers in your code should always be defined as constants, both for re-usability and readability.</p> </blockquote> <p>I know this&#8230; but I can't seem to follow the practice. :)</p> <p>&#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64769</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64769</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 23:20:28 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, it's just a way to optimize the detection. You could also just use normal bitmap images and compare the pixel for pixel in the two images where they overlap. The bit-mask just speeds this process up as a 32bit cpu can AND 32 bits each cycle which corresponds to checking 32 pixels.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64767</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64767</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 23:17:19 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You're the man! This reminds me of the good old days. And for all of you programmers out there, if anything, the golden coin of this series is found on part 4, page 2:</p> <blockquote> <p>NEVER use 'magic numbers' in your source such as the statement [&#8230;] you may remember as you are working on the project, but what about in a year's time when you come back to re-use some of this source?</p> </blockquote> <p>P.s. Magic numbers are numbers used in your code. All numbers in your code should always be defined as constants, both for re-usability and readability.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64762</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64762</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 23:03:04 +0000</pubDate>
				<wikidot:authorName>Linkage2</wikidot:authorName>				<wikidot:authorUserId>29081</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think the bit-mask approach sounds a little complicated for me. :P</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64732</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64732</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 20:59:19 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In 1990 the Amiga magazine 'Amiga Format' ran a 7 part tutorial on professional games design.</p> <p>They discussed Collision Detection in part 6 using the 'Bit-Mask method', mentioned by u9.</p> <p>I've taken all 7 parts of the tutorial and uploaded them <a href="http://matthew-4gl.wikispaces.com/space/showimage/The_Whole_Truth_about_Games_Programming.zip">here</a>. (5.72&#160;MB)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64679</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64679</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 17:28:40 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, <a href="http://imrtechnology.ngemu.com/downloads/tutorial.pdf">here</a>'s a tutorial which actually describes both how to do it as well as how to do it as fast as possible using bitwise operators AND, OR and shift.</p> <p>Basically you first make a bit-mask of the two sprites, so that each bit represents 1 pixel. Then when the two bounding boxes intersect (a quick test) i guess you calculate the common area of the two colliding bit-masks and using the shift operator for aligning the two bit-masks you can test the area of intersection very quickly. It's maybe a little complicated.</p> <p>Here's a little quote:</p> <blockquote> <p>The idea is to identify the common area of the two masks, and then perform a bitwise AND to check if they share a common ’1’- bits. This way we can check 32 bits at a time which speeds up the test enormously</p> </blockquote> <p>Personally i would rather creating a polygon around each of my objects and then test if these collide mathematically. Doing so allows me to rotate my sprites easily without it effection collision detection.</p> <p>I have <a href="http://imrtechnology.ngemu.com/downloads/tutorial.pdf">a great book</a> about real time collision detection, so if you want to try this, let me know :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64544</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64544</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 06:24:50 +0000</pubDate>
				<wikidot:authorName>Linkage2</wikidot:authorName>				<wikidot:authorUserId>29081</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The sight of the enemies- I want them to only be able to see you when you're actually in front of them, not just whenever you're in the vicinity. So for that I need to at least be able to take the rotation of the enemy into account rather than just a normal square collision check in the area.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64534</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64534</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 03:48:01 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Why? &#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64527</guid>
				<title>Pixel Perfect Collision: Re: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64527</link>
				<description></description>
				<pubDate>Sun, 04 Nov 2007 03:22:01 +0000</pubDate>
				<wikidot:authorName>Linkage2</wikidot:authorName>				<wikidot:authorUserId>29081</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't really know, but I think I may need something like that for TrackDown.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-25495#post-64463</guid>
				<title>Pixel Perfect Collision: Pixel Perfect Collision</title>
				<link>http://gamedesign.wikidot.com/forum/t-25495/pixel-perfect-collision#post-64463</link>
				<description></description>
				<pubDate>Sat, 03 Nov 2007 18:53:04 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Here's a challenge that's way beyond me at the moment :</p> <p>Engineer pixel perfect collision without the use of any special game programming functions or libraries.</p> <p>&#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>