Jump to content
Sign in to follow this  
CyranoJ

Displaying Scores - Help requested

Recommended Posts

Hi guys,

 

could someone assist Jeffrey out with this one? I haven't got time to respond, and it looks like he needs a bit of help:

 

post-11520-0-38922500-1494224358_thumb.png

 

Thanks everyone, keep up the good work with your rB+ projects!

Share this post


Link to post
Share on other sites

dim a as UINT

 

 

'score shit is added to 'a'

 

do

'game loop goes here

rlocate 10,10

rprintint a

 

vsync

loop

 

 

 

 

this is VERY basic stuff, covered in rb+ documentation, the dodger example and probably 95% of every other example you look at

the only thing that may not be covered is UINT which translates to 'dim a as long' in vb terms

 

seriously, if you cant do this stuff with text then you should stop now.

Edited by omf

Share this post


Link to post
Share on other sites

If score=score+20, how did you manage to score 30?

Hit the pizza first for +10 and then the burger for +20. Thats good because I was worried about it adding the numbers correctly the way I had it. I didnt realize you had to call rprint in the subroutine where the score actually counts and then I wasnt sure if every score action had to rprint (thank God thats not the case)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...