2 New Games to try

Hi All,
Im not sure if this is the correct forum, but it has been very useful while we wrote these games, so I invite you all to come play our new games at:
http://www.crystalsquid.com/Games.php
Any feedback would be greatly appreciated. We've had a couple of problems with the .jar's not loading correctly, one guy suggesting it was a Mozilla 1.4 bug but it works when we test it.
Please Share & Enjoy...
Dom

The Bee game seems way over complicated. Maybe it's
just me, but all that motion and vibrating around ...
The Traffic game I couldn't figure out the first time
through, then I read the Info on it, still didn't...We're sorry you didn't like Bee Mania very much, and had problems running Traffic Jammer. We have had a couple of failed downloads, and we are tracking the problem. Thank you very much for the feedback.
As for the loader, it's pretty simple if your resources are loaded externally (i.e. from the web server and not bundled with your code in a jar file). If it's bundled, then your a bit stuck as the VM has to load the jar before it can execute the code.
Otherwise you could use something like the following static class to store and load your data. You load the resources you need for displaying the progress information, and then initialise the loader which loads your resources in a seperate thread.
public class DataLoader extends Object implements Runnable
     public static volatile boolean     loadOK;
     public static volatile boolean     loadFailed;
     public static volatile float     progress;
     private static Thread          thread;
     public static void init()
          // [re] initialise loader
          initFailed = false;
          progress = 0.0f;
          initialised = false;
          // start loader thread
          thread = new Thread(new DataLoader());
          thread.setPriority(Thread.NORM_PRIORITY+1);
          thread.setName("loader");
          thread.start();
     // only non-static func to load the static data
     public void run()
          // load all resources FROM WEB SERVER
          // As we go, increase 'progress' from 0 to 100
          // when finished set loadOK to true
          // IF we get an error, set loadFailed to true and return
and the main code would look something like:
// load resources to display loader
// initialise loader
Data.init();
// wait for loader to complete
while (true)
if ( Data.loadFailed )
// load failed, do something and exit
return false;
else if ( Data.loadOK )
// loaded data ok, jump to game
break;
else
// Draw bar on screen and display 'Data.progress'
// loaded resource ok, main game code here...
Hope this helps,
Dom

