Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 56
  1. #31
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by kongamonga View Post
    Because you Love Computer...?

    Well
    First Start with Visual Basic and then try to use C++.
    That how i get started
    Why Vb...?

  2. #32
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    37
    My Mood
    Psychedelic
    Batch, Vb.net, c#,c,c++,Asm

    thats the order i did it not including

    ruby html php java css perl

  3. #33
    RagedYet's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    California
    Posts
    221
    Reputation
    -3
    Thanks
    34
    My Mood
    Devilish
    Quote Originally Posted by kongamonga View Post
    Because you Love Computer...?

    Well
    First Start with Visual Basic and then try to use C++.
    That how i get started
    vb.net is worthless he wants to make hacks lmao ? C++ Optional (d3d,opengl)
    if you want to release other shit b4 others and make your own ideas alsolearn Assembly and reverse enginering to get your own addies



  4. #34
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    Actually, Java is a great language. Maybe not for hacking combat arms, but video games are only a miniscule part of computer science. And even then you can make your own games (runescape for example).

    The reason Java is a great language to learn, especially for a career, is because:
    1. It works on all platforms (Windows, Linux, Mac, etc.)
    2. It is used extensively throughout the internet
    3. You can make apps for cell phones*
    4. Cell phones are programmed with Java
    5. Cars are programmed with Java
    6. The syntax is very similar to C++, so it makes it easier to learn
    7. You can make applet based video games - similar to how d3d is used
    8. You can make desktop applications - similar to VB/C#

    There are a lot more I just can't think of anymore off the top of my head right now.

    Java is a relatively newer language that is based off of C/C++ and is rapidly expanding it's capabilities.

    *There is someone I know that made $120,000 last year making cell phone apps. He is 15. Get the picture?

    As a side note I find VB a "meh" language, but it does have its uses.
    Last edited by LightzOut; 09-14-2010 at 06:58 PM.

  5. #35
    tempta43's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    983
    Reputation
    23
    Thanks
    294
    My Mood
    Bored
    01010111011000010110100100100000011101110110100101 11010001101000001000000110000101101100011011000010 00000110010001100001001000000110001001101001011011 1001100001011100100111100100111111

    Learn VB, first.
    Easiest and it'll let you get the hang of things (Y)

    I'M BACK.. I guess. :S

  6. #36
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    pff... Learn TI-BASIC, then you'll know basic program structure and how to optimize your code.

  7. #37
    cruizrisner's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    382
    Reputation
    22
    Thanks
    48
    VB is crap lol
    Java is slow and i really dont like it
    C++ is ultra powerful and great for perfomance code and is more difficult then other languages and if you know C++ then you will easily learn other languages. in fact learning C++ is like learning 2 languages at once, C++ and C, since C++ is just C optimized for OOP.
    also it is a great idea to learn assembly, it really does make you alot smarter when it comes to computer science and programming.

  8. #38
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    Quote Originally Posted by cruizrisner View Post
    VB is crap lol
    Java is slow and i really dont like it
    C++ is ultra powerful and great for perfomance code and is more difficult then other languages and if you know C++ then you will easily learn other languages. in fact learning C++ is like learning 2 languages at once, C++ and C, since C++ is just C optimized for OOP.
    also it is a great idea to learn assembly, it really does make you alot smarter when it comes to computer science and programming.
    Two languages at once? LOL.

  9. #39
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by mmbob View Post
    pff... Learn TI-BASIC, then you'll know basic program structure and how to optimize your code.
    Oh my god! TI Basic! I remember doing that when I was like in 6th grade! I made quite some few games for the calculator that were all over the school. I think a few of them are even on the internet.

  10. #40
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    This is STILL fucking open??

  11. The Following User Says Thank You to DBag4Life69 For This Useful Post:

    whit (09-15-2010)

  12. #41
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by cruizrisner View Post
    VB is crap lol
    Java is slow and i really dont like it
    C++ is ultra powerful and great for perfomance code and is more difficult then other languages and if you know C++ then you will easily learn other languages. in fact learning C++ is like learning 2 languages at once, C++ and C, since C++ is just C optimized for OOP.
    also it is a great idea to learn assembly, it really does make you alot smarter when it comes to computer science and programming.
    Vb Aint Crap...
    Java Is Awesome Learning It In School Atm..
    C++ Is The C&p ' D Language Of The World..

  13. #42
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    http://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    Quote Originally Posted by whit View Post


    Vb Aint Crap...
    Java Is Awesome Learning It In School Atm..
    C++ Is The C&p ' D Language Of The World..
    true dude i am taking java in school...
    its also easy if you pay attention to teacher


    Here is a greeting app made in java.
    Really simple and small.

    Code:
    /**
     * The Greeting class displays a greeting.
     */
    public class Greeting {  //start class definition
    
     public static void main(String[] args) {
      System.out.println("Hello, world!");
     }
    
    }       //end class definition
    Last edited by UGodly; 09-15-2010 at 04:28 PM.

  14. #43
    Kanye's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Niggerville
    Posts
    3,294
    Reputation
    136
    Thanks
    217
    My Mood
    Breezy
    learn it all,, totally worth it.

  15. #44
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    Lol I was bored so I made this pong game /

    Code:
    /* 
     * Coded from scratch by LightzOut
     * Date started: 9/15/10
     * Date finished: 9/15/10
     * Total Time: 32 minutes
     * Name: Pong
    */
    
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.Color;
    import java.applet.*;
    import java.awt.Image;
    
    public class Pong extends Applet implements KeyListener, MouseListener, MouseMotionListener
    {
    	Image backbuffer;
    	Image blackBG;
    	private Graphics backg;
    	private int xBall;
    	private int yBall;
    	private int xPad;
    	private int yPad;
    	private int xPos;
    	private int yPos;
    	private int clickX;
    	private int clickY;
    	private int xOffset;
    	private int yOffset;
    	private int xAIPad;
    	private int yAIPad;
    	private int hitCount;
    	private int score_AI;
    	private int score_USER;
    	private int buttonTextX;
    	private int buttonTextY;
    	private boolean moveUp;
    	private boolean moveDown;
    	private boolean padMoveDir;
    	private boolean padMoveDir1;
    	private boolean startGame;
    	private boolean gameOver;
    	private String buttonText;
    	
    	public void init()
    	{
    		xBall = 225;
    		yBall = 350;
    		xPad = 1000;
    		yPad = 350;
    		xAIPad = 200;
    		yAIPad = 350;
    		xOffset = 8;
    		yOffset = 8;
    		hitCount = 0;
    		score_AI = 0;
    		score_USER = 0;
    		buttonTextY = 405;
    		startGame = false;
    		gameOver = false;
    		moveUp = false;
    		moveDown = false;
    		addKeyListener(this);
    		addMouseListener(this);
    		addMouseMotionListener(this);
    		backbuffer = createImage(getSize().width, getSize().height); 
    		backg = backbuffer.getGraphics();
    		blackBG = getImage(getCodeBase(), "blackBG.png");
    		System.out.println(getCodeBase());
    	}
    	public void paint(Graphics g)
    	{
    		update(g);
    	}
    	public void update(Graphics g)
    	{
    		backg.setColor(Color.WHITE);
    		map();
    		ball();
    		paddle();
    		AIpaddle();
    		status();
    		xhair();
    		g.drawImage(backbuffer, 0,0, this); 
    		try {
    			Thread.sleep(10);
    		} catch(InterruptedException e) {}
    		repaint();
    	}
    	public void map()
    	{
    		backg.drawImage(blackBG, 0, 0, 1200, 800, this);
    		backg.drawRect(1, 1, 1198, 798);
    		if(!startGame && !gameOver)
    		{
    			if(score_USER > 0 || score_AI > 0)
    			{
    				buttonText = "Continue";
    				buttonTextX = 577;
    			}
    			else
    			{
    				buttonText = "Start";
    				buttonTextX = 588;
    			}
    			backg.drawRect(550, 375, 100, 50);
    			backg.drawString(buttonText, buttonTextX, buttonTextY);
    		}
    		if(gameOver)
    		{
    			if(score_USER > score_AI)
    				backg.drawString("YOU WON! GOOD JOB!", 580, 380);
    			else
    				backg.drawString("YOU LOST! FAILURE!", 580, 380);
    		}
    		backg.drawString("Hit Count: " + hitCount, 575, 750);
    	}
    	public void ball()
    	{
    		if(startGame && !gameOver)
    		{
    			if(xBall < 195)
    			{
    				score_USER++;
    				if(score_USER == 21)
    					gameOver = true;
    				xBall = xPad - 25;
    				yBall = yPad + 50;
    				xOffset = -8;
    				startGame = false;
    			}
    			if(xBall > 1005)
    			{
    				score_AI++;
    				if(score_AI == 21)
    					gameOver = true;
    				xBall = xAIPad + 25;
    				yBall = yAIPad + 50;
    				xOffset = 8;
    				startGame = false;
    			}
    			xBall += xOffset;
    			yBall += yOffset;
    			if(yBall >= yPad - 75 && yBall <= yPad + 50 && xBall >= xPad - 25)
    			{
    				hitCount++;
    				xOffset = -xOffset;
    				if(padMoveDir == false)
    					yOffset = 8;
    				if(padMoveDir == true)
    					yOffset = -8;
    			}
    			if(yBall >= yAIPad - 75 && yBall <= yAIPad + 50 && xBall <= xAIPad + 25)
    			{
    				hitCount++;
    				xOffset = -xOffset;
    				if(padMoveDir1 == false)
    					yOffset = 8;
    				if(padMoveDir1 == true)
    					yOffset = -8;
    			}
    			if(yBall < 0 || yBall > 760)
    				yOffset = -yOffset;
    			if(xBall < 0 || xBall > 1175)
    				xOffset = -xOffset;
    			backg.fillArc(xBall, yBall, 25, 25, 0, 360);
    		}
    	}
    	public void paddle()
    	{
    		if(startGame && !gameOver)
    		{
    			if(yPad < yPos)
    			{
    				padMoveDir = false;
    				yPad += 7;
    			}
    			if(yPad > yPos)
    			{
    				padMoveDir = true;
    				yPad -= 7;
    			}
    		/*	if(moveUp == true)
    				yPad -= 5;
    			if(moveDown == true)
    				yPad += 5;*/
    			backg.fillRect(xPad, yPad - 50, 25, 100);
    		}
    	}
    	public void AIpaddle()
    	{
    		if(startGame && !gameOver)
    		{
    			if(yAIPad < yBall)
    			{
    				padMoveDir1 = false;
    				yAIPad += 7;
    			}
    			if(yAIPad > yBall)
    			{
    				padMoveDir1 = true;
    				yAIPad -= 7;
    			}
    			backg.fillRect(xAIPad, yAIPad - 50, 25, 100);
    		}
    	}
    	public void status()
    	{
    		backg.drawString("AI: " + score_AI, 380, 50);
    		backg.drawString("USER: " + score_USER, 820, 50);
    	}
    	public void xhair()
    	{
    		Frame browserFrame;
    		Component parentComponent;
    		parentComponent = getParent();
    		while ( parentComponent != null && 
    		         !(parentComponent instanceof Frame)) {      
    		  parentComponent = parentComponent.getParent();
    		}
    		browserFrame = (Frame) parentComponent;         
    		browserFrame.setCursor(Frame.CROSSHAIR_CURSOR);
    		/*
    			 -:CURSOR OPTIONS:-
    			 CROSSHAIR_CURSOR, DEFAULT_CURSOR, 
    			 E_RESIZE_CURSOR, HAND_CURSOR
    			 MOVE_CURSOR, N_RESIZE_CURSOR, 
    			 NE_RESIZE_CURSOR, NW_RESIZE_CURSOR;
    			 S_RESIZE_CURSOR,SE_RESIZE_CURSOR, 
    			 SW_RESIZE_CURSOR, TEXT_CURSOR,
    			 W_RESIZE_CURSOR, WAIT_CURSOR
    		 */
    	}
    	public void mouseClicked(MouseEvent e)
    	{
    		if(!startGame)
    		{
    			clickX = e.getX();
    			clickY = e.getY();
    			if(clickX >= 550 && clickX <= 650 && clickY >= 375 && clickY <= 415)
    				startGame = true;
    			repaint();
    			e.consume();
    		}
    	}
    	public void keyPressed(KeyEvent e)
    	{
    		if(startGame && !gameOver)
    		{
    			if(e.getKeyCode() == KeyEvent.VK_UP)
    				moveUp = true;
    			if(e.getKeyCode() == KeyEvent.VK_DOWN)
    				moveDown = true;
    			repaint();
    			e.consume();
    		}
    	}
    	public void keyReleased(KeyEvent e)
    	{
    		moveUp = false;
    		moveDown = false;
    		repaint();
    	}
    	public void mouseMoved(MouseEvent e)
    	{
    		xPos = e.getX();
    		yPos = e.getY();
    		repaint();
    		e.consume();
    	}
    	public void mouseDragged(MouseEvent e){}
    	public void mouseEntered(MouseEvent e){}
    	public void mouseExited(MouseEvent e){}
    	public void mousePressed(MouseEvent e){}
    	public void mouseReleased(MouseEvent e){}
    	public void keyTyped(KeyEvent e){}
    }

  16. #45
    Kanye's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Niggerville
    Posts
    3,294
    Reputation
    136
    Thanks
    217
    My Mood
    Breezy
    Quote Originally Posted by LightzOut View Post
    Lol I was bored so I made this pong game /

    Code:
    /* 
     * Coded from scratch by LightzOut
     * Date started: 9/15/10
     * Date finished: 9/15/10
     * Total Time: 32 minutes
     * Name: Pong
    */
    
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.Color;
    import java.applet.*;
    import java.awt.Image;
    
    public class Pong extends Applet implements KeyListener, MouseListener, MouseMotionListener
    {
    	Image backbuffer;
    	Image blackBG;
    	private Graphics backg;
    	private int xBall;
    	private int yBall;
    	private int xPad;
    	private int yPad;
    	private int xPos;
    	private int yPos;
    	private int clickX;
    	private int clickY;
    	private int xOffset;
    	private int yOffset;
    	private int xAIPad;
    	private int yAIPad;
    	private int hitCount;
    	private int score_AI;
    	private int score_USER;
    	private int buttonTextX;
    	private int buttonTextY;
    	private boolean moveUp;
    	private boolean moveDown;
    	private boolean padMoveDir;
    	private boolean padMoveDir1;
    	private boolean startGame;
    	private boolean gameOver;
    	private String buttonText;
    	
    	public void init()
    	{
    		xBall = 225;
    		yBall = 350;
    		xPad = 1000;
    		yPad = 350;
    		xAIPad = 200;
    		yAIPad = 350;
    		xOffset = 8;
    		yOffset = 8;
    		hitCount = 0;
    		score_AI = 0;
    		score_USER = 0;
    		buttonTextY = 405;
    		startGame = false;
    		gameOver = false;
    		moveUp = false;
    		moveDown = false;
    		addKeyListener(this);
    		addMouseListener(this);
    		addMouseMotionListener(this);
    		backbuffer = createImage(getSize().width, getSize().height); 
    		backg = backbuffer.getGraphics();
    		blackBG = getImage(getCodeBase(), "blackBG.png");
    		System.out.println(getCodeBase());
    	}
    	public void paint(Graphics g)
    	{
    		update(g);
    	}
    	public void update(Graphics g)
    	{
    		backg.setColor(Color.WHITE);
    		map();
    		ball();
    		paddle();
    		AIpaddle();
    		status();
    		xhair();
    		g.drawImage(backbuffer, 0,0, this); 
    		try {
    			Thread.sleep(10);
    		} catch(InterruptedException e) {}
    		repaint();
    	}
    	public void map()
    	{
    		backg.drawImage(blackBG, 0, 0, 1200, 800, this);
    		backg.drawRect(1, 1, 1198, 798);
    		if(!startGame && !gameOver)
    		{
    			if(score_USER > 0 || score_AI > 0)
    			{
    				buttonText = "Continue";
    				buttonTextX = 577;
    			}
    			else
    			{
    				buttonText = "Start";
    				buttonTextX = 588;
    			}
    			backg.drawRect(550, 375, 100, 50);
    			backg.drawString(buttonText, buttonTextX, buttonTextY);
    		}
    		if(gameOver)
    		{
    			if(score_USER > score_AI)
    				backg.drawString("YOU WON! GOOD JOB!", 580, 380);
    			else
    				backg.drawString("YOU LOST! FAILURE!", 580, 380);
    		}
    		backg.drawString("Hit Count: " + hitCount, 575, 750);
    	}
    	public void ball()
    	{
    		if(startGame && !gameOver)
    		{
    			if(xBall < 195)
    			{
    				score_USER++;
    				if(score_USER == 21)
    					gameOver = true;
    				xBall = xPad - 25;
    				yBall = yPad + 50;
    				xOffset = -8;
    				startGame = false;
    			}
    			if(xBall > 1005)
    			{
    				score_AI++;
    				if(score_AI == 21)
    					gameOver = true;
    				xBall = xAIPad + 25;
    				yBall = yAIPad + 50;
    				xOffset = 8;
    				startGame = false;
    			}
    			xBall += xOffset;
    			yBall += yOffset;
    			if(yBall >= yPad - 75 && yBall <= yPad + 50 && xBall >= xPad - 25)
    			{
    				hitCount++;
    				xOffset = -xOffset;
    				if(padMoveDir == false)
    					yOffset = 8;
    				if(padMoveDir == true)
    					yOffset = -8;
    			}
    			if(yBall >= yAIPad - 75 && yBall <= yAIPad + 50 && xBall <= xAIPad + 25)
    			{
    				hitCount++;
    				xOffset = -xOffset;
    				if(padMoveDir1 == false)
    					yOffset = 8;
    				if(padMoveDir1 == true)
    					yOffset = -8;
    			}
    			if(yBall < 0 || yBall > 760)
    				yOffset = -yOffset;
    			if(xBall < 0 || xBall > 1175)
    				xOffset = -xOffset;
    			backg.fillArc(xBall, yBall, 25, 25, 0, 360);
    		}
    	}
    	public void paddle()
    	{
    		if(startGame && !gameOver)
    		{
    			if(yPad < yPos)
    			{
    				padMoveDir = false;
    				yPad += 7;
    			}
    			if(yPad > yPos)
    			{
    				padMoveDir = true;
    				yPad -= 7;
    			}
    		/*	if(moveUp == true)
    				yPad -= 5;
    			if(moveDown == true)
    				yPad += 5;*/
    			backg.fillRect(xPad, yPad - 50, 25, 100);
    		}
    	}
    	public void AIpaddle()
    	{
    		if(startGame && !gameOver)
    		{
    			if(yAIPad < yBall)
    			{
    				padMoveDir1 = false;
    				yAIPad += 7;
    			}
    			if(yAIPad > yBall)
    			{
    				padMoveDir1 = true;
    				yAIPad -= 7;
    			}
    			backg.fillRect(xAIPad, yAIPad - 50, 25, 100);
    		}
    	}
    	public void status()
    	{
    		backg.drawString("AI: " + score_AI, 380, 50);
    		backg.drawString("USER: " + score_USER, 820, 50);
    	}
    	public void xhair()
    	{
    		Frame browserFrame;
    		Component parentComponent;
    		parentComponent = getParent();
    		while ( parentComponent != null && 
    		         !(parentComponent instanceof Frame)) {      
    		  parentComponent = parentComponent.getParent();
    		}
    		browserFrame = (Frame) parentComponent;         
    		browserFrame.setCursor(Frame.CROSSHAIR_CURSOR);
    		/*
    			 -:CURSOR OPTIONS:-
    			 CROSSHAIR_CURSOR, DEFAULT_CURSOR, 
    			 E_RESIZE_CURSOR, HAND_CURSOR
    			 MOVE_CURSOR, N_RESIZE_CURSOR, 
    			 NE_RESIZE_CURSOR, NW_RESIZE_CURSOR;
    			 S_RESIZE_CURSOR,SE_RESIZE_CURSOR, 
    			 SW_RESIZE_CURSOR, TEXT_CURSOR,
    			 W_RESIZE_CURSOR, WAIT_CURSOR
    		 */
    	}
    	public void mouseClicked(MouseEvent e)
    	{
    		if(!startGame)
    		{
    			clickX = e.getX();
    			clickY = e.getY();
    			if(clickX >= 550 && clickX <= 650 && clickY >= 375 && clickY <= 415)
    				startGame = true;
    			repaint();
    			e.consume();
    		}
    	}
    	public void keyPressed(KeyEvent e)
    	{
    		if(startGame && !gameOver)
    		{
    			if(e.getKeyCode() == KeyEvent.VK_UP)
    				moveUp = true;
    			if(e.getKeyCode() == KeyEvent.VK_DOWN)
    				moveDown = true;
    			repaint();
    			e.consume();
    		}
    	}
    	public void keyReleased(KeyEvent e)
    	{
    		moveUp = false;
    		moveDown = false;
    		repaint();
    	}
    	public void mouseMoved(MouseEvent e)
    	{
    		xPos = e.getX();
    		yPos = e.getY();
    		repaint();
    		e.consume();
    	}
    	public void mouseDragged(MouseEvent e){}
    	public void mouseEntered(MouseEvent e){}
    	public void mouseExited(MouseEvent e){}
    	public void mousePressed(MouseEvent e){}
    	public void mouseReleased(MouseEvent e){}
    	public void keyTyped(KeyEvent e){}
    }
    looks like a c+p to me

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. What kind of tutorials should i learn for gfx?
    By melias54 in forum General
    Replies: 11
    Last Post: 08-28-2010, 07:58 PM
  2. What should i learn now?
    By 258456 in forum C++/C Programming
    Replies: 14
    Last Post: 07-02-2010, 03:34 PM
  3. What should i learn?
    By -Jerry™ in forum General
    Replies: 22
    Last Post: 07-22-2009, 08:21 AM
  4. [POLL] what programming language should I learn 1st?
    By aswhooper in forum C++/C Programming
    Replies: 26
    Last Post: 07-19-2009, 12:05 AM
  5. What song should I learn?
    By SheGotIt in forum Spammers Corner
    Replies: 8
    Last Post: 10-29-2008, 06:20 PM