Programming :: Bird Eye View Game Shadow

Mar 25, 2011

I've been working on this console-based game (in c) in which the player walks around touches floating orbs which do things etc. And I want to make it so that an object on the map blocks the sight of the player, which is something I haven't tried until now. This is the part of the code which handles this sort of thing :

void uncover(int shadow)
{
int wp,
hp,
xp,
yp,
pp, // point placement
mp, // maximum pp value // (that's what she said)
lp; // light placement .....

This <works> but isn't very nice. What I would like to do is to change the third to last if statement, which is really more of a geometry problem, which could be frased as :
given points (x,y) , (plist[pp].x,plist[pp].y) and (wp,hp) create a conditional which tests weather or not point (wp,hp) is within the shadow cast by light-source (x,y) being blocked by an object at (plist[pp].x,plist[pp].y), [with some width, ~1]
but there isn't a geometry forum, and it's somewhat more related to programming.

View 14 Replies


ADVERTISEMENT

Ubuntu :: Can't Migrate E-mails From T-bird 2 To T-bird 3?

Feb 24, 2010

So after installing T-bird 3, I've pointed it to my old profile folder (which had a different name), and all of the settings seemed to be imported fine: I get all the folder and all of mail accounts, and also when I check e-mail, in status bar at the bottom I see how it successfully connects to all my mail servers and checks them. However, there are a lot of issues in the process:

1. It doesn't download any e-mail (but I know for a fact that there is a lot of it)

2. When connecting to every new server, a message asking me to wait while the folder is being processed pops up. Which happens even on the mail check upon the startup when it is certain that this is the first time it check the e-mail.

3. If an indexing feature is enabled, it hangs up with a message "Determining which messages to index in Sent" or something...My total e-mail folder is about 500 MBs, so it shouldn't be that bad, right?

4. But even if that feature is disabled - and that is the most important problem - all of my folders are empty!

View 4 Replies View Related

Programming :: Game Engines Or Game Studios?

May 6, 2011

Do you know any game engines or game studios that can make adventure games, for instance in the style of Myst (1st person) or in the style of old Sierra games (3rd person), like King's Quest, Space Quest, etc.?I've seen AGI Studio, but it is too old, I'd like to use more modern graphics (although there is no need for 3D).

View 7 Replies View Related

Programming :: Replace A Hash In A Shadow File Not Using Passwd?

Aug 5, 2010

What is the easiest way to replace a hash in a shadow file for one particular user, not using passwd, and when the current password is unknown?

View 3 Replies View Related

Slackware :: After Rebooting The Game Works, But On Ending The Game Several Notification Boxes Remain?

Jun 1, 2010

This game is Java based. After rebooting the game works, but on ending the game several notification boxes remain. If these boxes are not closed in the reverse order that the game opened them, it is no longer possible to close them. Only by killing the Java processes can these notifications be made to close. Also after playing the game, even if all these notifications are closed it is many times necessary to kill the Java process(es) in order to get the game to load again at a later time. I am currently using Slackware 1.30, but a similar problem has existed in several of the past releases.

View 4 Replies View Related

Programming :: Create A Script That Returns A List Of The Users Who Have Never Changed Their Password From /etc/shadow

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow. As I know on linux there is a command "chage" used for find last password change.

View 2 Replies View Related

Programming :: Programming A Game For Console?

Sep 25, 2010

What I want to do is create a game like an old DOS game, but on the debian linux console. I don't know much about linux yet, but I know C. What would be the best library for doing something like this?

View 8 Replies View Related

Programming :: Game Graphics Short Inquiry?

May 28, 2011

I have all of the code written for a text based game but how big of a leap is it from text to graphics? lets just say a 2d engine. Is this a fairly easy task or would it be a bit of effort? I've never done anything with graphics before and would just like a quick idea of how much of a project is graphics vs functionality.

View 5 Replies View Related

Ubuntu :: Thunder Bird Out Going Server?

Aug 17, 2010

think I have a quick question about outgoing server, how do I change the port number, I don't see an option for it anywhere. I kept getting this error when I try to send an email.

Code: Sending of message failed. The message could not be sent because connecting to SMTP server smtp.live.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your SMTP server settings are correct and try again, or contact the server administrator.

View 4 Replies View Related

Ubuntu Networking :: Firefox & T'bird Won't Connect But Can PING

May 2, 2010

I have an Acer Aspire One that worked fine with version 9.* of Ubuntu, then I upgraded to v10.1. Now Thunderbird, Evolution, and Firefox (Namoroku?) can't connect, either wirelessly or by Ethernet cable, to my ISP. I get error messages like "connection timed out" or "cannot find {link}". I can PING my ISP from Terminal, though, and I have the machine set up for dual boot with Windows 7 and Firefox works fine under Windows.

I have no idea what to look for or where to start. Any help would be greatly appreciated.

Here's the output from sudo lshw -c net

*-network
description: Ethernet interface
product: Atheros AR8132 / L1c Gigabit Ethernet Adapter
vendor: Atheros Communications

[Code]....

View 2 Replies View Related

Programming :: How To View An Object File

Aug 14, 2009

Is there any way may be some tools to view and explore contents of .obj files (in a formatted or unformatted way) or an executable. Can we do it using gcc?

View 1 Replies View Related

Programming :: View Stack Of Process?

Mar 1, 2011

If I issue the following and the process doesn't quit, is there a way to view what it's doing with the SIGTERM signal on the stack? Is this done via the pstack command?kill -s SIGTERM <PID>

View 4 Replies View Related

Programming :: View / Edit C Include Path?

Jul 5, 2010

For gcc, it seems that there are multiple include paths like /usr/include and /usr/src/linux/include. How do I check the current include path for gcc via command line? How do I edit it?

What about for cc?

View 9 Replies View Related

Programming :: How To View New Added System Call

Aug 30, 2010

I successfully added a new system call in CentOS Kernel but I don't know where to view it! My kernel version is -2.6.32.5

View 2 Replies View Related

Programming :: Perl Script To View Normal Html Page

Mar 29, 2010

Can anyone please help me write a perl script to view normal html page.

View 5 Replies View Related

Server :: Make VSFTP So One User "bird" Logs Into To A Specific Directory Like /foo

Jan 19, 2011

Im trying to make it so one user "bird" logs into to a specific directory like /foo

View 6 Replies View Related

Fedora :: System Monitor Not Opening / Thunder Bird Opening But Not Showing Any Folder Including Inbox?

Nov 20, 2010

i am using Fedora 14. Once system get hanged during opening a video file so I had to restart the system by pressing restart button. But after restarting there are few problems appearing like system monitor not opening and Thunder bird opening but not showing any folder including inbox.

---------- Post added at 04:54 AM GMT ---------- Previous post was at 04:42 AM GMT ----------

Looks like SElinux has stopped working

View 3 Replies View Related

Software :: Html And Php Editor That Supports Both The Design View And Code View As Like In Dreamviewer?

May 30, 2011

I have been working in macromedia dreamviewer for editing html and php files, Just now I moved to linux system by installing xampp , my question is that I need a best html and php editor that supports both the design view and code view as like in dreamviewer.

View 7 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..

View 8 Replies View Related

Fedora :: Shadow On My Desktop

Apr 7, 2011

There's some sort of shadow on my right desktop. No idea how it got there and it persists through reboots.

View 2 Replies View Related

Ubuntu :: Shadow Under Top Bar Turn Black?

Apr 30, 2011

The shadow that is meant to appear under the bar at the top of the screen in unity seem to be overlaying on top of itself every time and eventually turned black

View 3 Replies View Related

Ubuntu :: Black Shadow Below Task Bar

Jul 26, 2011

getting a black shadow below the taskbar recently in ubuntu 11.04. anybody got an idea how to fix it?

View 5 Replies View Related

Security :: User Appear In /etc/shadow And Not /etc/passwd

Jul 28, 2010

In what cases would a user appear in /etc/shadow and not /etc/passwd

View 2 Replies View Related

Software :: Password Encryption In /etc/shadow?

Jun 16, 2009

I am moving my Linux server from Suse 10 to Ubuntu 9.04 and I moved the significant parts of /etc/shadow, /etc/passwd, and /etc/group over to Ubuntu 9.04. I am not able to login into the computer with the old accounts. The only problem I see is that the old accounts use Blowfish and DES to encrypt the passwords in /etc/shadow, and Ubuntu uses SHA512. If I change the passwords, the accounts will work. However; I have about 300 accounts to move, and I don't want to do that to all of them. I have tired Ubuntu Forums and talked to every linux expert I know, and no one has an answer.

View 7 Replies View Related

Fedora :: Upgrade Left Shadow On KDE Desktop

Jan 31, 2011

I upgraded to F14 from F13, and when the process was complete, I noticed on my desktop, I have a strange drop shadow on the left-hand corner. As if it's shadowing an invisible window. You cannot interact with it, it's not "really" there.It is very annoying, and I can not figure out what it is, or what is causing it. I've checked all my plasma widgets and things like that, but it still persists.

Anyone run into this before or have any ideas?Here is a screenshot showing the shadow, I intentionally set my background to white, so you could see it best. But it shows up on top of any wallpaper. and you can clearly see it underneath translucent term windows/etc.

View 4 Replies View Related

Ubuntu :: How To Enable Shadow For Tooltip Window

Nov 2, 2010

I get used to have shadow for tooltip window in my desktop environment. But from Ubuntu 10.04, the defaut setting disables shadow for tooltip. And I don't feel good about such minor change.So how to enable shadow for tooltip window again? (ubuntu 10.04 + gnome 2.30)

View 1 Replies View Related

Ubuntu :: How To Delete WIndows Shadow Copies VSS

Feb 19, 2011

I deleted Windows from my Notebook and am only rockin Ubuntu on this machine. On the (previously) shared Data Partition, there are dozens of GBs occupied by the Volume Shadow Copy Service backups (which I used with Windows) but now how do I get rid of these?In Windows you could either turn off VSS/Restore under System Protection or alternatively use the Disk Cleanup Utility. How do I do this with Ubuntu?

View 6 Replies View Related

Ubuntu :: Equivalent To Windows Shadow Copy?

Mar 29, 2011

Here at work we've made very good use of Server 2003's Shadow Copy service, which lets me restore users' files quickly and easily using the Previous Versions software--yet takes minimal resources and storage space on the server. I've also heard that the service may be available to users in Windows 7. Is there an equivalent of this in Ubuntu? Something I could set up that would snapshot files on my hard drive every so often, and let me recover deleted files or earlier versions of files?

View 1 Replies View Related

Ubuntu :: Shadow Certain Type Of Window With Emerald

Jul 12, 2011

I'm using this metacity theme along with the included (and AMAZING) emerald theme for the window borders. Just wondering if there's any way I can keep the window borders as they are, but put shadows on for the gnome-panel and my stickynotes? See HERE.When I try to adjust the shadow settings in emerald, it changes everything -- including the window borders, which make the theme look horrible.I know I can specify certain types and classes of windows when using compiz as default window decorator with ccsm, but is there any way to do something like this with emerald?

View 3 Replies View Related

Ubuntu Security :: Can Make New Algorithm For /etc/shadow

Aug 16, 2011

i use SHA-512 algorithm in the /etc/shadow File But i Want to use my lgorithm ..

how i can remove the sha-512 and use my algoritm ? Because no one can des encrypt it !! He Not Know the algorithm method

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved