Jump to content
  • Advertisement

Tanzan

Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

103 Neutral

About Tanzan

  • Rank
    Member

Personal Information

  • Role
    Game Designer
    Programmer
  • Interests
    Art
    Audio
    Business
    Design
    DevOps
    Education
    Production
    Programming
    QA

Recent Profile Visitors

1384 profile views
  1. Tanzan

    King Of Pirates DevBlog_1

    Looking forward to it, let's keep each other motivated to stay coding ;-) Eat-sleep-code repeat...
  2. Tanzan

    position along a circle

    Sometimes i'm almost human ;-) what i did was: for(int i=0;i<aantal;i++) { x = i * 36; y = (int) Math.sqrt(Math.pow(radius, 2) - Math.pow(x, 2)); } so the 5th object at index 4 got (4*36) obv. instead of (5*36) grrr thx again Alberth.
  3. Tanzan

    position along a circle

    Thx alot Alberth! ;-) Still wondering though.....
  4. Tanzan

    position along a circle

    Hello all, So i want to place objects along a (half) circular line with the formula (x-a)^2 + (y-b)^2 = r^2 object pixel size are 36px. so if i have 10 objects then r would become (10.36):2 = 180. finding Y for X =0 (0 degrees)becomes sqrt(r^2 - 0^2) Y becomes 180 finding Y for X =5 (90 degrees) becomes sqrt(r^2 - (5*36)^2) Y becomes 0 this makes perfect sense... but if i do this in a for loop then the sequence for x will be (0,36,72,108,144,180) this means that the 6th object gets the 90 degrees Y value....and not the 5th. (for i= 0 etc) x = i*36... I know its probably very 'dumb'question but i just don't see it anymore Thx in advance...
  5. Tanzan

    Game Design Student Looking fo Advice

    Nice tip! i didn't knew about those ;-) And welcome LaurenDenise!
  6. Tanzan

    Nimbatus - How a free demo got our game funded

    Wow, thank you very much for this nice outset ! I'm happy for you guys that it worked out Regards..
  7. Thx Kylotan, like i said just tried to find the magic OO trick ;-) to poll constantly feels inefficient (allthough it's how i do it now)
  8. Hello Haegarr, Thx for your reply as well On android the 'view' is not so passive i think (like i said its not really mvc but...) The surfaceview gets the update tick from the OS...so it creates the world (model) which creates all the other stuff then updates itself every cycle ...the surfaceview asks about all visual objects and draw them on the screen. main game state is guarded by return enumeration from world.update (levelover,gameover) But what if the level had waves which have rounds which have parts etc etc...and you want to display the end and beginning of the nested stuff? (level 10->wave8->round14->part1 ) i know its a stupid example but just to make the point would you ask every cycle if they are changed or make a message queue in world or like Kylotan suggests do it with subscribing through observer pattern ( i might do it wrong thats why i ask what's the best practice, i just want to learn from you guys)
  9. And if its a non-visual ? (container-n class)
  10. First of all thx for your fast and senseful reply ;-) "Firstly, if you have a complex nested set of models, you should consider whether each of those objects should have its own view, instead of trying to have one view represent a lot of different things. " That's an interesting approach.... "Secondly, it's usually simple to have a model tell a view when something has changed, and then the view knows to refresh data from the model. Does that not work for you? " I guess you are reffering to the Observer pattern which i know would probably work, but i just would like to know whats the best way (how do you do it) to do it in design respective OO way... In my situation it is not a 'solid' MVC design but its for an project on android..where the view (surfaceview) instantiate the world which updates itself every cycle and tells the 'important' stuff through states (i.e. collision,game over etc) But let's say there is a car amazingly nested all the way to a bolt(s) object(s) and you want to tell something in your view about that specific bolt (lets say it becomes loose). Would you 'ask' (method) the world->->->->n (bolt) ?
  11. Hello all, My question is a bit hard to describe but hopefully it will do... I just wonder what you guys think is the 'best' way of getting info about the model in your view(s).. To clearify (i hope ;-) ) If the model is updating itself every game-cycle and the (deep) nested objects all do there jobs how do you get info where only the view is interested in? So my question is not how to do it but more what do you people think is the best way to do it ? Regards, Alex
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!