Jump to content

  • Log In with Google      Sign In   
  • Create Account


Kk1496

Member Since 21 Jan 2013
Offline Last Active Aug 05 2014 11:58 PM

Topics I've Started

Images

29 July 2014 - 08:14 PM

I have an image that i'm using as a header on a website so, i need it to appear on each page. I got the image to appear on the home page. However, when I copy and pasted the code for the image, it doesn't appear on the net page. Is there some rule about using the image twice? is their a better way to go about doing this?

 

<div>
<img src="../IMG/logo.png" alt="Summer Employment Experience logo" width="100%"/>
</div>
 

Xcode Can't find freeglut

23 July 2014 - 08:06 PM

I installed free glut and flew using MacPort. Then, i followed the instructions on Lazy foo for setting up the linker and lib and includes. 

 

When i use

 

#include <OpenGL/freeglut.h>

 

It can't find the file.

Is there a different set of instructions for setting up Xcode when I use MacPort?


Christian games

21 July 2014 - 05:03 PM

I've had an idea for a Christian game for about a year. The goal of this game would be to tell the story of the Bible through an RPG. The game was inspired by "The Bible" mini series. I liked the idea that you got to watch the story events happen. In a game, you would be able to be a part of the story.

I know that Christian games are not very popular. I find it a bit sad that a lot of them are either rhythmic music games or old NES games. So, I was wondering what y'all might think of this idea.

I know this is a really big idea because the story is so huge. I would probably turn it into a series if people showed interest in it.

So, basically:
Thoughts/ feelings
Suggestions (tittles, mechanics)
Would you play it?

Text adventure user input

29 June 2014 - 03:26 PM

I am trying to allow the player to travel to different rooms. Each room (t1, t2, and t3) has a vector of exits. When I run the program, the player is able to travel to a room. However, it automatically places the user back in the starter room. Is there a better way that i should be checking this?
 
Character test = new Character ("Test", "Sample character", t1, null);
test.printCharacter();
 
t1.printLocation();
 
Scanner input = new Scanner(System.in);
test.setCommand(input.nextLine());
 
//Options for t1
if (test.getCommand().equals(t1.getExits().get(0).getDirName())) {
test.setLocation(t2);
t2.printLocation();
t2.visited = true;
}
 
if (test.getCommand().equals(t1.getExits().get(1).getDirection())) {
test.setLocation(t3);
t3.printLocation();
t3.visited = true;
}
 
while (test.getLocation() != t1){
//Options for t2
if (test.getCommand().equals(t2.getExits().get(0).getDirection())) {
test.setLocation(t1);
t1.printLocation();
}
 
//Options for t3
if(test.getCommand().equals(t3.getExits().get(0).getDirName())) {
test.setLocation(t1);
t1.printLocation();
}
}
 
if ((t2.visited == true) && (t3.visited)) {
input.close();
}
}
 

Accessing components

25 June 2014 - 10:13 PM

If I had a class A with child classes B and C (possible components) how would I add one of those components when I create an instance of A in main? Am I going about this the wrong way?

PARTNERS