Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Standard 2D animation solutions?  (Read 3852 times)
0 Members and 1 Guest are viewing this topic.
Offline saw79

Junior Newbie

« Posted 2013-07-31 13:04:29 »

Hi guys! First time poster, but long time lurker. My question is about what standard solutions are used for animation in the world of 2d Java game programming.

The obvious first answer (I assume...?) is frame-based animation via sprite sheets. I'm sure you guys know all about this without me having to say much more - flip through the different images to create the animation: run1.png, run2.png, etc.

Now I don't think this solution is appropriate for my project, unfortunately. My friend (artist) and I (programmer) are creating a 2D game with hopefully more complex images and animations. The images are sized in the range of 500 to 1000ish pixels in each dimension. We want this to provide high resolution graphics and the ability to do things like zoom in & out. In addition, our animations have like 60-80 frames in them sometimes. Loading each image separately is taking way too long (like 15+ seconds for what will probably be like 1/1000 of all the images in the game). We've tried making spritesheets, but this seems pointless since we sometimes can only fit a few images in each dimension with a maximum texture size of only a couple thousand pixels in each dimension.

So I was thinking there must be more scalable, standardized solutions that games with a bit higher graphics must be using? I mean the spritesheets I assumed worked great for games like Super Mario Brothers, but are games these days only still using that? If it helps, my artist uses After Effects to create the animations. Another important consideration is ease of implementing with a Java game engine. We started with Slick, but are currently trying to migrate over to LibGDX because it seems a little bit more full-blown and powerful. But I'm willing to try out whatever you guys think would suit us best.

Thanks in advance.
Offline Herjan
« Reply #1 - Posted 2013-08-01 08:51:03 »

First, 512x512 images are (depends on where it is used for) for normal sprites already far too big (and 60-80 frames?? wutf), however, there is in Slick (as well as in LibGDX) already a very nice Animation class, you might wanna check that out, as it is really nice stuff:
Slick: yeay Bucky Smiley

Anyway, good luck and have fun both!
Offline saw79

Junior Newbie

« Reply #2 - Posted 2013-08-01 20:09:42 »

I do appreciate the response. But honestly, it's like you didn't even read my OP. There's gotta be ways to do more complex and higher-quality animations than spritesheets, doesn't there?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline deathpat
« Reply #3 - Posted 2013-08-01 20:46:18 »

If you want to do animations like in Rayman Origins for exemple, you should have a look at Spine:

It's developed by Nate who is a member of this forum. Here is the thread on JGO:

It's ideal for a side view game and is done to work with a lot of game frameworks, including libgdx. ... for an isometric or top down view game I don't have any solution ... except 3D.

work in progress : D A E D A L U S
Pages: [1]
  ignore  |  Print  

EgonOlsen (76 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (258 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (160 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!