Multiple levels in a mobile game

Hi
Im a little confused on multiple levels in a j2me game with respects to re-initialising the level, once level 1 is complete.
How, and what would be the best code practise, once level1=true(complete) to load level 2. Where do i actually send my code back too, to start the next level. Do i do some kind of garbage collection/reset, then simply load all the graphics in for level 2?.
Also, some games feature levels like in an RPG, where each room is loaded when the character reaches the exit - how is this being called from the j2me code?
Thanks
Steve

Would you be able to explain it to me?  Here is a picture of what i'm trying to do..
When 'player_mc' touches' hitbox_mc', the movieclip 'bat_mc' plays once and erases itself.
And for the level change its the same concept... Player touches box and gets sent to second frame on timeline which is t he next level...
Been trying to figure this out all weekend and just turned to pros for help now..

Similar Messages

  • How to make "Levels" in simple java game

    I just wanted to know if anybody knew how to make "Levels" in a java game. In my case, it is to change two polygons that are used in the background. I think you have to use an array of some kind, but i dont really know.
    Here is my source, the polygons are by the massive ///////// areas.
    I cut out the majority of the program, because it was too long.
    public class collision extends Applet implements MouseListener,MouseMotionListener
        private  Image rickImage,mazeImage;
       Image Buffer;
       Graphics gBuffer;
       int x, y;
       int[] LeftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
       int[] LeftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
       //int[] PlayAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      // int[] PlayAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
       int[] RightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
       int[] RightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
       boolean mouseInside, collide;
       boolean rolled = false;
       boolean msg = true;
       int sX=204,sY=490,sW=12,sH=9;
       //Declare the rectangles
       Rectangle  movingRect,finshBloc,startBloc,oopsBloc;
       //Declare the polygons
       Polygon leftWall,playerArea,rightWall;
            ///Initiate
            public void init()
                 rickImage = getImage(getDocumentBase(), "rick.jpg");
                 mazeImage = getImage(getDocumentBase(), "maze1.jpg");
                 collide=false;
                 Buffer=createImage(getSize().width,getSize().height);
                 gBuffer=Buffer.getGraphics();
                 rightWall=new Polygon(RightWallX,RightWallY,18);
                 playerArea= new Polygon(PlayAreaX,PlayAreaY,31);
                 leftWall= new Polygon(LeftWallX,LeftWallY,17);
            public void paint(Graphics g)
                 drawStuff();
                 g.drawImage (Buffer,0,0, this);
    */

    I'm not exactly sure in your case what you are trying to accomplish. If all you want to do is make new polygons for your levels then you will simply need a Vector of type level (or polygon). Store multiple levels/polygons in that vector. This can be done many ways, probably the most efficient way would be to create a class Level of sorts and create each level object from there. This way you have all your levels stored into that vector.
    I have made programs where the levels/mazes are randomly generated based on certain parameters (this way you would not need to define any specific level). This can be done inside the Level class and added to the vector so that when a level is randomly generated there are literally infinite possibilities. I would suggest posting all your code or at least a breakdown UML diagram of what is going on in your entire program.

  • How to setup everything to start making mobiles games?

    I want to learn how to write applications/games for a HTC hero (and other mobile phones) in java me.
    I installed:
    - netbeans
    - mobility Version: 1.6.1 (I guess that is the same is java ME?)
    When I press:
    file/New Project
    Select "java me" Select "CDC Application", it says: "No compatible platform is installed in the IDE"
    Googling a bit, brought me the following: http://netbeans.org/kb/docs/javame/cdcemulator-setup.html
    The link contains a bunch of emulators and instructions how to configure them.
    My problem is that I don't know which one I should select. The platform that I'm aiming for is a HTC hero (it has a touchscreen).

    The Android OS is a JavaFX OS designed by Google and uses as default standard J2SE and not J2ME, so you have to
    develop in Java SE. Behind it is a optimized JVM(Java Virtual Machine and not KVM) called Dalvik.
    First of all you have installed the wrong IDE.
    To develop for Android you have to use Google's SDK and it is supported as
    plugin in Eclipse and not in NetBeans.
    So, you have to install Eclipse and download the ADT plugin from Google that adds custom project setings and the api for Android. Now you have all you need to develop applications for Android. You have to keep in mind that the API for android is different from the one designed for J2ME, so try to use Android tutorials and not J2ME ones.
    J2ME applications can run in Android but in order to do this some companies use a layer of translation between the Android API and J2ME and this
    was done by experienced programmers. Also there is another way of running midlets in Android by installing platforms as applications for android, but
    you have to rebuild the specific platform for android and there are no well designed tutorials in order to do this.
    The best thing is to develop in native api for Android because the application will run 100% and you will have a richer API at your disposal while
    J2ME one is quite limited when compared to Android's one.
    In industry multiple versions for the same game are created as a single project but in order to fit all devices it is used Ant tool that adds a preprocessing phase before compilation. It is used to filter the source code and to extract the specific setting for one device from a script that contains device capabilities, like the possibility of rendering jpg images(newer devices) or png(default format used for older devices), to possibility to play mp3(newer devices) or amr(older format), the presence of absence of softkeys, the custom key codes when the device is not returning standard key codes at input, etc.
    You can make an analogy with C++ compiling directives (#ifdef... #endif) used to compile cross platform C++ code. The standardized code used for data processing is written in ANSI standards but some features like multithreading, communication, events are dependent by the api provided by the operating system.
    Edited by: Conrad_Ciobanica on Feb 2, 2010 11:17 PM

  • Where can I find a good tutorial for mobile game developement with J2ME ?

    Hi All,
    I'm completely new to J2ME programming. But I have past experience on J2SE developement. Now I would like to know that where can I find a good tutorial for mobile game developement with J2ME ?
    I'll be very greatful if I can find a useful step-by-step tutorial (eg. "The Java Tutorial" for J2SE)
    Please point me ot the direction.
    Thanks
    ZuriJAckshoT

    ibook-widgets.com    have a free tutorial book in the iBooks store.  Search for "Create your first interactive book using iBooks Author"   they also  sell widgets.
    I  dont have any connection - I  found their eBook in the store long ago  and used it to learn more about iBA.
    The best advice though, is be patient,  go back over the process step by step, I cannot  access the Help files for some reason.. but i am sure its in their.

  • CL_SALV_HIERSEQ_TABLE - Multiple level heirachial sequential list

    Class CL_SALV_HIERSEQ_TABLE  -  Can this class be used for multiple level heirarchial sequential list ?
    It works perfect for 2 level heirarchial list u2013 Thanks to Rich Heilman. Say for Eg, SCARR and SFLIGHT.
    My requirement has more levels. I looked into all the methods of the class, but none of them seems to help to append more levels.
    Here is my requirement.
    Selection screen had date range,  partner functions etc ..
    -->Select all Inquiries for given date range or (TABLE u2013 VBAK) given sold to party/ship to party etcu2026
    -->Get all statuses (system status /user status etc (TABLE u2013 JCDS and TJ30T ).
    -->Select all Quotations for given inquiry, if any
    -->Select all Orders for the selected quotations, if any
    -->Select all deliveries for selected orders, if any and read status, whether shipped or not (VBFA/LIKP/ VBUK )
    And list these in a multilevel heirarchial mode
    Inquiry1/created by/created on/ sold to party/ Application engineer/inside sales Rep
         Status1 / description/ active /  changed by / date      
         Status2/ description/ active /  changed by / date
         u2026..
         u2026..
         Status 5u2026..
              Quotation1 / Created on /created by/quantityu2026
                   Order1/created on/created by/
                        Delivery1 /created on / created by/ not shipped
                        Delivery2/ created on / created by / partially shipped
                   Order2/created on/created by
    Inquiry2/created by/created on/ sold to party/ Application engineer/inside sales Rep
         Status1 / description/ active /  changed by / date      
         Status2/ description/ active /  changed by / date
         u2026..
         u2026..
         Status 5u2026..
              Quotation1 / Created on /created by/quantityu2026
    I need atleast 3 internal tables, 1 for Inquiry, another for status data, another for Quotation/order/delivery.
    Anyone has any clue, how to achieve this ? cl_salv_tree also doesnu2019t seems to helpu2026
    As per my understanding, we could pass only 1 single structure to a tree output.
    For eg, all lines of the tree output should be of the same structure. (please correct me if I am wrong )..
    But In my case, the fields on each level are different, and I need to pass different structures to the tree.
    Please let me know, if anyone have a clue..
    Thanks much

    Sujamol (or anyone),
    did you ever manage to do this? I would like to do the same.
    Report SALV_DEMO_HIERSEQ_COLUMN does it for two levels. What about 3, 4.....?
    Thanks.

  • Problem in Aggregate with Multiple level of dimension

    Hi,
    I have a BI repository with a snowflake schema. I have also designed the business model with snowflake, It works with drilling and all but I am facing problem when I am
    creating  a logical column aggregating with a higher level of dimentation. Let me illustrate that :
      I have the Following Hierarchy :
    Tournament(id, Name) ---- > Round (id, name, tournament_id) -------> Match (id, Name, RoundId ) |  Match is fact table and other 2 dimension.
      I also created a logical dimension called tournament with 3 levels.
      Now say I want to create a logical column Total Number of Matches , aggregating  to the dimension level of Tournament. The result gives counts a 0 for every tournament. However
      it is working perfectly when the dimension level is Round (which is the immediate next level after fact).
      The Logical request generated (in case of Tournament level) :
       MatchId:[DAggr(Measure1.MATCHID by [ Matches$.TournamentId]  SB Tournament)] as c1 GB.   
        There is no such column as TournamentId in Matches$ table. How does the BI server got this ?
       The execution plan  evaluate this:
         cast(NULL as  INTEGER )  as c1 GB [for database 0:0,1]
       Can someone please explain why is this happening, is it because of the snowflake schema, but I guess if BI server can handle a snowflake schema it should work the Aggregate
       properly in multiple levels of dimensions, or it is something I am doing wrong.
       Execution Environment:
         Windows XP ,  OBI 10g on OC4J.  Data source : MS Excel (ODBC 3.5)
      Regards,
      Ru

    Hi,
    With reference to your question.
    Can any operator perform this task..I don't think any single operator will help you.
    I suggest using an intermediate (staging) table by using a PL SQL procedure with output port to store the values of account number provided the number of accounts are limited. Else use an array variable for account of an employee.
    In short no simple solution because of the bad source design else the pivot/unpivot operator would have helped you.
    Cheers
    - Mohammed

  • ARRAY and records at multiple level ? please help

    Hi experts!!
    I am struck up with a problem. If u can please help me.
    I need a structure of this type.
    create type GRADE as object(
    grade varchar2(30)
    / -- works fine , creates
    create type GRADE_ARRAY as VARRAY(10) of GRADE;
    / -- works fine and creates
    create type SPECIES as object
    Species_number number,
    array_of_grade GRADE_ARRAY
    / works fine
    create type SPECIES_ARRAY as VARRAY(20) of SPECIES;
    -- error comes here.. Can not have multiple level..type error
    and so can not go ahead. In fect I wanted to use next level also. like this.
    The next command remains my dream only then because I could not create the SPECIES ARRAY it self..
    create type TIMBER as object
    timber_mark varchar2(6),
    no_species number,
    array_of_species(20) SPECIES_ARRAY
    the problem is for multiple level ARRAY AND RECORD/object combination..
    I tried with OBJECT AND VARRAY it does only for one level.. not even two level.
    my Mail ID:
    [email protected]
    Thanks and Regards..
    Virendra chauhan

    I think multi-level collections was first implemented in 9.2. You failed to mention what version of the DB you are using.

  • Multiple level bursting in OBIEE

    I am creating a report in OBIEE, which needs to be bursted.
    the bursting should be done at multiple levels
    For ex:
    take a sample report of employees table, dept table.
    I want to burst by dept-wise , Job-wise and manager-wise.
    i mean, 10 dept PDF , 7 position PDF and X manager PDF.
    Will i be able to do this by using bursting query ??

    I was at a conference and heard that someone actually uses OBIEE. Is that you? Or is it two people now?

  • Why doesn't the back button have a dropdown to jump back multiple levels in Firefox 4? Is there an option to re-enable that?

    Before I upgraded to Firefox 4, the back button (as it is in every other browser under the sun,) had a dropdown so you could skip one tier of going back and drop back multiple levels. This is especially important when there is a site redirecting you and you can't rewind past it with single Back clicks. However, FF4 doesn't have this -- at least not by default -- and I don't see it anywhere in the options to add it. Is it hiding somewhere I haven't found, or was that removed?

    You have to either click and hold the back button or right click to access the drop down selection.

  • I create a mobile game. How to get the signing key?

    I create a mobile game. How to get the signing key? Is the certificate is payable? Sorry if the topic is in the wrong section.

    You need to be an iOS/Mac OS X developer.
    https://developer.apple.com/devcenter/

  • Multiple level of subtotal in alv

    Hi Experts,
                    Can any one tell me how to get multiple level of subtotal in alv?
    I am using function module to get the output.

    Hi Surajit
    can you explain ur requirement
    Regards
    Prabumanoharan

  • Loading  facts at multiple levels

    Hi
    I have a cube with six dimensions. For one of those six dimensions I get data at all levels so what I want to do is load data at all levels and choose no aggregation for that particular dimension. I need levels in that dimension because I have other cubes in same AW for which I get only leaf level data for all dimensions. How can I load data at all levels for a given dimension?
    olap version: 11.2.0.3
    Thanks
    Dileep.

    In AWM you should be able to drag the dimension key column from the fact table to multiple levels of the hierarchy.
    At the XML level you should see elements in the cube map like this:
    <CubeDimensionalityMap
      Name="MY_DIM"
      Dimensionality="MY_DIM"
      MappedDimension="MY_DIM.MY_HIER.LEAF_LEVEL"
      Expression="MY_FACT.MY_DIM_COLUMN">
    </CubeDimensionalityMap>The MappedDimension attribute instructs the server to load data at the LEAF_LEVEL only. To get it to load at all levels you can simply delete the MappedDimension line and recreate the cube. If you then look in the AWM mapping screen you should see MY_FACT.MY_DIM_COLUMN mapped to all levels within MY_DIM.MY_HIER.
    There are a few cases where this will not work, so be warned! Here are some that I can think of.
    (1) If you have an MV on the cube
    (2) You are partitioning by the dimension
    (3) The expression for the CubeDimensionalityMap comes from the dimension table.
    Case (3) sometimes happens because users map to a dimension table column instead of to a fact table column wwhen they are different sides of the table join. For example if the table join condition is "MY_FACT.MY_DIM_COLUMN = MY_DIM_TABLE.KEY_COLUMN" then some people map to the expression MY_DIM_TABLE.KEY_COLUMN instead of to MY_FACT.MY_DIM_COLUMN. If this is true, then you can just change the expression to point to the fact column. A legitimate case of (3) happens where the fact table contains data at a lower level (e.g. DAY) than what is loaded into the AW (e.g. MONTH). A solution there is to create a VIEW that does the correct join and then map the cube to the VIEW.

  • Pie chart multiple levels

    Hello,
    I'm looking for software to create pie charts with multiple levels. I tried Numbers but it didn't work out. Does anyone has tips for Numbers or other software that I can use? Thanks in advance.
    Greetings,

    I also don't have many experiences in this kind of thing. However, I recently happened to read something about WinForms chart UI control which include the pie chart creating function. Not sure that kind of thing would be helpful or not.

  • Multiple Levels in Hierarchy using MDX in SSAS

    Hi All,
    I am Hiren Parikh from India.
    I have a requirement in which I want multiple levels in a single hierarchy.
    But this levels should not depend on each other.
    For eg - 
    + Country
    -India
    - China
    - Japan
    + State
    - X
    - Y
    - Z
    + City
    - Mumbai
    - Beijing
    - Tokyo etc
    I will not select Country, State & City at the same time. If I select the Country then Country will become my filter.
    If I select the State then State will become my filter.
    If I select the City then City will become my filter. This means all the 3 levels are independent should work.
    Thanks in advance...
    Regards,
    Hiren Parikh
    Hiren Parikh

    Hi Hiren,
    According to your description, you will not select Country, State & City at the same time, right?
    So as per my understanding, you needn't to create the hierarchy, just create three attributes Country, State and City. Then when you select one of the attributes in the PowerPivot table, the attribute can be the filter which you can see on the screenshot
    below.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Multiple levels escalation for deadline monitoring

    Hi all,
    We have a business requirement to perform multiple levels escalation in one of the workflow steps. If the approver does not approve the work item(WI) after one day,  a mail notification will be sent to the approver.  A second mail will be sent again if approver still doesn't approve WI after 48 hours.  Then the third/fourth mail will be sent to approver and approver's boss if approver still doesn't approve WI after 72 / 96 hours.  The fifth mail will be sent to approver's boss's boss if WI is not approved still after 5 days.
    I know how to do simple and modeled deadline monitoring in workflow builder. But I don't know whether our business requirement can be achieved in workflow builder( and this is a step in dynamic parallel processing).  Other option I have is to create an ABAP report to go through the table stores workflow run time data and make this report run several times a day in the batch to send mail notification reminder.
    Did anybody have a similar business requirement like ours? What's the best way to handle it - build it in workflow builder or write an ABAP report?
    Thank you in advance,
    Merta

    Hi Merta,
    We had a similar requirement and this is how I achieved it:
    1.  Pleace your approval task into a loop (while not approved) and create a container element as the approval flag.  This allows you to get out of the loop when the item has been correctly actioned.  Also create a DL element to hold your calculated deadline value;
    2.  Create a method and task to determine the next escalation point based on how many loop passes the instance has had, ie:
         Pass 1 - DL = sy-datum + 1 day;
         Pass 2 - DL = DL1 + 1 day, and so on.
    3.  Create a method to determine who should get what.  Link this to a condition so you know whether to send a mail or escalate the entire workitem.  Create the notification as a send mail within the condition;
    4.  Change the Deadline parameters in your step to "Refer.date/tim" = Expression and bind the DL element;
    5.  Set the processing obsolete property to ensure the workitem is killed when a new pass (and therefore and new deadline/agent etc) is started.
    See the following:
    This one handles the loop/obsolete concept.
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4b97e453d11d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/bc/ecdd5ad24e11d2b494006094b9ea0d/frameset.htm
    Regards
    Gareth

Maybe you are looking for

  • Loads for admin, not for anyone else

    We have recently purchased Adobe Design Premium (CS4) and I have taken the route of installing each component individually. We are a school and have machines networked, so students can access the software. When dreamweaver is installed, it will load

  • Excise tab in display mode

    hi all i am nt able to see the excise tab in display mode of migo.... from where can i get the number of excise invoiceof a particular good receipt doc... is there ne standard report in which i can get the details of PO-GR-PARTII nos sap mm

  • Create PO directly bypass PR

    Hi, In 3rd party order, the sales order will trigger an output in the PR. The PR is then converted with a PO. My user wanted the PO to be created directly when a sales order item is created. Since it is created as a PR, is there a way to bypass it or

  • Icon Text Background Color

    I would like to be able to change the background color of the icon text labels on the desktop in OS 9.2.2. The default color (white) looks strange on some wallpapers. Is there a fairly easy way to do this? Thanks very much, David

  • All polygons in a unique multipolygon

    I know maybe this is an easy problem, but I searched everywhere and not find the answer. I have a table with many polygons. How can I make a query that returns me only one register which is a multipolygon including all the polygons? I'm not talking a