Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 7:19 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Apr 30, 2012 6:35 am 
Offline

Joined: Mon Apr 30, 2012 6:21 am
Posts: 2
I want to have separate classes for game logic and rendering, basically have game logic done in one class and just pass entity locations and ids and map data to the renderer. Is this possible? Or should I just stick with using the container system (is this the only way to do things with slick?) like the tutorials all seem to use.
I figure someone might be able to lay it out clearly or tell me I'm speaking nonsense and this is an ineffective way of doing things and save me from spending ages looking at the API.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 5:32 pm 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
You can add a layer of abstraction to handle the rendering and updating in separate classes if you want to. However, usually things like AI and Layer rendering are handled in classes devoted to the characters and groups that they apply to, making the update and render methods fairly clean. Because of this, separate classes for rendering and updating are, to my knowledge, uncommon.

_________________
"Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Darkium, ZombieBowTiie and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group