Added: 1 year ago
From: DrkstrInc
Views: 2,743
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (24)

Sign In or Sign Up now to post a comment!
  • Epic graphics for main menu. However the menu And the game graphics mismatch. The menu looks like emerald and the game graphics looks like pkmn gold. Also, fonts mismatch in combat menu and inventory...

  • Is there a tutorial for this? Are you able to make one? I would very much like one! Thanks in advance!

  • @Quirqful What exactly do you mean by a tutorial? All you need to know is java, and if you don't know any java then this would not be a good first experience with it.

  • @DrkstrInc I know Java, but I am just getting into the 2D side of things, so no tutorial for this then I take it.

  • @Quirqful There is less going on than there appears to be. Nothing but a bunch of cheap tricks really. Basic for loops traversing arrays and painting is all that is happening for the most part. If you can learn that then that is 90% of the engine.

  • @DrkStrInc Just wondering....

  • hows it coming along?

  • @DrkstrInc I like to keep my code as object-orientated as possible. haha eclipse isn't that great but it's better than any other IDE i've used. The player movement is done in the Game.movementLogic(int) and Player.move(float,float)

  • Just wondering if you had time to look at my source yet.

  • @MrSystemStatic I have and it's coded in a way that I would not personally code something in. Also I can tell that you use Eclipse, which is an IDE that I honestly despise. Anyway, I'm working on a few things and trying to further my understanding of your game. I will add tile movement and after that I will add tile scrolling.

  • Nice Video

  • @DrkstrInc Also, my map is in a 2-dimensional array rather than one like yours, maybe if i send you my source you could give me some pointers?

  • @MrSystemStatic I would be glad to help. I was originally going to use 2D Arrays as well but the Map Editor program I found saved files in a manner that made 1D Arrays the easier option. Send me a message to my inbox with a download to your source and I'll look over it.

  • @DrkstrInk I don't understand how that helps since all that the translate method does is change the starting position of where the graphics are drawn, eg: translate(1,1) would set the starting position to 1 so if you go g2.paintWhatever(....,0,0) it would draw at postition 1,1

  • @DrkstrInc Well, in my game. How i draw everything is i have maps, and each map has tiles, i draw all the tiles on the map and then i draw all of the objects and then the player. I'm not sure where to use the Graphics2D translate method :S

  • @MrSystemStatic Just take a look at my source code because I draw tile based maps from files and hardcoded objects but mostly in the same manner. Go to my paint method and note the translation code (I believe it involved g casted to 2D named g2, been awhile since I looked over my code) If you get compile errors make sure that you're importing Graphics2D. You will need to have variables set up that keep track of the position of the player and the map if you do it my way. Let me know if you get it

  • Same as MrSystemStatic here. Was wondering, do you draw (when mving 1 step to the rigth) everything else 1 step to the left?

    Btw: Please fix souce link :)

  • @bartjuh10 I have added a download link. It has been on Google Code for a couple of months though.

  • Same as MrSystemStatic here. Was wondering, do you draw (when mving 1 step to the rigth) everything else 1 step to the left?

  • @bartjuh10 Check my response to MrSystemStatic

  • I'm working on a similar game, but I don't know how to do the scrolling. Can you help please?

  • @MrSystemStatic Graphics2D Translation

  • Dude holy crap this is good. o_O Hey if its still possible, could you give me the link for your source code? I really wanna check it out. Thanks.

  • @Dottaiwan code.google.com/p/pokemon-java­-engine/

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more