The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Engine PokemonGDX open source pokemon engine

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old January 23rd, 2015 (7:21 PM). Edited May 15th, 2015 by zingzags.
zingzags's Avatar
zingzags zingzags is offline
PokemonGDX creator
     
    Join Date: Jan 2009
    Location: Boston
    Age: 24
    Nature: Adamant
    Posts: 536
    Hello everyone,
    I took it upon myself to start a pokemon open source engine. Here is a link to the github: https://github.com/sjosegarcia/Pokemon
    __________________
    Check out the Pokemon Game Engine I am working on:
    https://github.com/sjosegarcia/Pokemon
    Reply With Quote
      #2    
    Old January 24th, 2015 (2:25 AM).
    Luka S.J.'s Avatar
    Luka S.J. Luka S.J. is offline
    Jealous Croatian
       
      Join Date: Dec 2008
      Location: Croatia
      Age: 25
      Gender: Male
      Nature: Adamant
      Posts: 1,114
      Isn't Essentials open-source as well? Everyone has the option too see, alter and contribute to the engine. Yet not too many people do. I wonder why...

      Anyway, I can't access the guthub files, since I'm not on a computer. Would be cool if you included some media in your opening post.
      Reply With Quote
        #3    
      Old January 24th, 2015 (9:12 AM).
      zingzags's Avatar
      zingzags zingzags is offline
      PokemonGDX creator
         
        Join Date: Jan 2009
        Location: Boston
        Age: 24
        Nature: Adamant
        Posts: 536
        Quote:
        Originally Posted by Luka S.J. View Post
        Isn't Essentials open-source as well? Everyone has the option too see, alter and contribute to the engine. Yet not too many people do. I wonder why...

        Anyway, I can't access the guthub files, since I'm not on a computer. Would be cool if you included some media in your opening post.
        Yeah I also wonder why. I will later, as soon as I get some stuff done.
        __________________
        Check out the Pokemon Game Engine I am working on:
        https://github.com/sjosegarcia/Pokemon
        Reply With Quote
          #4    
        Old January 26th, 2015 (6:08 PM).
        zingzags's Avatar
        zingzags zingzags is offline
        PokemonGDX creator
           
          Join Date: Jan 2009
          Location: Boston
          Age: 24
          Nature: Adamant
          Posts: 536
          Right now I am working on both Collision Detection, and a better way to get the player centered properly with different dimensions.
          But I managed to get the game to re-size properly without worrying of the screen size.
          __________________
          Check out the Pokemon Game Engine I am working on:
          https://github.com/sjosegarcia/Pokemon
          Reply With Quote
            #5    
          Old January 28th, 2015 (11:26 AM).
          zingzags's Avatar
          zingzags zingzags is offline
          PokemonGDX creator
             
            Join Date: Jan 2009
            Location: Boston
            Age: 24
            Nature: Adamant
            Posts: 536
            Alright so this is what I did to get the sprite image to dynamically center in the correct spot.
            Code:
            	public void addMapObject(PlayerRenderer player) {
            		player.setMap(this);
            		float divideWidth = player.getPlayerFrame().getRegionWidth() / (Constants.pixel / 2);
            		float divideHeight = player.getPlayerFrame().getRegionHeight() / (Constants.pixel / 2);
            		float checkWidth = player.getTexture().getWidth() / (Constants.pixel / 2);
            		float offsetX = 0;
            		float offsetY = 0;
            
            		if (divideWidth % 2 == 1) {
            			offsetX -=(Constants.pixel / (Constants.pixel / 2));
            		}
            		
            		if (checkWidth >= (Constants.pixel / 2)-1) { //TODO this is for now, until I can find a better way.
            			offsetX-= checkWidth;
            		}
            		
            		if (divideHeight % 2 == 1) {
            			offsetY -=(Constants.pixel / (Constants.pixel / 2));
            		}
            		
            		player.setPlayerPosition(-x + offsetX, -y + offsetY);
            		player.getBounds().set(x + (viewport.getWorldWidth() / 2) , y + (viewport.getWorldHeight() / 2), player.getPlayerFrame().getRegionWidth(), player.getPlayerFrame().getRegionHeight());
            		mapObjects.addMapObject(player); //Need to make the actor class part of a "abstract life object class" and make PlayerRenderer a sub-class of that class to 
            	}
            __________________
            Check out the Pokemon Game Engine I am working on:
            https://github.com/sjosegarcia/Pokemon
            Reply With Quote
              #6    
            Old January 28th, 2015 (5:46 PM).
            zingzags's Avatar
            zingzags zingzags is offline
            PokemonGDX creator
               
              Join Date: Jan 2009
              Location: Boston
              Age: 24
              Nature: Adamant
              Posts: 536
              Well got it to truly center (changed the equation a bit).
              __________________
              Check out the Pokemon Game Engine I am working on:
              https://github.com/sjosegarcia/Pokemon
              Reply With Quote
                #7    
              Old March 26th, 2015 (12:03 AM).
              Tricko's Avatar
              Tricko Tricko is offline
              Developing Pokémon Dark Leaf
                 
                Join Date: Apr 2012
                Location: Alamos Town
                Gender: Male
                Nature: Jolly
                Posts: 45
                Awesome Work !!!
                __________________
                Hacks I Love



                <><><><><><><><><><><><><><><>

                http://tricko1.deviantart.com/
                Reply With Quote
                  #8    
                Old May 15th, 2015 (3:27 PM).
                zingzags's Avatar
                zingzags zingzags is offline
                PokemonGDX creator
                   
                  Join Date: Jan 2009
                  Location: Boston
                  Age: 24
                  Nature: Adamant
                  Posts: 536
                  Quote:
                  Originally Posted by Tricko View Post
                  Awesome Work !!!
                  Thank you.

                  UPDATE
                  Code:
                   Brought over the entire PokemonGDX repository
                  - Created some XML's (Thank you Pokemon Essentials for providing the
                  data I needed to convert it to XML)
                  - Parsed most of this data
                  - Fixed some character movement animation issues
                  - Removed the use of Scene2D from the PlayerRenderer.java to allow more
                  flexibility
                  Sorry for the long wait, I was too busy to work on it because of school. I created the backbone of the parsing system with this update, so now I can fully implement pokemon data.
                  __________________
                  Check out the Pokemon Game Engine I am working on:
                  https://github.com/sjosegarcia/Pokemon
                  Reply With Quote
                    #9    
                  Old May 17th, 2015 (12:57 PM).
                  zingzags's Avatar
                  zingzags zingzags is offline
                  PokemonGDX creator
                     
                    Join Date: Jan 2009
                    Location: Boston
                    Age: 24
                    Nature: Adamant
                    Posts: 536
                    UPDATE
                    Code:
                    - Added logic for individual Pokemon
                    - Added Trainer Logic
                    - Renamed the main file from Pokemon to Game
                    - Added logic for Gender
                    - Changed some logic for PokemonParty
                    - Added PokemonPokedex and PokemonStorage to be expanded on in the
                    future
                    __________________
                    Check out the Pokemon Game Engine I am working on:
                    https://github.com/sjosegarcia/Pokemon
                    Reply With Quote
                      #10    
                    Old May 19th, 2015 (7:21 AM).
                    Rayquaza.'s Avatar
                    Rayquaza. Rayquaza. is offline
                    Lead Dev in Pokémon Order and Chaos
                       
                      Join Date: Sep 2011
                      Location: United Kingdom
                      Age: 22
                      Gender: Male
                      Nature: Adamant
                      Posts: 691
                      What do I use to run this?
                      __________________
                      Reply With Quote
                        #11    
                      Old May 19th, 2015 (6:52 PM).
                      zingzags's Avatar
                      zingzags zingzags is offline
                      PokemonGDX creator
                         
                        Join Date: Jan 2009
                        Location: Boston
                        Age: 24
                        Nature: Adamant
                        Posts: 536
                        Quote:
                        Originally Posted by Rayquaza. View Post
                        What do I use to run this?
                        This will run on windows, mac, ios, and android. It requires that java is installed on your computer, and I use Eclipse as my main IDE.
                        __________________
                        Check out the Pokemon Game Engine I am working on:
                        https://github.com/sjosegarcia/Pokemon
                        Reply With Quote
                        Reply

                        Quick Reply

                        Join the conversation!

                        Create an account to post a reply in this thread, participate in other discussions, and more!

                        Create a PokéCommunity Account
                        Thread Tools

                        Posting Rules
                        You may not post new threads
                        You may not post replies
                        You may not post attachments
                        You may not edit your posts

                        BB code is On
                        Smilies are On
                        [IMG] code is On
                        HTML code is Off

                        Forum Jump


                        All times are GMT -8. The time now is 9:50 AM.