New to game programming

I'm new to game programming, and I am interested in making rpg/mmpog, and I want to know, what are some classes I will need to know well? Does anyone have code I can pick at to help me learn?

I too am new to JAVA, and am trying my hand at a VERY simple RPG. My suggestions, as I've found out over the past few weeks in class.
1 - Get a good book, not all teachers (assuming you're taking a class) are very good, and I've found "Java 2 Complete" By Sybex excellant.
2 - Go slow. Work through the book, learning those sections you think you'll need. I.E. as I found I wanted a GUI, I went through every example of the AWT package, and learned them as I typed.
3 - Stay simple, I am creating my own classes for this (Rooms, Monsters, Players, Items are the only four) and use the array and TextArea classes a lot also.
//Room class
   public class Rooms
      private int exits;
      private String name;
      private int flagN = 1;
      private int falgE = 2;
      private int flagS = 4;
      private int flagW = 8;
      private int flagMonster = 16;
      private int flagItem = 32;
      public Rooms()
         name = "Room One";
         exits = 1;
      public Rooms(String nameIn, byte exitsIn)
         name = nameIn;
         exits = exitsIn;
      public byte getExits()
         return exits;
      public void setExits(byte newexit)
         exits = newexit;
      public String getName()
         return name;
      public void setName(String newName)
         name = newName;
   }In this class, I set up a Room(s) with the name of 'name' and a byte of 'exits' which is how I'm marking the exits and items in a room. I'm not too far along, but I hope some or all of this helps!

