|
Post by tbird on Mar 22, 2020 22:12:21 GMT -6
Hey guys, I am almost healthy again, just waiting at the hospital at the moment had to take my ol lady here for maybe it looks like pneumonia. I will be back coding again as soon as love shows signs of normality again.
|
|
|
Post by johnno56 on Mar 22, 2020 23:09:18 GMT -6
Ah... Good to know your health is improving...
|
|
|
Post by kennn on Mar 23, 2020 3:18:35 GMT -6
tbird,I am almost healthy again, just waiting at the hospital at the moment had to take my ol lady here for maybe it looks like pneumonia. Wuhan Pneumonia? So many people were infected with COVID-19! So terrible now!!!!!!!! aurel,I am not experienced enough and therefore I could not present accurately in my previous posts. I may not participate in the project since I am busy at the moment. I may keep quiet first. johnno56,Though I cannot continue, please continue the Asteroid project. This is a very valuable project and is the RCBasic community's real hope.
|
|
|
Post by johnno56 on Mar 23, 2020 7:33:49 GMT -6
Asteroid movement is proving, for me anyway, a struggle. I now have the ability to move asteroids for all four directions, rotate and wrap around the screen. I still have not worked out generating the large asteroids; not yet incorporated collision with bullets and the ship; still have to figure out the generation of smaller asteroids after the primary collision... I'm going to have to order in more coffee...
|
|
|
Post by n00b on Mar 23, 2020 8:39:51 GMT -6
johnno56 Asteroids is actually a difficult game to code. If you are using sprites for the asteroids you can use DrawImage_Zoom with a number less than 1 for zoomx and zoomy to make the smaller asteroids. For the screen rap around, that should just be something like this: if x < 0 then x = screen_width end if
if y < 0 then y = screen_height end if
if x > screen_width then x = 0 end if
if y > screen_height then y = 0 end if
|
|
|
Post by johnno56 on Mar 23, 2020 15:01:29 GMT -6
Hey n00b,
Drawing primitives and or sprites, for the asteroids, is not my problem. But thank you for the example. I have my asteroids moving, rotating (DrawImage_Rotate) and wrapping around... Not very well but it's getting there... Searching for Asteroid listings, that I can convert, is like searching for a proverbial needle in a haystack.... I am beginning to think I should have stayed within my limits...
|
|
|
Post by n00b on Mar 23, 2020 19:00:40 GMT -6
Awesome. It sounds like you have the hard stuff done already. How is the ship movement going?
|
|
|
Post by johnno56 on Mar 23, 2020 20:58:44 GMT -6
At the moment I am using a basic Circular ship. Looks a lot like fried egg with a smaller circle on it's circumference. The ship doesn't actually rotate, not that you'd notice it anyway, but the smaller circle (gun) 'orbits'. General movement is very much like movement in space. Direction of the 'gun' determines the direction of movement. Left and right arrow to rotate. Up arrow to move. The longer it is pressed the faster the movement. Slowing down requires the ship to face in the opposite direction and press the up arrow until stopped. As I haven't applied and 'friction' it is difficult to actually remain truly stationary. The ship is capable of wrapping around the screen. Firing via the space bar.
I have begun working on the asteroids. As I stated earlier, only the movement, rotation and wrapping been acheived. I have no idea as to how to generate 'new' asteroids (both large and small) as yet. Difficult to find "basic" listings.
My Attack3 game was proto-typed using Scratch. Perhaps I could do the same with asteroids? Once I can figure it out, I may be able to throw together a demo. But I do not know how long that will take. It's now been two weeks...
Back to research...
|
|
|
Post by aurel on Mar 24, 2020 0:50:58 GMT -6
I can it is shiped with Creative basic examples
|
|
|
Post by johnno56 on Mar 24, 2020 1:53:10 GMT -6
I would be interested in knowing where these examples are... more information please... lol
|
|
|
Post by aurel on Mar 24, 2020 8:43:29 GMT -6
johnno it is not problem but program contain lot of UDT and directX sprites commands and as such might be very problematic
|
|
|
Post by aurel on Mar 24, 2020 8:44:25 GMT -6
like this:
TYPE OBJECT def Loc:floatPoint def ViewAngle:DOUBLE def FixedAngle:DOUBLE def Direction:floatPoint def id:int def tt:double def tf:int def BoxBoundry:int def Shieldup:int def Active:int def Amount:int def SpriteID:INT ENDTYPE
TYPE gplayer 'The players spaceship def Ship:OBJECT 'The players Spaceship wrecked! def WShip:OBJECT 'Holds Ship image for lives left.. def Ships:OBJECT 'Players Bullets def Bullet[20]:OBJECT ENDTYPE
|
|
|
Post by aurel on Mar 24, 2020 8:52:05 GMT -6
|
|
|
Post by johnno56 on Mar 24, 2020 15:10:02 GMT -6
Hmm... I see what you mean. Some of the stuff in there is familiar but the rest of it may as well be written in Klingon...
"nuqneH. Qapla'" (loosely translates: Thank you and Success) lol
|
|
|
Post by kennn on Mar 24, 2020 19:01:59 GMT -6
|
|