Share your repls and programming experiences

← Back to all posts
Kars
lvinwan

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

Voters
maxina
johnnyfrancis
tobycurrie1
SilvermoonCat
EdwardBentler
Brableeb
xXToluwaXx
millford
CoreyBradley
Firestorm8
Comments
hotnewtop
Unorthodox

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

[deleted]

@Unorthodox yes, jojo refrence good

ch1ck3n

The fuel runs out SO QUICKLY!

CodePython2

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

RyanNewman3

thats AMAZING

phantomlord45

great but is kinda buggy

Japoll246

I would make it not rotate. That is literally the ONLY thing I would change. Awesome game

hg0428

Does not work on mobile

[deleted]

are you a mobile programmer????????!!!!

hg0428
AshCodz

WOW.

jiakai

i keep falling out of the arena

JoshuaS3

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

JonathanP3

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

17dsmyth

@jonathanp3: how did you build it if ALVINWAN1 posted

awesome10

@17dsmyth first,ik im way late but ibuiltthis i think is somewhere on repl ( repl.it/ibuiltthis )

WFSOverpowEr

how do i start

fherrera

doesnt work

brandicook

cool

Dalimecoder

cool

oalshehr

awesome game

Krod24

I like Huntin' Fishin' better!

haya

@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 :)

abelsantosh

Good game

nthli

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

haya

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?

lvinwan

@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

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

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.

lvinwan

@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

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.

lvinwan

@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

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.

lvinwan

@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

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

lvinwan

@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

fun game need to add a reset button

lvinwan

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

Caleb_Bradley

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

haya

@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

lvinwan

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

lvinwan

@zavexeon: thanks!

mariojavach

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

haya

@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.

lvinwan

@mariojavach: aw thanks!

lvinwan

*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

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

Caleb_Bradley

@iamcaleblol: yea that would be cool

lvinwan

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

taniakapoor

love it

Krod24

@taniakapoor: Terrible

lvinwan
lvinwan

@taniakapoor: thanks! :)

amasad

FYI: you can now use a scoreboard! Check it out https://repl.it/ibuiltthis/games/p/attention-scoreboard-api

lvinwan

@user23802991: whoa, sick. thanks!