Share your repls and programming experiences

← Back to all posts
Kars
ALVINWAN1 (255)

A survival driving game. Use arrow keys to move, avoid the trees, and collect fuel! https://repl.it/@ALVINWAN1/Kars

Commentshotnewtop
CodePython2 (10)

you can cheat and go around. The visuals are cool but they are anoying loots of times

Unorthodox (5)

A survival driving game? Damn it, I thought it would be the Ultimate Lifeform.
Cool though.

jiakai (0)

i keep falling out of the arena

JoshuaS3 (8)

how am i supposed to compete with this? you have won the game before it even started my man.

JonathanP3 (0)

@joshuas3: Hi Josh funny to see you exploring I built this

17dsmyth (9)

@jonathanp3: how did you build it if ALVINWAN1 posted

Krod24 (1)

I like Huntin' Fishin' better!

haya (22)

@krod24: I edited your comment. In Repl.it we welcome all Repls levels and we keep an open mind. Giving a good feedback is very important, this is how we improve and learn :)

coder_panda (0)

good program but it's too easy, and no way to lose

haya (22)

I think many people agree with this. Some designers decide not to make the player dies so that they keep playing. However, I like it better when the player dies. @alvinwan1 you can think of this as a next iteration, right? what's your thoughts?

ALVINWAN1 (255)

@haya: For sure. Thanks for the feedback everyone. I just added a time and implemented the fuel bars. You can view the updated game at https://Kars--ALVINWAN1.repl.co

CyanCoding (1448)

Great job! Just so you know though, I did find a bug with it. What would happen is I would run into a tree and continue holding down forwards. Eventually, I could press the backwards key and it would actually drive me forwards through the tree. Once through, if I pressed a combination of the two, the car disappeared. Check out a gif of it: https://imgur.com/r8inJhJ.

CyanCoding (1448)

Also if you didn't know, you can drive off the map without anything happening to you. I would suggest it so that the car respawns when that happens.

ALVINWAN1 (255)

@microwither: Thanks for the feedback. This is great. Admittedly, I had a hard time with the object collision. I've updated the "algorithm" since, and it's hopefully less awkward. For falling off the edge, that's a great idea.

hayaodeh (178)

love it! it's very simple, wait on the car to appear and move it back and forth to the fuel station ⛽️ between the trees 🌲🌲
I would suggest to add a score and levels, the more I score the harder it gets, by adding multiple trees and maybe multiple fuels.

ALVINWAN1 (255)

@user7282973: Ooo multiple fuels and trees are great ideas. One concern I had is if there were so many spawns that the game was literally impossible. I'll keep that in mind, for sure.

MealTime (0)

My guy, I can just drive around over the abyss. Also tree hitboxes are bugged or something? I can basically shift through them by going back and forth with the car.

ALVINWAN1 (255)

@mealtime: Yeah, they're bugged. The boxes are assumed to be axis-aligned. I could implement more robust checking or use a real physics library, haha.

TotallyNotMessi (1)

The "area of play" clips over the score, i don't know if you are aware.

ALVINWAN1 (255)

@totallynotmessi: Yeah, thanks man. I'll think about how to deal with small screens. Until then, the full screen version is probably the way to go https://Kars--ALVINWAN1.repl.co

CalebDuff (0)

fun game need to add a reset button

ALVINWAN1 (255)

@calebduff: thanks! hm, good idea - I've written it down

Caleb_Bradley (1)

fun game but maybe add a start button instead of it already started...just so people know

haya (22)

@calebbradley: yeh I agree, it would be a good indicator. I think most people like a start of a game and end of a game

ALVINWAN1 (255)

@calebbradley: ah yes, I should add a start screen of some kind. thanks!

mariojavach (0)

Why is this man getting all of this hate. This game is amazing for a repl

haya (22)

@mariojavach: please mention me if you noticed any uncool behavior on in I built this 🔨. I personally like this game, our taste is different from person to person. I focus on keeping the language clear and civilized.

ALVINWAN1 (255)

*I would recommend playing at https://Kars--ALVINWAN1.repl.co instead of the link I posted above.

This game was a bit simple admittedly. I developed it for kids in underprivileged communities to code, as a part of Bit by Bit (http://littlebitbybit.org\)

Our group has also developed two other games that you can now find on repl.it!

JSer (1207)

You can add controls for mobile devices (such as touching different parts of the screen)

ALVINWAN1 (255)

@iamcaleblol: thanks for the suggestion - I'll give that one a go!

LeonHolland (0)

Good. Is there a way of decreasing the lag between resets? That would make the game better. Also if there were levels. Just saying. But good work!

ALVINWAN1 (255)

@leonholland: Thanks for the feedback - I may not have done it quite correctly, but I tried once and the game began to lag horribly. Levels are a good idea too, I will give it a whirl.

HaileyW (0)

I like the idea, its just the driving area CONSTANTLY spinning makes it a little disorienting. Maybe you should just turn the perspective after the player reaches the gas pump?

ALVINWAN1 (255)

@haileyw: haha I've had similar feedback from friends - perhaps I'll add a toggle that stops the spinning?

itbarsoum (46)

if you are stuck against a tree and press the back arrow it goes through the tree. otherwise cool game

andypalan (30)

Awesome game, definitely one of my favs on here!

emilychang (0)

this is a really neat game! i really like the graphics

Chiling (27)

The screen kept turning I can't see the car then