News:

Function Finder  Find all the functions within source code files

Main Menu

Asteroids

Started by monkeybot, December 16, 2009, 03:23:17 PM

Previous topic - Next topic

OldNESJunkie

I like the way this plays as well, but I have to agree with Kevin. The ship seems to rotate too fast. Also noticed you seem to have friction that slows down the ship after you thrust, seems to slow down WAY too fast as well. Other than those two things though (minor), nothing I can see that isn't great. Also noticed one bug with some asteroids the vector line on one side is longer than the side of the asteroid. Happens on one asteroid on every level I've played so far, again minor.........


  -
/  \
|  |
\  /
----

monkeybot

thats great,thanks for the feedback.
i will tweak and re-post.

Cheers

kevin


monkeybot,

   can you put some screenies up.. So i've something to link to :)

OldNESJunkie

monkeybot,

just tried the 11-1-2010 version & the in-game speed is WAY too fast totally uncontrollable ship asteroids too fast to even hit like it's running at 500 FPS, but the death animation plays at the correct speed, also on the title screen, the select start level is too far up, covers the bottom high score.

monkeybot

#19
Could you give me details of your system/OS/screen resolution etc... etc...

OldNESJunkie

#20
Sure,

Windows 7 HP 64-bit
Nvidia GeForce 9800M GTS 1 GB
1440x900 Resolution
4GB DDR3 RAM


It may be an Nvidia vsync setting, let me check that before I forget again & I'll edit this post.

Edit:

Well, that didn't make any difference, tried several settings, same issue.

monkeybot

The death anim and title page uses setfps,the game loop uses a timer and vsync.I wonder if anyone else has had this problem.

BlinkOk

yes i have the same problem. i mentioned it in my last post. i have a fast machine as well

monkeybot

ok thanks.I will look into it asap.

kevin


I suggest mocking up your game loop and posting it so we can have a look at what you're doing.   

monkeybot

#25
function gameloop()

   local gametimer2=timer()
   Constant gamespeed=50 ; 50fps
   Repeat

      If timer()>=gametimer2
           gametimer2=(Timer()+(1000/gamespeed))
        ....run game code
   ....
     
      endif
     
   Until   player=dead
endFunction

i implemented this system so it will enable slower machines to run the game as fast as
possible.

kevin


  Thanks, but care to post something people can run ? - Help us, help you..   

monkeybot

shall i just email you the source kevin?

kevin


You can if you like,  but I just think it'd be better if there was some small bit code the people having problem could run. 

monkeybot

#29
; PROJECT : ast frag2
; AUTHOR  : Microsoft
; CREATED : 16/01/2010
; EDITED  : 21/12/2010
; ---------------------------------------------------------------------
ScreenVsync on
gametimer2=timer()

gameloop()
end

Constant gamespeed=20 ;fps


function gameloop()
  local x
  Repeat
     Cls 0
;
     If timer()>=gametimer2
;         gametimer2=(Timer()+(1000/gamespeed));gamespeed)
    gametimer2=(Timer()+20);gamespeed)
        circle x,100,5,1
        x=x+1
        sync
  EndIf
  ; sync
  Until   false
endFunction


by my calculations This should run at 50 fps ..ish

1000/20=50