|
ROKART
Oct 9, 2021 15:09:00 GMT -6
Post by rosy on Oct 9, 2021 15:09:00 GMT -6
I throw in before Linux crashes my files again ... A game for the 1K contest. RCtrl control. Presentation on YT:
Race Against the Computer, Stage 2:
Attachments:ROKART.7z (88.36 KB)
ROKART2.bas (18.97 KB)
|
|
|
ROKART
Oct 11, 2021 4:16:19 GMT -6
Post by rosy on Oct 11, 2021 4:16:19 GMT -6
I posted a newer version ... And we have a problem again ... The computer on each lane should perform the same calculations and give the same results. So the computer player should not come off the bend. But sometimes it flies out. Why ?? And it's even more interesting ... On line 321 for parameter> 24 the computer generally does not fly out of the way if we directly type 24, 25, 26 ... But if we type (24 + Rand (10)) instead - it starts to fly out. .
Maybe someone would like to design new tracks ...?
|
|
|
ROKART
Oct 12, 2021 8:44:20 GMT -6
Post by rosy on Oct 12, 2021 8:44:20 GMT -6
Another version with 2 views. Which is better? I played a game all day. Some mental eclipse ... Hmm... Interesting translation ... I wrote that I tired it all day, only without Polish characters.
|
|
|
ROKART
Oct 12, 2021 11:03:27 GMT -6
via mobile
Post by Tomaaz on Oct 12, 2021 11:03:27 GMT -6
And how does it look without Polish characters?
|
|
|
ROKART
Oct 12, 2021 11:06:56 GMT -6
Post by rosy on Oct 12, 2021 11:06:56 GMT -6
The game is without Polish characters, but with Polish subtitles
|
|
|
ROKART
Oct 13, 2021 13:53:36 GMT -6
Post by rosy on Oct 13, 2021 13:53:36 GMT -6
Another update ... Use the W key to change views.
I do not know what else can be added except tracks and music ...
|
|
J7M
New Member
Posts: 18
|
ROKART
Oct 13, 2021 14:47:24 GMT -6
Post by J7M on Oct 13, 2021 14:47:24 GMT -6
great game. reminds my, that I have somewhere the "real world version" of your game. To run your game I have to do the following:
STEROWIEC() Canvas(0) a=(a+1) MOD 1184 a = 600 otherwise the came crashes when drawing the images
DrawImage (2,a,0) DrawText_Shaded("(C)2021 ROSY",a-384,0,Bia,Cze) I think "a" reaches after a while a non valid value.
|
|
|
ROKART
Oct 13, 2021 15:59:36 GMT -6
Post by rosy on Oct 13, 2021 15:59:36 GMT -6
Strange .. It works fine for me ... What do you have for Basic?
|
|
|
ROKART
Oct 17, 2021 11:49:30 GMT -6
Post by rosy on Oct 17, 2021 11:49:30 GMT -6
I uploaded another version and added music. I think you can submit it to the competition now. And I have another contests: 1. Track record - mine: 11.31 2. Guess what pieces the music consists of. I suggest that this is a mix of 5 songs by a famous artist.
|
|
|
ROKART
Oct 18, 2021 10:32:14 GMT -6
Post by aurel on Oct 18, 2021 10:32:14 GMT -6
Hmm one key game if i get it right so CTRL speed up formula and player must care to slow down on corners is that right ? i get some error render but game still work
|
|
|
ROKART
Oct 18, 2021 14:08:44 GMT -6
Post by johnno56 on Oct 18, 2021 14:08:44 GMT -6
Aurel,
This is my little "template" that I use for all my projects.
xmax = 640 ymax = 480 title$ = "" center_x = windowpos_centered center_y = windowpos_centered WindowOpen(1,title$,center_x,center_y,xmax,ymax,WindowMode(1,0,0,0,0),1) SetWindowAutoClose(1, 0) ' <<<<<<<<<========================================= 1,0 window#1 0,0 window#0 CanvasOpen(1,xmax,ymax,0,0,xmax,ymax,0) ClearCanvas
randomize(timer)
if Not WindowExists(1) Or WindowEvent_Close(1) Then ' (1) window#1 (0) window#0 end end if update() In my example the main Window is "1" (change as needed) Important: The "If Not" MUST be place before the "update()"
I hope this helps.
|
|
|
ROKART
Oct 18, 2021 14:48:11 GMT -6
Post by rosy on Oct 18, 2021 14:48:11 GMT -6
I don't know what the rendering problem is. The problem is with reading the key in new RC versions. I uploaded a presentation on YT as it should look like.
|
|
|
ROKART
Oct 18, 2021 23:58:37 GMT -6
Post by aurel on Oct 18, 2021 23:58:37 GMT -6
john I dont have problem with template or how base program should look i understand that isbased on SDL layer... btw base template is nice
|
|
|
ROKART
Oct 19, 2021 1:58:03 GMT -6
Post by johnno56 on Oct 19, 2021 1:58:03 GMT -6
Thank you... I only made because I hate typing the same thing over and over... I am SO lazy... lol
|
|
|
ROKART
Oct 19, 2021 9:07:35 GMT -6
Post by aurel on Oct 19, 2021 9:07:35 GMT -6
sure point is 100% valid ..it is called a skeleton i used this method in many my own gui win programs too.. (pssssst ....it sounds like tomaaz ...pssst copy/paste master ) heh
|
|