Similar Messages

  • When ever I try to install a new game or update an existing game,I get as far as the icon stating "waiting" or "installing" how do I get the games to install or update? I have icons on my iPad saying "waiting" for days. Please help

    When ever I try to install a new game or update an existing game,I get as far as the icon stating "waiting" or "installing" how do I get the games to install or update? I have icons on my iPad saying "waiting" for days. Please help

    Reboot your iPad and then try installing the apps again.

  • I changed my apple I'd but when I try to install a new games the old one comes up and it keeps saying invalid how can I change it?

    I changed my apple id but when I try to install new games the old one comes up and it keep saying invalid how can I change it?

    Under settings, go to iTunes & App Store - logout of the old account and enter the new account and password.

  • TS1702 Since I updated to ios6 my City of Warfare game shuts down when I try to go to battle. I removed my original game app and reinstalled a new game, which I had to start from the beginning and it still crashes. I'm sure that others are having similar

    Since I installed ios6 my City of Warfare game shuts down when I try to battle. I removed my original game and reinstalled a new game app which started a new game..and it still shuts down, help?

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Puzzle Game and new Game Problem

    Hello Java Programmers,
    Once again I have encountered a problem with my ongoing puzzle game. I have completed it all. Now I want my user to be able to start a new game in after they win. I tried repaint and update method with JFrame but it deosn't reshuffle the buttons. How can I do that. The code geos below.
    [/b]
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JOptionPane;
    public class PuzzleGame{
       String[] btn_Labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"," "};
       String[] labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"};
       private final int ONE = 1, TWO = 2, THREE = 3, FIVE = 5;
       private boolean WIN_STATE = false; 
       private JButton b[];
       public String clicked_btn_label = "";
       //Constructor method.
       public PuzzleGame(){
          showSplashScreen();
          initGame();
       public static void main(String args[]){
          PuzzleGame game = new PuzzleGame();
       //When a new Game started labels of buttons are shuffled using this method.
       public void shuffleNumbers(){
          String temp = null;   
          for(int j=0; j<16; j++){
          int k = (int)(Math.random()*16);
          temp = btn_Labels[j];
          btn_Labels[j] = btn_Labels[k];
          btn_Labels[k] = temp;           
       //Game initialization method.
       public void initGame(){
          b = new JButton[16];
          JPanel p = new JPanel();
          JFrame frame = new JFrame();
          shuffleNumbers();
          for(int i=0; i<16; i++){
             b[i] = new JButton();
             b.setText(btn_Labels[i]);
    b[i].setActionCommand(""+(i+1));
    for(int i=0; i<16; i++){
    b[i].addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent e){
    clicked_btn_label =(String)e.getActionCommand();
    doSwapping();
    checkWin();
    p.add(b[i]);
    p.setLayout(new GridLayout(4,4));
    frame.getContentPane().add(p);
    frame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    System.exit(0);
    Dimension dm = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (dm.width - 230)/2;
    int y = (dm.height - 240)/2;
    frame.setBounds(x,y,320,240);
    frame.setSize(340,240);
    frame.setVisible(true);
    //This method swaps the clicked button with the empty button if it doesn't violate rule.
    public void doSwapping(){
    int num = Integer.parseInt(clicked_btn_label);
    String temp;
    if( (num + ONE <= 16) && b[num].getText() == " " && num % 4 != 0){
    temp = b[num].getText();
    b[num].setText(b[num-ONE].getText());
    b[num-ONE].setText(temp);
    else if((num - TWO >= 0) && b[num-TWO].getText() == " " && ((num - ONE) % 4 != 0)){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-TWO].getText());
    b[num-TWO].setText(temp);
    else if( (num + THREE < 16) && b[num+THREE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num+THREE].getText());
    b[num+THREE].setText(temp);
    else if( (num - FIVE >= 0) && b[num-FIVE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-FIVE].getText());
    b[num-FIVE].setText(temp);
    // else{}
    public void checkWin(){
    WIN_STATE = true;
    for(int i=0; i<15; i++){
    if( b[i].getText() != labels[i])
    WIN_STATE = false;
    if(WIN_STATE == true){
    JOptionPane.showMessageDialog(null,"Congratulations You Have won the Game!","You Win",JOptionPane.INFORMATION_MESSAGE);
         initGame();
    public void showSplashScreen(){
    JWindow w = new JWindow();
    JPanel p = (JPanel)w.getContentPane();
    JLabel l = new JLabel(new ImageIcon("splash.jpg"));
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (d.width - 230)/2;
    int y = (d.height - 240)/2;
    p.add(l);
    w.setBounds(x,y,320,240);
    w.setVisible(true);
    try{
    Thread.sleep(10000);
    catch(Exception e){
    w.setVisible(false);
    [/b]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Sorry for violation. I would like to add a menubar to the application containing a single menu button for new game. adding a menubar is simple but how can i reshuffle the buttons using methods like update etc. or any other way.

  • Itunes wont let me sync new games

    When i try to sync the games I just bought(song summoner) i get a message saying that if I do it will replace all games on my ipod with the games in my library, but the problem is my ipod video came with several simple games(Brick, Parachute, Music Guiz, and solitaire) preloaded on it, will it delete these games if I ok the sync or will they be ok, and if they will get deleted is there anyway get my new games onto my ipod without losing the preloaded ones?
    Thanks for your help!

    If you mean the built in games( and I think you do), they can't be deleted. If you mean games that someone else put on your iPod before you bought it, they would be deleted.

  • Can't get the new game center to accept any nickname

    I want to try the new game center, but any nickname I give it, I get a message that the name is already in use. I've given it several very unique and creative tries, but it won't accept any of them. Anybody out there encountered this?

    Same problem here. My ID is already created and used on the Apple site. Game Center even tells me that my e-mail address is alreay in use and to change it. Duh, of course my e-mail address is in use and Apple has a record of it. Game Center has a major flaw in it. Since it is part of OS4.0 theree is no way to get rid of it. I would not mind it so much if it worked correctly. From what I have ready, Apple support is no help at all on this issue. I hope the programmers are aware of this and will have a fix out in the near future.

  • I got a ipod touch original and i love the new games

    i got a ipod touch original and i love the new games but i realy hates that my software is outdated could you try to make an update for ipodtouch original plzz

    Johny-boy wrote:
    i got a ipod touch original and i love the new games but i realy hates that my software is outdated could you try to make an update for ipodtouch original plzz
    We are ipod users just like you.  We cannot make any updates at all.
    There will very likely no way that their will be any more updates for original or 2nd gen ipod touches.

  • IPad mini. Kid downloaded new game. While playing game screen locked up. Can not close or shut off.

    iPad mini. Kid downloaded new game. While playing game the screen locked up. I can't exit out or shut off. What do I do?

    If you ahven't already done so then try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Syncing new games

    For some reason my "Games" list has disappeared and "Applications" is now present. I no longer see my list of games. Why not? I've purchased two new games yesterday and can't sync them. They appear in the Applications file. If I try to sync these two games, I get a message that my old games will be deleted. How do I sync my new games and keep my old ones? Would please like a response ASAP. Thanks.

    This is a user chat board, welcome!
    Yes, the whole category is Apps now in itunes v8.
    And that is split into two parts, iphone/itouch Apps at the top, and at the bottom iPod games.
    I had a similar problem when I upgraded - my old games were not listed. So I had to find the files on my hard drive and drag them back over into the itunes library. THey all have a file extension of I P G for IPod Game.
    So search your hard drive for the old games and add them back in. I'm afraid to say you'll probably lose all the stats for them.
    You might possibly be able to copy them back into itunes using this Copy Pruchases feature explained here:
    http://support.apple.com/kb/HT1848

  • I have a 2nd generation ipod, but can't load any new games because they require a newer version of software (which isn't available on the 2nd gen

    Hello, I have a 2nd Gen Ipod Touch and can't get any new games to load (because the 2nd generatiom requires new software, which isn't available). Is there a way to get older versions of games to load on the ipod?
    Thanks

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was releases, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • New game download on new machine

    I purchased Zuma months ago on a former Employers Laptop, since then my new employer has purchased a new MacBook Pro. I failed to deauthorized the purchases or even use of music on that laptop, I just brought a new Game on this one, and when i try to sync it.. it says.. Are you sure you want to sync games? all existing games on the this ipod will be replaced with games from this computer... i don;t want to lose, nor have to repay to get my old game back.. any suggestions?

    Just move the iPhoto Library. There are more details in iPhoto: Move your iPhoto library to a new location

  • How can I transfer my old dragonvale island into my new game center account?

    I restored my ipod, but now I had to make a new game center account. Since Dragonvale used my old GC account, it forgot my island and generated a new one. I dont wanna have to start over again. Help me! (dont say to start over)

    You said you restored your iPod. Did you restore from backup? If yu did then yur game progress and Game Center stuff should have beeb restored.

  • I bought a new app ($0.99), bought $19.00 worth of on app purchases and the app crashed, now it says that I have to start a new game since i had just started it and didn't get a chance to save it, so my question is, how do i get my money back?

    I bought a new app ($0.99), bought $19.00 worth of on app purchases and the app crashed, now it says that I have to start a new game since i had just started it and didn't get a chance to save it, so my question is, how do i get my money back?

    I'm keeping the app, i just need the $19.00 back.

Maybe you are looking for

  • Flash builder 4.7 crashes on start

    I am a creative cloud customer. And i was working on flash builder 4.6 without any problem. Today i was notified that i can install 4.7. And i did it. Unfortunately it doesn't work. It crashes on start and i don't know why. All other products work fi

  • Uninstalling Illustrator CS6 and Prelude CS6 Mac Betas

    I was on beta team of CS6 and before release this past week was experiencing an issue with Adobe Application Manager. A very unhelpful and uninformed Adobe Tech rep demanded that I uninstall all beta apps manually. I knew this was wrong but followed

  • Security integration

    I am developing a shockwave[.dcr] for my web site which will post data to a URL in AES encrypted format using public key which gets decrypted at server side [URL] using the private key. Is it possible to do in Lingo? If yes please let me know somethi

  • Territorywise Customer List and Balance

    Hi All, How I can check Territorywise customer list and customer balance?? Regards

  • Oracle Backup to the external medium from DB13 via FTP

    Hi oracle experts!  I have difficulty by setting up the the backup to the remote directory (on Unix Server) via FTP from DB13 on Windows (Enterprise Server 64 bit). The parameters I have set up are in initDBSID.sap: backup_dev_type = stage stage_root