<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Newbie Game Programmers Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'Newbie Game Programmers' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 08:28:22 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 08:28:22 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Create maps games</title>
      <link>http://www.programmersheaven.com/mb/newbies/431031/431031/create-maps-games/</link>
      <description>Hello everybody, I started studying game development. I wonder if there is any program to create the scenarios (maps) for games. Like, take the tileset to create the maps.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/431031/431031/create-maps-games/</guid>
      <pubDate>Tue, 22 Jan 2013 09:07:19 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Create maps games</title>
      <link>http://www.programmersheaven.com/mb/newbies/431030/431030/create-maps-games/</link>
      <description>Hello everybody, I started studying game development. I wonder if there is any program to create the scenarios (maps) for games. Like, take the tileset to create the maps.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/431030/431030/create-maps-games/</guid>
      <pubDate>Tue, 22 Jan 2013 09:05:10 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>I need a script (I'm a designer in need)</title>
      <link>http://www.programmersheaven.com/mb/newbies/428995/428995/i-need-a-script-im-a-designer-in-need/</link>
      <description>Hey guys, so I'm no scripter at all so I really need your guys help. I need a script for the Unity 3d engine in Javascript. I'm making a part where I need a spinning combination lock with 3 correct numbers. Starting clockwise you will turn it till you hear a triggered click, next turn it counter clockwise till you hear the next one, and one last turn clockwise till the final correct number is hit. It needs to restart if you pass a number by a certain margin. Also, it would be amazing if the 3 variable numbers could be randomized inside the script because I wouldn't have to change each one every time. I already have the object rotating on a drag. So basically it needs to turn one way, hit a certain point, trigger an animation/sound, go the other way, trigger another animation/sound, and go one last time the other way, where it will trigger an animation and a sound, but restart if any one number is passed by too much. This would be so appreciated if you could help me out by making this.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/428995/428995/i-need-a-script-im-a-designer-in-need/</guid>
      <pubDate>Sat, 30 Jun 2012 01:02:14 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>DragonFireSDK</title>
      <link>http://www.programmersheaven.com/mb/newbies/428929/428929/dragonfiresdk/</link>
      <description>Guys have an app in mind to publish which people will be charged a small fee for the app when I have presented it onto apple for the iphone perhaps maybe android as well provide-ing I get the right sdk kit I have looked at DragonFireSDK and would like to ask if anyone has used the software or know anyone that has experience with it or what would be the best sdk kit to build apps for smartphones...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/428929/428929/dragonfiresdk/</guid>
      <pubDate>Tue, 26 Jun 2012 15:42:34 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>DragonFireSDK</title>
      <link>http://www.programmersheaven.com/mb/newbies/428928/428928/dragonfiresdk/</link>
      <description>Guys have an app in mind to publish which people will be charged a small fee for the app when I have presented it onto apple for the iphone perhaps maybe android as well provide-ing I get the right sdk kit I have looked at DragonFireSDK and would like to ask if anyone has used the software or know anyone that has experience with it or what would be the best sdk kit to build apps for smartphones...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/428928/428928/dragonfiresdk/</guid>
      <pubDate>Tue, 26 Jun 2012 15:40:43 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Sphere formation &amp; its rotation problem</title>
      <link>http://www.programmersheaven.com/mb/newbies/422676/422676/sphere-formation--its-rotation-problem/</link>
      <description>Hello. I'm Doom game mapper and scripter. I create complex scripts to do sophisticated actions. And it's pure C-like programming or ACS scripts which are native to that.&lt;br /&gt;
&lt;br /&gt;
I'm forming a sphere of elements and everything is fine. But I face problems when trying to make it to turn around like a planet. Points istelf can do a smooth 1 circle turn. &lt;br /&gt;
&lt;br /&gt;
But when I try to make them move they &lt;strong&gt;jump&lt;/strong&gt; to start point and start to move along whole circle arc. &lt;br /&gt;
&lt;br /&gt;
I want so they all would turn from their own positions &lt;span style="text-decoration: underline;"&gt;without a jump&lt;/span&gt;. &lt;br /&gt;
&lt;br /&gt;
Here is the code:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#include "zcommon.acs"
//====================================

#define FRACBITS 16 
#define MAXRADIUS 320.0

str projectiles[6] = {"DoomImpBall", "CacodemonBall", "ArachnotronPlasma", "PlasmaBall", "BaronBall", "Rocket"};

//---------------
int ar_r[1300];
int ar_x[1300];
int ar_y[1300];
//---------------

script 5 (int tid, int type, int quantity)
{
    quantity = random(8, 30);
    type = random(1,6);
    tid=1;
    int steps, i, x, y, dx, dy;
    steps = 40;
    int index_r, index_x, index_y;
    index_r=0; index_x=0; index_y=0;
    int circle_radius = random(94.0, MAXRADIUS);
    int radius;
    int basex = GetActorX(tid);
    int basey = GetActorY(tid);
    int basez = GetActorZ(tid);
    int spawnX, SpawnY;
    int angle;
    int zAngle;
    //int x_angle=0;
    int r_tag = 699;

    Switch(1)
    {
        case 1: // SPHERE &lt;a href="http://pastebin.com/L6FdWkV3"&gt;http://pastebin.com/L6FdWkV3&lt;/a&gt;
        for (int z1 = 0; z1 &amp;lt; quantity; ++z1)
        {
            zAngle = FixedDiv(z1 &amp;lt;&amp;lt; FRACBITS, ((quantity-1)*2) &amp;lt;&amp;lt; FRACBITS);
            for (int n1 = 0; n1 &amp;lt; quantity; ++n1)
            {
                //------------------------------------------------------
                angle = FixedDiv(n1 &amp;lt;&amp;lt; FRACBITS, quantity &amp;lt;&amp;lt; FRACBITS);
                radius = FixedMul(circle_radius, sin(zAngle));
                spawnX = FixedMul(radius,cos(angle));
                spawnY = FixedMul(radius,sin(angle));
                //------------------------------------------------------
                ar_r[index_r] = radius;
                ar_x[index_x] = spawnX;
                ar_y[index_y] = spawnY;             
                //------------------------------------------------------
                ++r_tag; ++index_r; ++index_x; ++index_y;
                //------------------------------------------------------
                Spawn(projectiles[type-1], basex + spawnX - 1000.0, 
                                             basey + spawnY, 
                                             basez + circle_radius + FixedMul(FixedMul(circle_radius, 0.82), cos(zAngle)), 
                                             r_tag, (angle + 1.0)&amp;gt;&amp;gt;8);
                //------------------------------------------------------------------------------------------
                print(s:"projectile: ", d:r_tag, s:" radius: ", f:ar_r[index_r-1], s:" index: ", d:index_r);
                //------------------------------------------------------------------------------------------
                delay(2);  
            }      
        }
        break;
    }
    //---------------------------------------------------------------------------------------------------
    for(int k = 700; k &amp;lt;= r_tag; ++k)
    {
        radius = ar_r[k-700];
        for (i=0; i&amp;lt;steps; i++)
        {
            angle = FixedDiv(i &amp;lt;&amp;lt; FRACBITS, steps &amp;lt;&amp;lt; FRACBITS);
            x = FixedMul(radius,cos(angle));
            y = FixedMul(radius,sin(angle));
            dx = x - ar_x[k-700];
            dy = y - ar_y[k-700];
        ar_x[k-700] = x;
        ar_y[k-700] = y;
            SetActorVelocity(k, dx, dy, 0, FALSE, TRUE);
            delay(1);
        }
    //delay(1);
    }
}&lt;/pre&gt;&lt;br /&gt;
Additional commands: &lt;a href="http://zdoom.org/wiki/Spawn"&gt;Spawn&lt;/a&gt;, &lt;a href="http://zdoom.org/wiki/FixedDiv"&gt;FixedDiv&lt;/a&gt;, &lt;a href="http://zdoom.org/wiki/FixedMul"&gt;FixedMul&lt;/a&gt;, &lt;a href="http://zdoom.org/wiki/SetActorVelocity"&gt;SetActorVelocity&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I think they jump to starting point because for every point angle is counted from 0. IMHO, as there are steps/quntity steps in each part, it should be added to angle count. I don't know how and I don't know if am I right. I need your help to investigate the problem and find a solution.&lt;br /&gt;
&lt;br /&gt;
1. To see what is really happening you need a game WAD: &lt;a href="http://www.mediafire.com/?61ll4oasdbwlqn8"&gt;For worst&lt;/a&gt;&lt;br /&gt;
The file is attached here too.&lt;br /&gt;
&lt;br /&gt;
2. To play that wad you need the game istelf: &lt;a href="http://zdoom.org/files/zdoom/2.5/zdoom-2.5.0.zip"&gt;ZDOOM&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. To edit game map space or ACS script you need: &lt;a href="http://www.doombuilder.com/files/builder168_setup.exe"&gt;Doom builder&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4. Here is a picture to better understand the view and maybe to see what's wrong. It's a view from top to bottom: &lt;img src="http://img864.imageshack.us/img864/9449/sphererotatioprob.png" /&gt;&lt;br /&gt;
&lt;br /&gt;
I look forward to hearing from you. &lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2031"&gt;for worst.zip&lt;/a&gt; (1012339 bytes | downloaded 43 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/422676/422676/sphere-formation--its-rotation-problem/</guid>
      <pubDate>Wed, 23 Mar 2011 07:06:10 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>board game in flash</title>
      <link>http://www.programmersheaven.com/mb/newbies/419889/419889/board-game-in-flash/</link>
      <description>I'm making a simple board game in Flash (using Actionscript 3), and I'm not sure how to get the counter/board piece to go around the board. Its really simple, all that needs to happen is to roll a dice (thats the easy part, obviously) and then get the piece to move that many places along the board. I've seen a few ways to do this, but ive struggled to follow exactly how to do them and i would like to know the most effective way. Any help would be greatly appreciated.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/419889/419889/board-game-in-flash/</guid>
      <pubDate>Tue, 23 Nov 2010 23:52:39 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: lets make a game , calling all newbies!!</title>
      <link>http://www.programmersheaven.com/mb/newbies/306767/419585/re-lets-make-a-game--calling-all-newbies/#419585</link>
      <description>I'm really excited about your idea! I'm still beginning in game programming and I'm using XNA3.1 VB. Actually it's a college course and I'm forced to take it =="&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/306767/419585/re-lets-make-a-game--calling-all-newbies/#419585</guid>
      <pubDate>Mon, 08 Nov 2010 06:06:55 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/newbies/419105/419179/this-post-has-been-deleted/#419179</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/419105/419179/this-post-has-been-deleted/#419179</guid>
      <pubDate>Sun, 17 Oct 2010 10:05:50 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>places in game problem</title>
      <link>http://www.programmersheaven.com/mb/newbies/419105/419105/places-in-game-problem/</link>
      <description>Hi!&lt;br /&gt;
I am making a 2D game (using Allegro and C++) and I have such a problem. In a typical game appear lots of different places. And if we are in a one place there is no need to keep in memory bitmaps, variables etc. which are necessery in the other one. And my question is how to make passages between different places and how to solve the problem with keeping in memory variables of different places.&lt;br /&gt;
&lt;br /&gt;
As for now my only idea is to create a variable (let's call it place) which keeps the number of place and make in the main game loop something like this&lt;br /&gt;
&lt;br /&gt;
while(game){&lt;br /&gt;
&lt;br /&gt;
if(place==1){&lt;br /&gt;
//things happen in place number 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
else if(place==2){&lt;br /&gt;
//things happen in place number 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
... etc.&lt;br /&gt;
&lt;br /&gt;
else if(place==){&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
But as I know my programming abilities there should be easier solution of my problem. Thanks very much in advance for any help. &lt;br /&gt;
&lt;br /&gt;
PS. Sorry for my English but it's not my native language.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/419105/419105/places-in-game-problem/</guid>
      <pubDate>Wed, 13 Oct 2010 04:47:48 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: lets make a game , calling all newbies!!</title>
      <link>http://www.programmersheaven.com/mb/newbies/306767/415585/re-lets-make-a-game--calling-all-newbies/#415585</link>
      <description>Do you want to use the PS3 APIs or develop it in Linux?  I have a playstation 3 that I've done a little programming for.  I haven't ever used the Sony API, I've always used Linux.  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/306767/415585/re-lets-make-a-game--calling-all-newbies/#415585</guid>
      <pubDate>Sat, 17 Apr 2010 13:15:17 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: lets make a game , calling all newbies!!</title>
      <link>http://www.programmersheaven.com/mb/newbies/306767/415579/re-lets-make-a-game--calling-all-newbies/#415579</link>
      <description>Hey I have a idea I'm making a video game called Hybrid Chaos it's a RPG I wnat on the &lt;br /&gt;
&lt;br /&gt;
Ps3 also I was thinks that work on this would be cool if itls ok with everbody   &lt;br /&gt;
&lt;br /&gt;
also the team name is Evolution Dragon Studios   &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/306767/415579/re-lets-make-a-game--calling-all-newbies/#415579</guid>
      <pubDate>Sat, 17 Apr 2010 04:06:50 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Please clarify</title>
      <link>http://www.programmersheaven.com/mb/newbies/360252/404568/please-clarify/#404568</link>
      <description>what help do you actually need?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/360252/404568/please-clarify/#404568</guid>
      <pubDate>Sat, 10 Oct 2009 21:04:45 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>commands</title>
      <link>http://www.programmersheaven.com/mb/newbies/401199/401199/commands/</link>
      <description>im creating a game where i have a character and once he gets a certain item i go to an entirely new section of code with alot of the same variables and objects&lt;br /&gt;
im looking for an alternate solution&lt;br /&gt;
or a command to clear everything prior to said command and allow the program to read code after it without ending like the command end would do&lt;br /&gt;
help?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/401199/401199/commands/</guid>
      <pubDate>Tue, 29 Sep 2009 17:29:14 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Interview</title>
      <link>http://www.programmersheaven.com/mb/newbies/350419/396880/interview/#396880</link>
      <description>Dear Mr. programmer. Im doing a school project and i would like to interview you and ask you a few questions about your job..please email me at    villasenorjacob1989@yahoo.com&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/350419/396880/interview/#396880</guid>
      <pubDate>Tue, 08 Sep 2009 18:32:09 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/newbies/306767/396797/this-post-has-been-deleted/#396797</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/306767/396797/this-post-has-been-deleted/#396797</guid>
      <pubDate>Mon, 07 Sep 2009 22:38:31 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: lets make a game , calling all newbies!!</title>
      <link>http://www.programmersheaven.com/mb/newbies/306767/392848/re-lets-make-a-game--calling-all-newbies/#392848</link>
      <description>if you are interested in game developement try the game creators they have a game engine called dark GDK. it uses c++ which is not to hard to get to grips with. it is free for indy developers and is very easy to use.&lt;br /&gt;
&lt;br /&gt;
I will help people with getting started and to understand the consept of game making but i do not have the time to help build the game as i have a lot of other work on at the moment.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/306767/392848/re-lets-make-a-game--calling-all-newbies/#392848</guid>
      <pubDate>Thu, 25 Jun 2009 08:51:05 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>game power meter</title>
      <link>http://www.programmersheaven.com/mb/newbies/391181/391181/game-power-meter/</link>
      <description>hi everyone~i just learning how to make a power meter for the game, but i am confusing how does it work and codes stuffs.Does someone give some ideas? thx a lot&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/391181/391181/game-power-meter/</guid>
      <pubDate>Mon, 18 May 2009 22:52:00 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>game power meter</title>
      <link>http://www.programmersheaven.com/mb/newbies/391180/391180/game-power-meter/</link>
      <description>hi everyone~i just learning how to make a power meter for the game, but i am confusing how does it work and codes stuffs.Does someone give some ideas? thx a lot&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/391180/391180/game-power-meter/</guid>
      <pubDate>Mon, 18 May 2009 22:49:42 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Creating 3D game for PSP</title>
      <link>http://www.programmersheaven.com/mb/newbies/390454/390454/creating-3d-game-for-psp/</link>
      <description>Hello! I've got really much free time and I wanna try myself as a game programmer. I thought about writing simple (but good quality:)) game for PSP. I know that it can be written in C++ and I know this language from the university. Do you remember game LBA2 for PC from end of previous century? I'd like my game to be something like 3D or 2D with space effect. I remember from that game that inside the rooms there was one view from the above. And outside (in the world) something like third person camera.&lt;br /&gt;
&lt;br /&gt;
And my question is - do you know anything about creating 3D games for PSP? I mean: what things do I need to learn before even trying to write simple game? What 3D graphical environment/application should I use to create objects and so on? Is 3D Studio Max a good choice? And more important question - how to connect graphical elements with the code? What kind of libraries do I need to use? And how to support connection between PSP and PC if I want to try some network features (like playing together - one person on PC, the other on console)? (I just wanna improve my computer abilities and do something with my free time :D). Summing up, what are the things which I need to learn? Can you suggest any usefull sites or books?&lt;br /&gt;
&lt;br /&gt;
Greetings&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/390454/390454/creating-3d-game-for-psp/</guid>
      <pubDate>Tue, 05 May 2009 13:37:37 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Nielsen Heuristic principles</title>
      <link>http://www.programmersheaven.com/mb/newbies/390294/390294/nielsen-heuristic-principles/</link>
      <description>anyone knows these Nielsen Heuristic principles to find faults in user interfaces with mobile applications ....&lt;br /&gt;
&lt;br /&gt;
do reply if u know....&lt;br /&gt;
&lt;br /&gt;
i gotta a game to find faults with it using Nielsen Heuristic principles....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
do help me...reply...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/390294/390294/nielsen-heuristic-principles/</guid>
      <pubDate>Sun, 03 May 2009 07:38:20 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: Can't find error in small program</title>
      <link>http://www.programmersheaven.com/mb/newbies/386936/389642/re-cant-find-error-in-small-program/#389642</link>
      <description>where is end function for TestInput() ?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/386936/389642/re-cant-find-error-in-small-program/#389642</guid>
      <pubDate>Wed, 22 Apr 2009 11:48:39 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Re: Physical Requirements for Programmers????</title>
      <link>http://www.programmersheaven.com/mb/newbies/388182/389641/re-physical-requirements-for-programmers/#389641</link>
      <description>If your tattoos are covered by clothing you should be fine.  Piercings .... well I guess it depends on the job.  If you are going to be working directly with customers then I'd say you'd have a harder time getting the job.  Well groomed hair is also a plus.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/388182/389641/re-physical-requirements-for-programmers/#389641</guid>
      <pubDate>Wed, 22 Apr 2009 11:46:12 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Physical Requirements for Programmers????</title>
      <link>http://www.programmersheaven.com/mb/newbies/388182/388182/physical-requirements-for-programmers/</link>
      <description>I was wondering will game or software companies still hire you as a&lt;br /&gt;
programmer if you have tattoes or piercings.And is there a certain style of clothing you should wear?(suit,tie,etc.)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/388182/388182/physical-requirements-for-programmers/</guid>
      <pubDate>Sat, 28 Mar 2009 10:13:10 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
    <item>
      <title>Can't find error in small program</title>
      <link>http://www.programmersheaven.com/mb/newbies/386936/386936/cant-find-error-in-small-program/</link>
      <description>I'M getting the following error when I try to compile this code: "'Function' can only appear in main program."&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;;Draw a ship which can be moved and killed

Graphics 400, 300

;CONSTANTS
Const STARTHITPOINTS = 3
Const SHIP$ = "&amp;lt;-*-&amp;gt;"
Const ESCKEY = 1, SPACEBAR = 57, UPKEY = 200, LEFTKEY = 203, DOWNKEY = 208, RIGHTKEY = 205
Const STARTX = 200, STARTY = 150

;TYPES
Type Ship
		Field x, y
		Field hitpoints
		Field shipstring$
End Type


;INITIALIZATION SECTION
Global cont = 1
Global player.ship = New ship
player\x = STARTX
player\y = STARTY
player\hitpoints = STARTHITPOINTS
player\shipstring = SHIP$


;Game loop
While cont = 1
		Cls
		Text player\x, player\y, player\shipstring$
		
		TestInput()
		DrawHUD()
Wend
;End of loop


;FUNCTION TextInput() - changes the direction or hit points of the player
Function TestInput()

;If player presses left, move him left.
If KeyHit(LEFTKEY)
	player\x = player\x - 3
	If player\x &amp;lt;= 0
			player\x = 10


	EndIf
EndIf

;If player presses right, move him right.
If KeyHit(RIGHTKEY)
		player\x = player\x + 3

If player\x &amp;gt;= 385
		player\x = 380
	EndIf
EndIf

;If player presses up, move him up
If KeyHit(UPKEY)
		
		player\y = playery - 3
		If player\y &amp;lt;= 0
			player\y = 10
	EndIf
EndIf

;If player presses down, move him down.
If KeyHit(DOWNKEY)

		player\y = player\y + 3
		If player\y &amp;gt;= 285
			player\y = 280
	EndIf
EndIf

;If player presses spacebar, remove a hit point

If KeyHit(SPACEBAR)

		player\hitpoints = player\hitpoints - 1
		If player\hitpoints &amp;lt;= 0
				cont = 0
		EndIf
EndIf

;If player presses Esc, set cont to 0, and exit the game
If KeyHit(ESCKEY)
	cont = 0
EndIf


;Function DrawHUD() - draws the user's info in top Right of the screen
Function DrawHUD()
		Text 260, 10, "X position: " + player\x
		Text 260, 20, "Y positoin: " + player\y
		Text 260, 30, "Hitpoints: " + player\hitpoints
End Function&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/newbies/386936/386936/cant-find-error-in-small-program/</guid>
      <pubDate>Sat, 07 Mar 2009 10:21:13 -0700</pubDate>
      <category>Newbie Game Programmers</category>
    </item>
  </channel>
</rss>