Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 3 online users. » 0 Member(s) | 1 Guest(s) Bing, Google
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 467
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 746
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 779
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 876
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,043
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,414
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,840
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,644
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,636
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,953
|
|
|
Need Some Help! |
Posted by: WitherSlayer - 01-24-2013, 08:43 PM - Forum: Java
- Replies (3)
|
|
I would like to create a basic game that is kind of like the mario flash games. I'm still testing on some of the concepts, so I created this testing class. I'm trying to get a gravity affect by making the y coodinate lower until it hits the floor using an ".intersects" for the collision. But the box(the box is my test charater) thing just floats in the air and the repaint() command just makes it flash ut it does not move down. I also tried to make the box move using a key listener, but I don't think it even makes it up to that line of code. Here's the code so far:
[code2=java]import java.applet.Applet;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
public class rectPlayer
extends Applet
implements KeyListener{
private static final long serialVersionUID = 1L;
int x = 10;
int y = 10;
Rectangle rect;
Rectangle floor;
public void init()
{
this.addKeyListener(this);
rect = new Rectangle (x,y,50,50);
floor = new Rectangle(0,200,500,10);
}
public void paint(Graphics g)
{
setSize(new Dimension(500,300));
Graphics2D g2 = (Graphics2D)g;
g2.draw(rect);
g2.draw(floor);
if (rect.intersects(floor))
{
y--;
repaint();
}else{
y++;
repaint();
}
}
@SuppressWarnings("unused")
@Override
public void keyPressed(KeyEvent e) {
if (KeyEvent.KEY_PRESSED == KeyEvent.VK_RIGHT)
{
x++;
x++;
}
else if (KeyEvent.KEY_PRESSED == KeyEvent.VK_LEFT){
x--;
x--;
}
else if (KeyEvent.KEY_PRESSED == KeyEvent.VK_UP){
y--;
y--;
}
else if (KeyEvent.KEY_PRESSED == KeyEvent.VK_DOWN){
y++;
y++;
}
}
@Override
public void keyReleased(KeyEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void keyTyped(KeyEvent arg0) {
// TODO Auto-generated method stub
}
}[/code2]
|
|
|
FireBird VOS Programmers Needed |
Posted by: arrelin1 - 01-24-2013, 03:56 PM - Forum: Opportunities
- No Replies
|
|
FireBird is a chain of Virtual Operating Systems I have been developing. I have been developing these for fun, and once for a school project, but now I am ready to take them to the next step! I am asking you, the members and programmers on BP Forums, to help me write the VOS. You will recieve full credit in the setup wizard and the about windows on the main page of the system. Those interested may post below!
VB.Net 2010
High speed internet
|
|
|
FireBird VOS |
Posted by: arrelin1 - 01-24-2013, 03:49 PM - Forum: Your Things
- Replies (2)
|
|
FireBird is a chain of Virtual Operating Systems I have been developing. I have been developing these for fun, and once for a school project, but now I am ready to take them to the next step! I am asking you, the members and programmers on BP Forums, to help me write the VOS. You will recieve full credit in the setup wizard and the about windows on the main page of the system. Those interested may post below!
|
|
|
The Relationship |
Posted by: brandonio21 - 01-23-2013, 06:57 PM - Forum: Share Your Programs
- Replies (2)
|
|
It has been a while since I started a new project that was hosted on BP Forums, so I thought that I'd start a new Java game and leave my update logs in this thread. I think it is fun to do that.
Anyway, inspired by a relationship that I have recently begun with my girlfriend, I have decided to create a rather abstract game. Essentially the player will play the role of a lonely sole whose main objective is to find a friend in the world that they will eventually fall in love with.
THE CONCEPT
You are placed in a mysterious world filled with unrecognizable figures. They are all clustered within their own cliques where everyone behaves in the same manner. These cliques naturally reject the lonely soul that the player has. However, if the player behaves in the right ways, he may gain the attention of those groups. As he gets their attention, they become more recognizable and their behaviors get more complicated. In order to fit in, the player must act like one from the group.
There will be "cliques" for every behavior imaginable. If the player wishes to sit in a corner, maybe he will gain the attention of a psychotic homeless man who only wishes to steal money. The outcome of the player's actions is determined by the interactions he has with the various strangers within this world. These strangers will be randomly selected from a library of behaviors, appearances and attributes.
THE DESIGN
This game will be written in Java and should be playable through a web browser. With that being said, the game should take the form of an applet. The graphics will remain relatively simple and will feature a top down view on a blank, rectangular world. The "people" will take on various shapes such as circles, triangles, rectangles, and squares. The player will be a circle with a dot in the middle.
This simple design will allow me to focus on the mechanics and gameplay of "The Relationship", which should take a decent amount of time to finish.
This game will feature several types of objects, the preliminary design features:
-Behaivors
-Actors
-Player
-Data Objects
-Game Objects (Applets, Canvas, etc).
I will post more as updates develop. Stay tuned!
|
|
|
Surf Shack Code |
Posted by: WitherSlayer - 01-20-2013, 08:43 PM - Forum: Java
- No Replies
|
|
The code will create a random fate of the company SURF-SHACK INC. for a week
[code2=java]//By Zach Manson
package company;
import java.util.Random;
public class SurfShack {
public static void main(String[] args)
{
double rent = 0;
Random rnd = new Random();
int sBoard[] = new int[4];
sBoard[0] = 15;
sBoard[1] = 20;
sBoard[2] = 25;
sBoard[3] = 30;
int towel[] = new int[4];
towel[0] = 4;
towel[1] = 7;
towel[2] = 9;
towel[3] = 20;
int wetsuite[] = new int[8];
wetsuite[0] = 45;
wetsuite[1] = 70;
wetsuite[2] = 100;
wetsuite[3] = 120;
wetsuite[4] = 150;
wetsuite[5] = 175;
wetsuite[6] = 200;
wetsuite[7] = 250;
double gst[] = new double[16];
gst[0] = sBoard[0] / 10;
gst[1] = sBoard[1] / 10;
gst[2] = sBoard[2] / 10;
gst[3] = sBoard[3] / 10;
gst[4] = towel[0] / 10;
gst[5] = towel[1] / 10;
gst[6] = towel[2] / 10;
gst[7] = towel[3] / 10;
gst[8] = wetsuite[0] / 10;
gst[9] = wetsuite[1] / 10;
gst[10] = wetsuite[2] / 10;
gst[11] = wetsuite[3] / 10;
gst[12] = wetsuite[4] / 10;
gst[13] = wetsuite[5] / 10;
gst[14] = wetsuite[6] / 10;
gst[15] = wetsuite[7] / 10;
double company = 0;
int employeesPay = 70;
int week = 0;
System.out.println("STATICSTICS OF SURF-SHACK INC. OVER THE PAST WEEK");
System.out.println(" ");
System.out.println("=============================================================");
while (week < 7)
{
switch(week){
case 0:
System.out.println("Monday");
System.out.println("---------------------------------------------------");
break;
case 1:
System.out.println("Tuesday");
System.out.println("---------------------------------------------------");
break;
case 2:
System.out.println("Wednesday");
System.out.println("---------------------------------------------------");
break;
case 3:
System.out.println("Thursday");
System.out.println("---------------------------------------------------");
break;
case 4:
System.out.println("Friday");
System.out.println("---------------------------------------------------");
break;
case 5:
System.out.println("Saturday");
System.out.println("---------------------------------------------------");
break;
case 6:
System.out.println("Sunday");
System.out.println("---------------------------------------------------");
break;
}
int customers = rnd.nextInt(50);
week++;
switch (rnd.nextInt(16)){
case 0:
rent = (customers * sBoard[0]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * sBoard[0]);
System.out.println("Today the SurfShack made $" + customers * sBoard[0]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[0] * customers);
break;
case 1:
rent = (customers * sBoard[1]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * sBoard[1]);
System.out.println("Today the SurfShack made $" + customers * sBoard[1]);
System.out.println("---------------------------------------------------");
System.out.println("The Goods and Services Tax that was paid was $" + gst[1] * customers);
break;
case 2:
rent = (customers * sBoard[2]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * sBoard[2]);
System.out.println("Today the SurfShack made $" + customers * sBoard[2]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[2] * customers);
break;
case 3:
rent = (customers * sBoard[3]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * sBoard[3]);
System.out.println("Today the SurfShack made $" + customers * sBoard[3]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[3] * customers);
break;
case 4:
rent = (customers * towel[0]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * towel[0]);
System.out.println("Today the SurfShack made $" + customers * towel[0]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[4] * customers);
break;
case 5:
rent = (customers * towel[1]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * towel[1]);
System.out.println("Today the SurfShack made $" + customers * towel[1]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[5] * customers);
break;
case 6:
rent = (customers * towel[2]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * towel[2]);
System.out.println("Today the SurfShack made $" + customers * towel[2]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[6] * customers);
break;
case 7:
rent = (customers * towel[3]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * towel[3]);
System.out.println("Today the SurfShack made $" + customers * towel[3]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[7] * customers);
break;
case 8:
rent = (customers * wetsuite[0]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[0]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[0]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[8] * customers);
break;
case 9:
rent = (customers * wetsuite[1]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[1]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[1]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[9] * customers);
break;
case 10:
rent = (customers * wetsuite[2]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[2]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[2]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[10] * customers);
break;
case 11:
rent = (customers * wetsuite[3]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[3]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[3]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[11] * customers);
break;
case 12:
rent = (customers * wetsuite[4]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[4]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[4]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[12] * customers);
break;
case 13:
rent = (customers * wetsuite[5]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[5]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[5]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[13] * customers);
break;
case 14:
rent = (customers * wetsuite[6]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[6]);
System.out.println("Today the SurfShack made $" + customers * wetsuite[6]);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[14] * customers);
break;
case 15:
rent = (customers * wetsuite[7]) / 10;
company = company - ((employeesPay * 5) + rent) + (customers * wetsuite[7]);
System.out.println("Today the SurfShack made $" + wetsuite[7] * customers);
System.out.println("---------------------------------------------------");
System.out.println("The total Goods and Services Tax that was paid was $" + gst[15]);
break;
}
System.out.println("---------------------------------------------------");
System.out.println("SurfShack inc. is now worth $" + company);
System.out.println("---------------------------------------------------");
System.out.println("The rent was $" + rent);
System.out.println("--------------------------------------------------");
System.out.println("There was " + customers + " customers");
System.out.println("_____________________________________________________________");
}
}
}[/code2]
|
|
|
Updates..? |
Posted by: Ecnarf - 01-19-2013, 10:17 AM - Forum: Programming Help
- Replies (2)
|
|
Hello, I would like to make it so when I update my program and put it up on dropbox in place of the old one it will begin to download it automatically when the user starts the application next. But not only do I want it to do that but I want it to replace the old version. Could one of you guys help me with this?
|
|
|
Anyone else use Linux? Favorite Tweaks? |
Posted by: Derek275 - 01-19-2013, 07:16 AM - Forum: Computing
- Replies (1)
|
|
I was just wondering if I was the only one running Linux and if not, which distro you ran. I run Mint 14 with the Cinnamon interface.
Also, what's your favorite tweak for your distro? Mine's either an animated cat name Oneko chasing my pointer around, or text based versions of Star Wars on command... <!-- s:geek: --><img src="{SMILIES_PATH}/icon_e_geek.gif" alt=":geek:" title="Geek" /><!-- s:geek: -->
|
|
|
JOptionPaneTextWriter |
Posted by: WitherSlayer - 01-17-2013, 07:52 PM - Forum: Java
- No Replies
|
|
This applet will create a text document with whatever you want to write in it!
[code2=java]import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import javax.swing.JOptionPane;
import java.applet.Applet;
public class JOptionpaneTextWriter extends Applet{
private static final long serialVersionUID = 1L;
public static void main(String[]args){
text();
}
public static void text(){
JOptionPane.showMessageDialog(null, "This is the TEXT DOCUMENT CREATOR!");//Title
String message = (JOptionPane.showInputDialog("What would you like the document to say:"));//This takes the users input
File newFile = new File("C:/Documents and Settings/The Bairns/Desktop/newtxt.txt"/*Txt means it will be saved as a notepad file*/);//Where it will be saved an the name
if (newFile.exists())//If the file alreay exists
JOptionPane.showMessageDialog(null, "The file already exists!");//Then this message will come up!
else
{
try
{
newFile.createNewFile();//This creates a new file
}
catch (Exception e)//If somethig goes wrong. But nothing will go wrong becauce it has already checked that the file doesn't exist
{
e.printStackTrace();//Tracer from Star Wars
}
try
{
FileWriter fileW = new FileWriter(newFile);
BufferedWriter buffW = new BufferedWriter(fileW);//The text writer
buffW.write(message);//The message
buffW.close();
JOptionPane.showMessageDialog(null, "File Written!");//Success
}
catch (Exception e)
{
e.printStackTrace();//Another tracer from Star Wars
}
}
}
}[/code2]
Fully commented!
|
|
|
Where is a programs JAR file? |
Posted by: Derek275 - 01-17-2013, 03:47 PM - Forum: Java
- Replies (10)
|
|
I am currently working on a note-taking application, and thought since my dad uses stuff like this alot with his work, I could pass it to him so he could use it. The problem is, I don't want him to have to download Eclipse, open the main class, and compile it to run. So where can I find the main .jar file so he can just click on it and pull it up? Thanks to any and all help!
|
|
|
Nossic Web Hosting |
Posted by: manishshrestha60 - 01-12-2013, 03:50 PM - Forum: Coupons/Savings
- No Replies
|
|
So I found this super cheap hosting service. The Linux hosting for $0.49 per month and windows $0.59 per month. I think this is a good hosting site. I used it for about 2 months now and works 100% fine for. There is a free host also for the people who don't want to pay.
check it out
<!-- m --><a class="postlink" href="http://hosting.nossicsystems.com">http://hosting.nossicsystems.com</a><!-- m -->
|
|
|
|