Share your repls and programming experiences

← Back to all posts
slide
h
maazzubair99 (129)

a game i made
use wasd to move
try to get to the orange/yellow square

actual graphics coming soon

Commentshotnewtop
VortezCoding (3)

Really cool! How do you do the movement? User_Input?

Nettakrim (332)

r = readchar()
if r == 'w' and playerY > 0:

maazzubair99 (129)

@VortezCoding used readchar to track individual keystrokes. its sorta like 1-character input()

mwilki7 (938)

actually pretty addicting

LittleNomster (109)

love it, needs more levels tho

probablemartian (5)

[#level8 - by @probablemartian
[w,w,w,w,w,w,w,w,w,w,w,w],
[w,s,w,e,e,e,w,g,e,e,e,w],
[e,e,e,e,e,e,e,e,e,e,e,e],
[e,e,e,e,e,w,e,e,e,e,e,e],
[e,w,e,e,e,e,e,e,w,e,e,e],
[w,e,e,e,e,e,e,e,e,e,e,e],
[e,e,e,w,e,e,e,e,e,e,e,e],
[e,e,e,e,e,e,w,e,e,e,e,e],
[w,w,w,w,w,w,w,w,w,w,w,w],
]
i made a new level

mwilki7 (938)

I just had an idea.
You should have special blocks that unlock a wall or something when you touch it.

mkhoi (241)

Would you mind me borrowing some code from you? I'll make sure to credit you if i use that code in anything :)

maazzubair99 (129)

@mkhoi i dont have any problem with that

roylatgnail (842)

Might make a level maker soon (after I finish an IDE im making)

mwilki7 (938)

Here are some levels

    [w,w,w,w,w,w,w,w,w,w,w,w],
    [w,s,e,e,e,e,e,w,e,e,e,w],
    [w,e,w,e,e,e,e,e,e,e,e,w],
    [w,e,e,e,e,w,e,e,e,w,w,w],
    [w,w,e,e,e,e,w,g,e,e,e,w],
    [w,e,e,e,e,e,e,e,e,e,w,w],
    [w,e,e,w,e,w,w,e,e,e,e,w],
    [w,e,e,w,e,e,e,e,e,w,e,w],
    [w,w,w,w,w,w,w,w,w,w,w,w]

    [w,w,w,w,w,w,w,w,w,w,w,w],
    [w,s,e,e,e,e,w,e,e,e,e,w],
    [w,e,w,w,w,e,e,w,w,w,e,w],
    [w,e,e,g,e,e,e,e,g,e,e,w],
    [w,e,e,e,e,e,e,e,e,e,e,w],
    [w,e,w,e,e,e,e,e,e,w,e,w],
    [w,e,e,w,w,w,w,w,w,e,e,w],
    [w,e,e,e,e,e,e,e,e,e,e,w],
    [w,w,w,w,w,w,w,w,w,w,w,w]
maazzubair99 (129)

@mwilki7 thank you
i put them in the game

probablemartian (5)

I made a level, if you wanna use it - it works, I tested it.

[s,e,e,e,w,e,e,e,e,w],
[e,e,e,w,e,e,w,e,g,e],
[e,e,e,w,e,e,e,w,w,w],
[e,e,w,e,e,e,e,w,e,e],
[e,e,w,e,e,e,e,e,w,e],
[e,e,e,w,w,w,e,e,e,e],
[e,e,e,e,e,e,e,e,e,w],
AlexanderTarn (231)

How did you make the map? I have a game that uses a map and I want it to look like this.

roylatgnail (842)

@AlexanderTarn he used an array
@probablemartian s map he made shows what a map looks like

[
[s,e,e,e,w,e,e,e,e,w],
[e,e,e,w,e,e,w,e,g,e],
[e,e,e,w,e,e,e,w,w,w],
[e,e,w,e,e,e,e,w,e,e],
[e,e,w,e,e,e,e,e,w,e],
[e,e,e,w,w,w,e,e,e,e],
[e,e,e,e,e,e,e,e,e,w],
]
maazzubair99 (129)

i added more levels for all you guys who wanted some more
still working on a few more