Similar Messages

  • Game programming

    I am new to game programming and J2ME. how can i integrate animated clips and application using J2ME>

    Well thats kinda general... In my opinion java is a great language. Just not for games usually. Also what kind of game? 2d or 3d? I would recommend checking out unity for 3D games. I have used it and it is a great tool for people looking to make 3D games without as much work. Plus it supports execution in a browser like an applet kindof. For 2D i usually use flash as it greatly simplifies the process. If your hearts set on Java start off with this- http://www.tutorialized.com/view/tutorial/2D-Java-Platform-Game/10145

  • App store shows new update for program I did not purchase

    App store shows new update for program I did not purchase. This is "CodeBox". When I push button to download update it shows "uknown error". For normal other updates - "update all" not working anymore.
    How to delete this line from updates section now.

    The problem was finally solved. I am writing very simple solution for those who may have same issue. I tried 1st solution proposing to exclude HDD from Spotlight search and then to restore it (delete from exceptions). It worked for some time and removed notification, however later it appeared again. Then I has started thinking that it was caused by data inside some installed SW and it has been proved later. I have started excluding from Sportlight not all HDD but by folder, searching for the problem area. I have discovered that folder Games was causing the issue. Then I have started to delete installed games one by one and have found Game with was triggering this notification (for other SW!). Problem was fixed after deleting this game. Other deleted games could be easily restored from recycle been.

  • Game program - simon sez

    I have a simple game program call simon sez. I have the code completely
    written, but i cant figure out why its not working. I have the area
    in the program that is not working right and have add ********* where
    the problem area is. Can anyone figure out what ive done wrong here???
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.lang.*;
    import sun.audio.*; //import the sun.audio package
    import java.io.*;
    public class SimonMain extends Applet implements ActionListener {
    SimonButton[] simonb = new SimonButton[4];
    SimonButton[] navb = new SimonButton[2];
    SimonButton gob = new SimonButton("GO");
    Label level;
    int levelc;
    int[] levelarray = new int[10];
    int playmode = 1;
    int arraycount=0;
    int whichbutton=0;
    AudioClip snd1;
    AudioClip snd2;
    AudioClip snd3;
    AudioClip snd4;
    AudioClip right;
    AudioClip wrong;
         //Initialize the applet
    public void init() {
    levelc=1;
    snd4=getAudioClip(getDocumentBase(), "three.wav");
    snd3=getAudioClip(getDocumentBase(), "two.wav");
    snd2=getAudioClip(getDocumentBase(), "one.wav");
    snd1=getAudioClip(getDocumentBase(), "zero.wav");
    right=getAudioClip(getDocumentBase(), "right.wav");
    wrong=getAudioClip(getDocumentBase(), "wrong.wav");
    level = new Label("Choose Level: "+Integer.toString(levelc) );
    add(level);
    for(int count=0; count<4;count++)
    simonb[count] = new SimonButton(Integer.toString(count));
    simonb[count].ColorButton(Color.black );
    simonb[count].ColorFont(Color.white);
    simonb[count].addActionListener(this);
    add(simonb[count]);
    for(int count=0; count<2;count++)
    if(count==0)
    navb[count] = new SimonButton("<");
    if(count==1)
    navb[count] = new SimonButton(">");
    navb[count].addActionListener(this);
    add(navb[count]);
    gob.addActionListener(this) ;
    add(gob);
    public void paint(Graphics g) {
    g.drawString ("Simon Sez: Choose your level using arrow buttons and click go to play.Have FUN!!!",10,50);
    public void actionPerformed(ActionEvent event) {
    //test.setText("Button number is " + buttonCaption);
    String command = event.getActionCommand();
         //if (command.equals("Push")){
    if (command == "GO")
    playmode=3;
    switch(playmode)
    case 1: //This is choose level mode
    if (command == "<" )
    if(levelc==1);
    else
    levelc--;
    level.setText("Level: "+Integer.toString(levelc) );
    if (command == ">" )
    if(levelc==10);
    else
    levelc++;
    level.setText("Level: "+Integer.toString(levelc) ) ;
    break;
    case 2: //This is play mode
    //This is where it wont get past my if statement???????????????????????????
    if ( "0"==command)
         {     level.setText("WORKIng"+command);
    simonb[0].ColorFont(Color.red);
    for(int count=0;count<100000000;count++)
              snd1.play();
    simonb[0].ColorFont(Color.white );
    whichbutton=1;
    if((levelarray[arraycount]==whichbutton))
    if(arraycount+1==levelc)
    { right.play();
    playmode=1;
    break;
    arraycount++;
    else
    {   wrong.play();
    arraycount=0;
    if ("1" == command)
    simonb[1].ColorFont(Color.yellow);
    for(int count=0;count<100000000;count++)
              snd2.play();
    simonb[1].ColorFont(Color.white );
    whichbutton=2;
    if((levelarray[arraycount]==whichbutton))
    if(arraycount+1==levelc)
    { right.play();
    playmode=1;
    break;
    arraycount++;
    else
    {   wrong.play();
    arraycount=0;
    if (command == "2" )
    simonb[2].ColorFont(Color.blue);
    for(int count=0;count<100000000;count++)
              snd3.play();
    simonb[2].ColorFont(Color.white );
    whichbutton=3;
    if((levelarray[arraycount]==whichbutton))
    if(arraycount+1==levelc)
    { right.play();
    playmode=1;
    break;
    arraycount++;
    else
    {   wrong.play();
    arraycount=0;
    if (command == "3" )
    simonb[3].ColorFont(Color.pink);
    for(int count=0;count<100000000;count++)
              snd4.play();
    simonb[3].ColorFont(Color.white );
    whichbutton=4;
    if((levelarray[arraycount]==whichbutton))
    if(arraycount+1==levelc)
    { right.play();
    playmode=1;
    break;
    arraycount++;
    else
    {   wrong.play();
    arraycount=0;
    level.setText(command ) ;
    break;
    case 3: //This is generate mode
    arraycount=0;
    whichbutton=0;
    playmode=2;
    for(int count=0;count<levelc;count++)
    levelarray[count]=1+ (int) (Math.random() *4);
    level.setText(Integer.toString(levelarray[count]) );
    for(int count=0;count<levelc;count++)
    if(levelarray[count]==1)
    simonb[0].ColorFont(Color.red);
    for(int countr=0;countr<100000000;countr++)
              snd1.play();
    simonb[0].ColorFont(Color.white );
    if(levelarray[count]==2)
    simonb[1].ColorFont(Color.yellow);
    for(int county=0;county<100000000;county++)
    snd2.play();
    simonb[1].ColorFont(Color.white );
    if(levelarray[count]==3)
    simonb[2].ColorFont(Color.blue);
    for(int countb=0;countb<100000000;countb++)
              snd3.play();
    simonb[2].ColorFont(Color.white );
    if(levelarray[count]==4)
    simonb[3].ColorFont(Color.pink);
    for(int countp=0;countp<100000000;countp++)
              snd4.play();
    simonb[3].ColorFont(Color.white );
    playmode=2;
    } //end of for loop
    playmode=2;
    break;
         //Get Applet information
    public String getAppletInfo() {
              return "Applet Information";
         //Get parameter info
    public String[][] getParameterInfo() {
              return null;
    import java.awt.*;
    import java.awt.event.*;
    public class SimonButton extends Button implements ActionListener{
    public SimonButton(String label) {
    this.setLabel(label) ;
    public void actionPerformed(ActionEvent event) {
    public void ColorButton(Color color){
    this.setBackground(color);
    public void ColorFont(Color color) {
    this.setForeground(color );
    public void paint(Graphics g) {

    you need to replace all occurrances in your code of:
    if(".." == command)....
    with:
    if("..".equalsIngnoreCase(command))...
    When doing string comparison, the equality operator doesn't work. Use the provided method instead

  • Complete beginner: Creating Card Game program

    I am brand new to object oriented programming, i'm trying to write a simple card game program, without using arrays or importing packages or vectors (whatever they all are?). can someone please help me?

    First of all, arrays are a very good idea, as are other datastructures such as the hashtable. But you can also use a String, which is basically an array of characters.
    The initial hurdle you will have in writing a card game will be modelling a single playing card. Your program will likely understand the sequence of cards as 2,3,4,5,6,7,8,9,10,11,12,13, even tho you will want to present this to your user as 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A. Computers deal well with the numbers, Humans like to refer to cards using the familiar symbolic references (J, Q, K, A). Suits likewise will probably be stores as integers (0-3).
    Your program will have to determine whether one playing card is less than or greater than another, whether it is in the same suit, what value the card will have (for BlackJack, for instace). All of these behaviors can be engineered into your PlayingCard class.
    To get going with your card game, you must thus begin an abstraction of the real-word PlayingCard. Start with a class such as this:
    class PlayingCard {
    final static String nums = "234567891JQKA" ;
    final static String [] suits = "DCHS";
    private int num, suit; // i.e. of this instance
    public PlayingCard (String card) { // constructor
    num = values.indexOf(card.charAt(0)) ;
    suit = suits.indexOf(card.charAt(card.length()-1);
    public String toString() {
    return nums.charAt(value)+((num==8)?"0":"")+suits.charAt(suit);
    int value() { return suit*4+num; }
    boolean compareValue(PlayingCard first, PlayingCard second) {
    return first.value() - second.value();
    boolean sameSuitAs(PlayingCard p) {
    return (this.suit == p.suit);
    // etc.
    For a BlackJackPlayingCard, extend PlayingCard and add/override specific behaviors such as counting (i.e. face cards = 10, Ace's two values, etc).
    Have fun. Java is a great language.

  • Object Oriented AS3 game programming - where do I start?

    I’m a programmer familiar with object oriented
    programming, with experience in C++, C# and the MS Visual Studio
    development environment.
    I’ve been tasked to create a web based game using Flash
    CS4 and ActionScript3. I am new to Flash, ActionScript and game
    programming. I have never used previous versions of Flash or
    ActionScript.
    The game will be a single player role playing game. The
    player will have the ability to create an avatar.
    The player will move the avatar from screen to screen based
    on button clicks or drag and drop onto objects in the current
    screen.
    Players must register, and player information will be stored
    in a database backend. Additonal data will be saved to the backend
    database during game play.
    The saved data will be based on player actions in various
    screens, and in some cases data entered in a form on a screen.
    For a first pass a stick figure avatar and screens containing
    simple buttons and simple objects to drag the avatar to will be
    sufficient. I would like to store data in a database tracking
    date/time information, e.g. date/time each screen is
    entered/exited.
    Any links to articles, or better yet, sample code showing
    these concepts would be greatly appreciated – Thanks

    Start is relative term. It took me too long just to find out
    how to "hello the world" so I'll save you that work.
    In Flash (Note: I'm using CS3 but I doubt this part of the
    menu has changed that much)
    1) File -> New -> ActionScript File
    2) Paste in the following:
    package junkdir {
    import flash.display.Sprite;
    public class junktest extends Sprite {
    public function junktest() {
    trace("Hello world");
    3) Save as some_folder/junkdir/junktest // obviously create
    new folder 'junkdir' during this process
    4) File -> New -> Flash File (Action Script 3.0)
    5) In the properties field labeled 'document class' type in
    junkdir.junktest // THIS WAS THE OBSCURE PART
    If the properties field did not automatically open then
    manually open with: Window -> Properties -> Properties
    6) Save this file as 'junk' in some_folder
    7) Control -> Test Movie
    "Hello World" appears in the Output Window. (This also can be
    opened manually)
    Read whatever Adobe online docs gets you involved quickly, I
    like the display objects just for a quick visual high. Most code
    will cut and paste into this 'junk' framework.
    I recommend two O'Reilly books: Actions Script 3.0 Quick
    Reference Guide by Stiller, Shupe, deHaan & Richardson and
    Essential ActionScript 3.0 by Collin Moock.
    Hope this helps. Good luck.

  • Showmount: new-host: RPC: Program not registered

    I always have problem shutting down my solaris system, anytime i issue the shutdown command i always get this error "showmount: new-host: RPC: Program not registered" and the system dows not shutdown instead reboots.
    bash-3.00$ su
    Password:
    # shutdown
    Shutdown started.    Wednesday, March  5, 2008 12:03:30 PM EST
    Broadcast Message from root (pts/3) on new-host Wed Mar  5 12:03:30...
    The system new-host will be shut down in 1 minute
    showmount: new-host: RPC: Program not registered
    Broadcast Message from root (pts/3) on new-host Wed Mar  5 12:04:00...
    The system new-host will be shut down in 30 seconds
    showmount: new-host: RPC: Program not registered
    Do you want to continue? (y or n):

    I think the shutdown command executes "showmount" as part of its execution process and if the nfs deamon is not running at that time, it produces this error. If you just execute "showmount", you'll see the same problem. Check this page:
    http://access1.sun.com/FAQSets/Solarisx86FAQs.html#14
    You should execute shutdown with some parameters:
    # shutdown -i0 -g0 -y
    -y : non-interactive shutdown
    -i0 : init state 0 (for shutdown)
    -g0 : grace period in seconds (0 for immediate, 60 by default)

  • A new start-up program in my Win 8.1: I can't stop it!

    Hi fellows. What about this article?
    In the last couple of days I've been getting loads of email from WinPatrol customers asking what is this strange new start-up program?
    The name is only numbers and no matter how many times I try to block or disable it, it just keeps coming back.
    I noticed that on every machine the number was different. Even on my computer, the number was different every single time, almost like it was either trying to elude being blocked or was a tracking number of some kind.
    Then I received an email from a customer who had discovered this mysterious program is actually "Adobe Speed Launcher". I had not agreed to install this, so I was a bit confused as to it purpose.
    So, I took the plunge and let it run on one of my test machine.
    After letting it run, I saw the below entry for Adobe Speed Launcher was added as a "Run Once" start-up program. Considering this is a RunOnce, my assumption was it would be installing the full-blown "Adobe Speed Laucher" on next system start-up. Now I was curoius.
    I have come this far, lets reboot and see what happens.
      After rebooting, I was waiting for a pop-up installing some new software, but nothing.
    Nothing at all... Interesting.
    While waiting I did some investigation and realized that my local copy of Adobe Reader had been upgraded the day before. Now the pieces are all falling into place.
    I was allowing Adobe to automatically update itself in an effort to protect my system better because as we all know, Adobe has had quite a few vunerabilities over the years.
    Giving Adobe the benefit if the doubt, I was thinking to myself that one pop-up is not that bad.
    Then up came 2 more.
    This time for a new number.
    Frustrated at this, I opened Adobe Reader to see if there was a setting for disabling Adobe Speed Launcher.
    I could not find one.
    Now I was becoming annoyed with Speed Launcher, so I did some research online.
    From what I have read Adobe Speed Launcher was created in order to make Adobe Reader start-up more quickly when you use it. On the surface this sounds good, but I only use Adobe Reader once a month, if that.
    Why do I want it to take up system resources in pre-loading files every single time I start my computer when I will most likely not be using it anyway?
    Now, if they had accomplished the restart of Speed Launcher in a better, more non-obtrusive way, I may not have even noticed it for a while. But, adding new RunOnce keys every time a computer is restarted is a somewhat questionable practice more fitting for adware than a product I want installed on my computer.
    Therefore, because I could not figure out a way of easily disabling Adobe Speed Launcher, I decided to complete remove Adobe Reader XI instead.
    The annoying pop-ups have stopped.
    The next time I need to read a PDF, I will find a reader that is written in a more user-friendly way.
      Thank you for reading, Bret

    Hi,
    We have rolled out a fix for this issue.
    Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
    For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
    Please let us know if you still face any issues.
    Thanks,
    Ashu Mittal

  • New TO JAVA Programming

    Dear Forummembers,
    I am student doing postgraduate studies in IT.i have some queries related to one of my programming staff.i am very much new into Java programming and i am finding it a bit difficult to handle this program.The synopsis of the program is given below -
    You are required to design and code an object-oriented java program to process bookings for a theatre perfomance.
    Your program will read from a data file containing specifications of the performance,including the names of the theatre, the play and its author and the layout of the theatre consisting of the number of seats in each row.
    It will then run a menu driven operation to accept theatre bookings or display the current
    status of seating in the theatre.
    The name of the file containing the details of the performance and the theatre should be
    provided at the command line, eg by running the program with the command:
    java Booking Theatre.txt
    where Theare.txt represents an example of the data file.
    A possible data file is:
    Opera
    U and Me
    Jennifer Aniston
    5 10 10 11 12 13 14
    The data provided is as follows
    Line 1
    Name of the Theatre
    Line 2
    Name of the play being performed
    Line 3
    Name of the author of the play being performed
    Line 4
    A list of the lengths (number of seats) of each row in the theatre, from front to
    back.
    The program must start by reading this file, storing all the appropriate parameters and
    establishing an object to accept bookings for this performance with all details for the theatre
    and performance.
    The program should then start a loop in which a menu is presented to the user, eg:
    Select from the following:
    B - Book seats
    T - Display Theatre bookings
    Q - Quit from the program
    Enter your choice:
    And keep performing selected operations until the user�s selects the quit option, when the
    program should terminate.
    T - Display Theatre bookings
    The Display Theatre Bookings option should display a plan of the theatre. Every available
    seat should be displayed containing its identification, while reserved seats should contain an
    Rows in each theatre are indicated by letters starting from �A� at the front. Seats are
    numbered from left to right starting from 1. A typical seat in the theatre might be designated
    D12, representing seat 12 in row D.
    B - Book seats
    The booking of seats is to offer a number of different options.
    First the customer must be asked how many adjacent seats are
    required. Then start a loop offering a further menu of choices:
    Enter one of the following:
    The first seat of a selected series, eg D12
    A preferred row letter, eg F
    A ? to have the first available sequence selected for you
    A # to see a display of all available seats
    A 0 to cancel your attempt to book seats
    Enter your selection:
    1. If the user enters a seat indentifier such B6, The program should attempt to
    reserve the required seats starting from that seat. For example if 4 seats are
    required from B6, seats B6, B7, B8 and B9 should be reserved for the customer,
    with a message confirming the reservation and specifying the seats reserved..
    Before this booking can take place, some testing is required. Firstly, the row
    letter must be a valid row. Then the seat number must be within the seats in the
    row and such that the 4 seats would not go beyond the end of the row. The
    program must then check that none of the required seats is already reserved.
    If the seats are invalid or already reserved, no reservation should be made and the
    booking menu should be repeated to give the customer a further chance to book
    seats.
    If the reservation is successful, return to the main menu.
    2. The user can also simply enter a row letter, eg B.IN this case, the program should
    first check that the letter is a valid row and then offer the user in turn each
    adjacent block of the required size in the specified row and for each ask whether
    the customer wants to take them. Using the partly booked theatre layout above, if
    the customer wanted 2 seats from row B, the customer should be offered first:
    Seats B5 to B6
    then if the customer does not want them:
    Seats B10 to B11
    and finally
    Seats B11 to B12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the row, then report
    that no further blocks of the required size are available in the row and repeat the
    booking menu.
    3. If the user enters a ? the program should offer the customer every block of seats
    of the required size in the whole theatre. This process should start from the first
    row and proceed back a row at a time. For example, again using the partially
    booked theatre shown above, if the user requested 9 seats, the program should
    offer in turn:
    Seats A1 to A9
    Seats C1 to C9
    Seats C2 to C10
    Seats E3 to E11
    Seats E4 to E12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the whole theatre,
    then report that no further blocks of the required size are available and repeat the
    booking menu.
    4. If the user enters a # the program should display the current status of the seating
    in the theatre, exactly the same as for the T option from the main menu and then
    repeat the booking menu.
    5. If the user enters a 0 (zero), the program should exit from the booking menu back
    to the main menu. If for example the user wanted 9 seats and no block of 9 was
    left in the theatre, he would need to make two separate smaller bookings.
    The program should perform limited data validation in the booking process. If a single
    character other than 0, ? and # is entered, it should be treated as a row letter and then tested
    for falling within the range of valid rows, eg A to H in the example above. Any invalid row
    letters should be rejected.
    If more than one character is entered, the first character should be tested as a valid row letter,
    and the numeric part should be tested for falling within the given row. You are NOT
    required to test for valid numeric input as this would require the use of Exception handling.
    You are provided with a class file:
    Pad.java
    containing methods that can be used for neat alignment of the seat identifiers in the theatre
    plan.
    File Processing
    The file to be read must be opened within the program and if the named file does not exist, a
    FileNotFoundException will be generated. It is desirable that this Exception be caught and
    a corrected file name should be asked for.
    This is not required for this assignment, as Exception handling has not been covered in this
    Unit. It will be acceptable if the method simply throws IOException in its heading.
    The only checking that is required is to make sure that the user does supply a file on the
    command line, containing details of the performance. This can be tested for by checking the
    length of the parameter array args. The array length should be 1. If not, display an error
    message telling the user the correct way to run the program and then terminate the program
    System.exit(0);
    The file should be closed after reading is completed.
    Program Requirements
    You are expected to create at least three classes in developing a solution to this problem.
    There should be an outer driving class, a class to represent the theatre performance and its
    bookings and a class to represent a single row within the theatre.
    You will also need to use arrays at two levels. You will need an array of Rows in the Theatre
    class.
    Each Row object will need an array of seats to keep track of which seats have been reserved.
    Your outer driving class should be called BookingOffice and should be submitted in a file named BookingOffice.java
    Your second, third and any additional classes, should be submitted in separate files, each
    class in a .java file named with the same name as the class
    I am also very sorry to give such a long description.but i mainly want to know how to approach for this program.
    also how to designate each row about it's column while it is being read from the text file, how to store it, how to denote first row as row A(second row as row B and so on) and WHICH CLASS WILL PERFORM WHICH OPERATIONS.
    pls do give a rough guideline about designing each class and it's reponsibilty.
    thanking u and looking forward for your help,
    sincerely
    RK

    yes i do know that........but can u ppl pls mention
    atleast what classes shud i consider and what will be
    the functions of each class?No, sorry. Maybe somebody else will, but in general, this is not a good question for this forum. It's too broad, and the question you're asking is an overall problem solving approach that you should be familiar with at this point.
    These forums are best suited to more specific questions. "How do I approach this homework?" is not something that most people are willing or able to answer in a forum like this.

  • I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    Hi, I have got the same problem but all is 1/4 the size have you fixed it?

  • When i download a file from the web i get "Anti-Virus Program not found " message. This has been happening since I change anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    That is a very good warning provided by the Download Statusbar extension. Something like that should been built into Firefox. I filed this Bug report a couple of years ago, about the lack of a warning like that. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=480855 <br />
    I have looked everywhere that I can think of to find a list of '''IOfficeAntiVirus providers''' ''(as mentioned in the Bug report)'' that will work with Firefox, so I can't answer that for you.
    You might want to ask the developer of the Download Statusbar extension about it. He might know which AV programs are compatible with the Windows API that Firefox uses for the download scan. <br />
    http://dlstatusbar.proboards.com/index.cgi? <br />

  • Applet Game Programming - player movement

    HI Java Experts,
    I have a very simple question applet game programming - jdk 1.02.
    Let's say you have a player on the applet window. He can move right and left.
    Naturally you have an image representing the player. When the player moves left you present an image loop with him running left. And vice versa for running right.
    Of course when he stops moving you just want to show a still image.
    What do you guys feel is the best technique for that situation ?
    Stephen

    Hi Thanks for the advice.
    I'm under the impression that if I used jdk1.4
    everybody who wanted to play the game would have to go
    through the trouble of downloading something . If
    that is so, then i would like to stick with 1.02 to
    have the widest possible audience.Use Java Web Start to deploy it as an application instead of an Applet. If your program is really cool, people will download the JDK 1.4 to use it. Then we will have more java users in the world :)
    By the way i have a URL perhaps someone could look > at the source code and give additional suggestions
    you can make sonic the hedge hog run and jump
    http://www.swebdev.com/Adventure.html
    That code has some good points. I like the nice object oriented flow of it. However, the way he sets up the Thread is all wrong. He uses yield and sleep, you would want to set up this using wait() and notifyAll() calls if you want to make it more interesting.
    Right now i'm trying to address the issue of how to
    reverse the image for when the player is running the
    opposite way -- ? perhaps a separate thread in 1.02
    might be an answer? I would be glad to hear all kinds
    of suggestions on the sample code seen thereYou shouldn't need a separate thread just to reverse the image. If your little guy is already in his own thread, just switch the image that is displayed when the player hits the opposite direction key.
    Think of threads like puppets, and you are the puppet master. Your little guys is a puppet, so he should be in his own thread. You can make him do whatever you want from your thread (the master) by pulling strings (changing globals, and message passing)
    Wow... Thats a really good analogy... I just thought that up :)

  • Timer for game program.

    Hello all,
    I am making a game program and I need a way to implement a timer so that it the game will end if the time expires.
    Is there any easy function to help me with this task?

    Thanks for the reply and I just found that class.
    Thanks

  • J2ME game programming

    Helo everyone,
    I am working in j2me game programming plz if
    any one know how make image as small as possible
    in our game program.?
    I am using *.png format of image which is working well
    in game but my game size is very big so plz help me to get
    out of this problem
    Thank u
    Aman Gautam

    hi,
    if you want to do any kind of game programming in J2ME, i suppose you would require to use the Canvas class, well there are a few good resources.. try out
    www.billday.com
    www.javamobiles.com..
    that ought to get u started.
    cheerz
    ynkrish

  • J2Me game programming plz help

    Helo everyone,
    I am working in j2me game programming plz if
    any one know how make image as small as possible
    in our game program.?
    I am using *.png format of image which is working well
    in game but my game size is very big so plz help me to get
    out of this problem
    Thank u
    Aman Gautam

    I solved the same problem by using indexed color images instead of true color.
    So, for example, if you have a colorful background you can convert it to a 256 color image.
    Depending on your specific image and the devices you'll see it on you may or may not notice the difference, but the file size is generally smaller.
    Then you can push further for smaller elements, like, say, a moving object like a pointer or a starship, you can reduce it to 60 or 30 colors, or even less.
    Another technique is to use tiles to build up the background instead of big images. With MIDP2.0 there's the TiledLayer, but you can implement the same with some code also on MIDP1.0 if backward compatibility is of concern.

Maybe you are looking for