UnderwareDESIGN

PlayBASIC => Show Case => Topic started by: monkeybot on October 28, 2013, 05:21:14 PM

Title: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on October 28, 2013, 05:21:14 PM
Latest Version 12-1-14  :-\

http://www.underwaredesign.com/forums/index.php?topic=4101.msg27901#msg27901



 

v1 - 29/10/13
v2 - 31/10/13
V3 - 10/01/14
V4  -12/01/14
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: BlinkOk on October 28, 2013, 05:52:37 PM
lookin good monkey dude. are those flat colours draw or are they a big bitmap?
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on October 28, 2013, 05:59:59 PM
big bitmap at the mo.
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: kevin on October 28, 2013, 11:45:27 PM

  Thrust was a bit of favorite back in the day.   Seems like it's all coming together pretty well, although it's running a bit slow here.   
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: BlinkOk on October 28, 2013, 11:55:53 PM
sorry didnt see the download
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on October 29, 2013, 12:52:34 PM
Quote from: kevin on October 28, 2013, 11:45:27 PM

 Thrust was a bit of favorite back in the day.   Seems like it's all coming together pretty well, although it's running a bit slow here.  

yes.i need to speed it up .it runs quite well on my i5 although it seems to slow down over time,i am fairly sure i am not leaking memory or types,i will look into other ways of doing the landscape.
Basically at the mo it is a massive sprite,would it be better to chop the sprites up or use images or use a world?

the reason i used sprites was for the collision,but i am open to ideas...

Quotesorry didnt see the download

That's what i thought ;-)
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: kevin on October 29, 2013, 08:29:52 PM
Quoteyes.i need to speed it up .it runs quite well on my i5 although it seems to slow down over time,i am fairly sure i am not leaking memory or types,i will look into other ways of doing the landscape.

  As environments get bigger, the object scope is  generally broken into zones or multiple lists to split worlds into manageable parts.  Effectively getting rid of overhead from processing redundant objects in the game world.   So when the world is 100x * 100y screens in size or something and player is in the screen region 1x,1y    the character refresh/update code isn't wasting time stepping the logic of characters and effects outside of say a 2 by 2 radius of the camera.

  The simplest is the an immediate object list  (which only contains characters within a set range of the camera) and then static or world view list.   As the camera gets near to the objects in world list, the character is checked out of the world list and added to the immediate list to be processed each frame.    So there can be 1000's of characters in the world, but only a fraction of those are only ever active.      


Quote
Basically at the mo it is a massive sprite,would it be better to chop the sprites up or use images or use a world?

the reason i used sprites was for the collision,but i am open to ideas...

 That's far from ideal.  When two sprite objects overlap and you compare pixels then it's basically drawing (span converting) both objects at pixel level every time.   If no hard pixels overlap then it costs probably twice or more than drawing it.    So if you have lots of characters off screen for example,  then a lot of time each frame is lost just making redundant comparisons.

 I wouldn't use sprites for the world, i'd either use Maps or manually processed images.   You can run collisions on maps and those methods are designed with early rejection in mind, making them far more efficient then sprite level collisions.

 For this type of game i'd most likely use vector collision, since Worlds have things like nearest collider built in.  Which means you can query the world for how far away from the something hard the character is.  If it's too far way then collisions with the ground/tunnel become point less.


 Example:  Hell Eagle (Map / Level Mock Up) (http://www.underwaredesign.com/forums/index.php?topic=3914.0)


Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: kevin on November 03, 2013, 09:37:56 PM

Checked the update and it runs faster here,  showing a 1500+ FPS rate, which is seem pretty bogus when in windowed mode.   

Also, might i recommend adding a new post about updates in future, otherwise people have to notice the original edits.

Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: stevmjon on November 04, 2013, 05:22:13 AM
hey monkey,

this is fun to play. I like the inertia you made. very smooth.

my computer runs at 4400+ frames. maybe you could put a limit on it as to not max out a cpu core?

also, could you add option of ASDW keys for control of ship, because I am too used to this.

   keep up the good work,  stevmjon
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on November 16, 2013, 11:58:23 AM
Duly noted,thanks for the feedback.
i will put an option in to redefine the keys.

i have found that i get much smoother gameplay when i throttle the framerate with a timer hence the seemingly high fps count.
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on January 10, 2014, 11:59:30 AM
New update !!

10-1-14


A lot of work has gone on behind the scenes.

Check it out!

Still needs loads more work.

Thanks to BlinkOk for the Sub and some nice ideas!
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: kevin on January 11, 2014, 07:18:00 AM

tried it, but it's way too slow to be playable here
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on January 11, 2014, 12:47:02 PM
hmmm thats strange it runs well on mine.will investigate.

I find that it runs fine on my i5 which is not exactly cutting edge.

If i use setfps(50) the game seems to run really jerkily if i employ a timer of 1000/50 then it all runs very smoothly,any ideas?
its running in 9ms a frame on my machine.

i just found another sync in the loop.oops!
New version up.
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: kevin on January 13, 2014, 11:32:34 PM

The update runs at playable enough speed. 


QuoteIf i use setfps(50) the game seems to run really jerkily if i employ a timer of 1000/50 then it all runs very smoothly,any ideas?
its running in 9ms a frame on my machine.

  It's most likely not releasing any time back to windows, where  Sync does when SetFps is enabled.    The latter is far more system friendly. 

Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on January 14, 2014, 12:50:16 PM
is it strictly necessary to give cycles back to winblows when playing a full screen game?


EDIT: YES
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: BlinkOk on January 14, 2014, 02:28:48 PM
hey monkey dude. would it be ok if i rendered that sub thingy at 5 degree rotation increments for 360 degrees (72 frames.)?
if it's ok would you rather have it in a sheet or individual images?
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on January 14, 2014, 03:46:51 PM
do you not like the way it rotates at the mo?
would it be possible to do a front on(facing the camera) image ?


ahh! it just clicked,i suppose you are thinking about shading and shadows...
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: BlinkOk on January 23, 2014, 05:34:54 PM
i've been a little busy with other things lately monkey dude.
ill get to this as soon as i can
Title: Re: Monkeybot's Latest WIP - Teathered lunar lander
Post by: monkeybot on January 24, 2014, 04:36:09 AM
no worries dude.