meno
|
Posted: October 11, 2011 13:48 by meno
|
|
hi there, i recently stumbled over jemini and i kinda like it. i see some things i would like to change and i already found some dead code, but it has a great foundation on which i like to build on. as this forum seems dead, i hope i get an answer on this. im trying to subclass my already subclassed game object Jemini::GameObject <- WorldObject <- Tree Jemini::GameObject <- WorldObject <- Block etc the reason is that all WorldObjects share some behaviors and code i'd like to have in one place. but subclassing in this fashion seems not to be possible as the key for the behaviors is the class itself (game_object.rb:173) thus the behaviors defined in WorldObject are not recognized in Tree. the solution would be to add not only the behaviors for the class but all for the ancestors too. if i would like to edit the jemini library while developing a project of mine (using the source code as the jemini source) what would be the best way to do this? i would like to keep the project and lib code seperate. if i would like to commit my changes for review at some time in point, what would be the best idea to the workflow? just open a git repo and after each change make a commit and then submit the repo as pull request? cheers |
subclassing GameObjects
Replies: 0 - Last Post: October 11, 2011 13:48
by: meno
by: meno
« Older Topic
» Newer Topic
showing 1 - 1 of 1
Replies: 0 - Last Post: October 11, 2011 13:48
by: meno
by: meno
« Older Topic
» Newer Topic






