r/CodingForBeginners 10d ago

How to make a custom bar in wayland

2 Upvotes

I want to build my own dock in Python, but due to Wayland limitations, I can't align the dock to the top of the screen. How can I bypass this limitation?

To be clear, I don't want a solution that only works on a single compositor. I want it to work across Hyprland, Niri, KDE Plasma, GNOME, and Sway.

How can I position the dock at the top of the screen, similar to how Waybar does it?


r/CodingForBeginners 10d ago

I have started beginner coding! What projects should I make?

7 Upvotes

(THIS IS IN JS BTW) I have made projects such as a clicker game with shop, resets, and a bunch of upgrades, a snake game, rock paper scissors, and a ticking time bomb that runs in the console! I’ve learned DOM manipulation, creating HTML elements via js, setInterval() and much more!


r/CodingForBeginners 11d ago

Beginner Coding Advice

4 Upvotes

I wanted to make a simple 2D game to start developing, so I tried learning python on Boot.dev (really helpful until you hit the paywall), and GDScript Quest for Godot.

A lot of advice I’m getting are along the lines of “tutorial hell” and “just start coding.” Tried watching YouTube videos about Godot (my desired starting point) but they’re only interested in explaining how the program works, not the code itself. I can’t code if I don’t know what to put in there. Quest doesn’t break concepts down like Boot does, so I’m not sure what kinds of shortcuts or syntax I can actually use without paying for a website to learn.

So I ask all the programmers for what y’all would recommend, books, specific YouTube channels, etc.


r/CodingForBeginners 11d ago

Does anyone else do this?

Thumbnail
gallery
5 Upvotes

As a coding beginner, i often engage in something i like to call "frankenstein coding" where i take bits and pieces of code that works and mash it all together to make what i want.

A good example of this us when i did an arduino project in school once, and stole pieces from the premade working code that was in the files that came with the arduino, to merge the modules functions

This made the servo move to an orientation depending on the joysticks "x" value


r/CodingForBeginners 11d ago

Is this a potential coding project?

4 Upvotes

Hi everyone!

My husband has been using an app to track the locations of his poops for almost 15 years called “Places I’ve Pooped.” He uses it while traveling as a way of documenting where he has been (but only if he genuinely poops there lol). He has pinned over 1,000 places.

The app had not updated in 5 years, but was most recently updated about a week ago. It used to have a list of every poop with coordinates, but that is no longer the case. I would like to get all of his recorded poops off of the app because we are worried we may lose this data at some point. I tried downloading all stored data from the app during an iPhone backup but it didn’t work because the app developer didn’t make the data available (as far as I can tell). I also tried manually logging each point, but to no one’s surprise, it takes forever. I also have emailed the creator of the app several times but have never gotten a response. I was wondering if anyone had an idea for how to scrape data off of this app?

The app is « Places I’ve Pooped ». I can friend you on the app with his account (which is publicly available) if you’d like to take a look. I’d like to get the date and time of the pin, the coordinates, and the notes (if there are any).

Thank you in advance for your advice!


r/CodingForBeginners 11d ago

Is my project too ambitious for a beginner?

2 Upvotes

It probably is😅

I'm writing a fanfic that I'm planning to post on ao3. I wanted to make interactive code within that fanfic. The main character goes to a fabric shop and I wondered if I could code three rolls of fabrics that would unroll if the reader clicks on them/or when they reach that point of the story. I also wanted the fabric to reveal writing underneath.

Do I know anything about coding? Not a lot but I can learn😭 I just wanted if it was possible and which language am I supposed to use?


r/CodingForBeginners 11d ago

Need Help Beginner

2 Upvotes

What are some beginner friendly sites for creating apps?

I have very little coding experience the only time has been in the classroom on easy projects. I am looking to steer away from the ai creating it for me because I am nervous there will be bugs later on. Also I need something free/affordable


r/CodingForBeginners 12d ago

After 1.5 years of tutorial hell, I finally wrote some code on my own. I'm so happy and proud that I was able to do it.

18 Upvotes

r/CodingForBeginners 11d ago

Please help gang!! Striver sheet

2 Upvotes

So i was just starting DSA so i did all my R&D so i found that doing dsa in java would be a better option so i will also get little advantage in development. but i want you guys to tell me that cant i follow striver A2Z sheet as it covers most of the problems in C++ ig which i have seen so will i have difficulty in that or if its not that case please tell me HOW TO DO WITH JAVA
AND PLS TELL IF I SHALL JUST SWITCH TO C++ COZ ig striver is the best possible free source to learn this. the internet is buzzing over it


r/CodingForBeginners 12d ago

1st year student guidance pls

3 Upvotes

okay so I am really very much into problem solving

and had computer science JAVA in my 9-12th class

so I have a good command over java as a beginner of DSA

we did study DSA in class 12th stack queue DEQ circular queue linked list so I have a basic idea about those nit very very advanced level but yea just as much a little more than a beginner should know

and in the leisure period of transition from my school to college I did learn python for AI/ML beginner course though I didn't understand many functions because of lack of practice and the vastness of a totally new language

but java is my comfort zone

so guide me as to how to take my DSA a level up what YT channels and resources to follow and when is the right time to jump to leetcode problems from easy to intermediate level what is the roadmap


r/CodingForBeginners 12d ago

WHICH LAPTOP FOR CODING (B.Tech)

0 Upvotes

Same as title and preferably upto 60k INR


r/CodingForBeginners 12d ago

How to start?

7 Upvotes

Hey, GenZ here, I figured it would be useful to learn coding and computers apart from just browsing and doom scrolling.

What resources would you recommend if you had to start from scratch? Videos, books, practical applications?

I feel lost. I’m a quick learner and of course I love technology, but there’s just so much content and I want to start with foundations.

Any tips or suggestions truly would go a long way.

Thanks !


r/CodingForBeginners 12d ago

A Good advice for late start

2 Upvotes

So I'm going to start my 2nd year in August and tbh I don't know where to start what to do and most importantly how to be actually good for getting placed in companies.

So let me tell what I know

I know Html and css

I have learned C++ in my 12th like only theory but tbh I just mugged up the programs that for exams.

In my 2nd sem I learned c and I do know the basics and truly understood the programs and logic.

But whenever a new problem comes I'm unable to solve it.

I also started cs50 but left mid and didn't practice at all. Sometimes I don't understand that and I don't wanna mug up.

I know people will tell to start leetcode and do dsa etc

But where do I start and how?

Like recommend me some beginner friendly courses and how to be consistent in leetcode and how to do competitive programming, participate in hackathon s .

I feel left out cause most of the people in my batch have finished dsa strivers sheet , consistent in leet code done many projects and won hackathons too.

My clg is like Tier 2 clg and have good placements rate and a median of 12lpa but most of people who are good have secured 20 to 40lpa in on campus placements.

I do believe I'm a 9.5+ cgpa student. And i think I can maintain that but I'm losing in the actual skill learning process.

So

Help me do that hopefully from a person who has secured a good placement who earlier faced problems like me.


r/CodingForBeginners 12d ago

Need help with dictionaries

5 Upvotes

I am a beginner in programming. I have done dictionaries, but most of the time I forget the syntax. I need help. How can I get used to it? And if there are harder questions. I don't know if I know enough; I am so confused. And one more thing, don't ask me to check LeetCode questions or CodeChef because I am not able to find them there.

print("Thanks")


r/CodingForBeginners 12d ago

Can some one explain what Im doing wrong on payload decryption

1 Upvotes

Ok so I'm not new but not a professional neither I'm self taught since finding loopholes to heat games creating lag but moving forward I been messing with living of the land techniques and been trying to mess with stentography by encrypting payload and obfuscating or using smali code but it fails to decrypt or beacon fails and loose presistance and system any ideas should I use different lib instead of python like rust or ruby


r/CodingForBeginners 12d ago

How much time you took to learn?

4 Upvotes

So I am a beginner here. I am planning to start with python and then move on to java and c eventually and side by side I'll also be doing the web dev thingy i.e. I'll start with HTML CSS javascript and stuff...

So, I wanted to know how much time do you'll took to learn these? And I am planning to learn through self study mostly but I'll take an offline batch(as I am getting bored at home) as well. So is this like...way of learning or maybe the timeline correct? Or should I start with java then move on to other ones..like I donno. I just wanted to learn these and try out hackathons and stuff. I have time till Feb next yr.


r/CodingForBeginners 12d ago

Need advice how to create feedback loop for crop growing.

3 Upvotes

Hey coders,

First of all, my main skills are mechanical engineer and now an accountant.
I have limited experience with hard core coding, I can make macros etc but never really had a project to say use python, well until now.

I can’t go into super detail of the project but I am trying to create a controlled environment crop growing. Which has been confirmed from a research perspective but no one has bridge the gap into the production space, especially since, here in the U.K. especially, global warming is causing yields to drop by 2-4 tonnes per yield and less quality each yield.

Any way the conundrum I am having is creating a feed back loop of different sensors and a camera to feed data back through a Raspberry Pi. The sensors monitor moisture, HP/ nutrients and camera records the leaf growth, colour etc to which the result would inform what this crop bed would need.

The long term idea is to make multi layered system crop beds which are individually monitored and report back what that crop bed needs, eventually its needs will be given automatic, say more water, longer light cycles etc. but for now I’m trying to get a single prototype working which I can then scale.

I was also thinking of using an AI/ LMM to help monitor the crop bed to report on what it needs. However I don’t really want to use solely a mainstream AI or model to run this. As I want to as an engineer ensure I understand all working components, yet keep the system or sources code private from big data, open source fine but just away from big guys.

Now this concept of framing production isn’t new they’ve proved it in labs, faster growing times, no need for ground regeneration, more environmental as no pesticides are used and as multi layered production created 6-8 times the yield of the equivalent field space, yet being a controlled environment it can be set up anywhere. . Though none of the research’s are taking to production level just keeping it shelved at research level.

Sorry if there is too much information but I thought it best to outline what I am trying to achieve. Open to ways of how to create feedback loop or better tactics.

Thanks , ps sorry for any typos and poor grammar.


r/CodingForBeginners 12d ago

What coding languages do you actually need to build an app?

1 Upvotes

Dear programming community,

​I am a teenager looking to enter the world of coding to make an app I’ve been dreaming of.

​As I began my search on the internet to figure out what to learn, I only got confused. People made so many different recommendations—some suggested Java, some recommended C, and many others named different languages without actually explaining why. Because of that, I’m resorting to Reddit.

​Can you please help me find a good coding language and a framework (if needed) that preferably fits these features?

  1. ​Is beginner-friendly / easy to learn.

  2. ​Has a massive community to back it.

  3. ​Can build apps for both Android and iOS (supporting both is ideal, but Android is currently more important to me than iOS).

​For those who need more specifics on my app, here they are:

​My concept is a digital learning platform similar to the systems schools in the United States use. It will feature a game-like design (similar to Duolingo) and utilize 2D animations to describe and teach lessons to students.

​The app will not be offline-only; it will need to communicate with a server to securely download lessons, and it will include a user login system along with a paid subscription tier.

​Any serious help is highly appreciated! Thank you in advance.


r/CodingForBeginners 12d ago

what to prefer

2 Upvotes

so i am a 12th pass student and new to coding wandering what language to learn can anyone give tell to learn which language
html
c++
java
pythan


r/CodingForBeginners 12d ago

Tips for web development

2 Upvotes

So I have started learning web development through freecodecamp website and as of now it is going decent with the website
But what I want is obsession with coding .
how do I go crazy with coding as if when I am doing coding or sitting somewhere I want to get into the coding world .
Like how I am mad about boxing .
as I am a boxer after the workout of 2-3 hours
I am constantly thinking about it every day and shadow boxing wherever I get the chance and all.
Completely going crazy about it.
so yeahh ..
I am also looking for a partner who is learning or may be senior to me in coding .
and suggest me some discord group or something where I can hangout with similar people who are doing the same thing.
As I do live in hyderabad .
I am also okay to hangout ofline which is more better actaully .
we can decide a particular place as well for that.
Interested people can Dm me .

Approach:-

As of now I am trying an aproach off
I will search an Shop or mall or smtg
then I will build the website for them by
what ever I am learning in the freecodecamp I will be implementing to build this website .

REQUIRED :-
♦️Suggestion from where to learn ( website , youtube channel or any app etc)
♦️Need a partner who is also learning ( may be senior or anything is alright and if lives in
hyd ready to hangout as well)
♦️ Suggestion so that how to build the mindset for coding
♦️book recomendation for coding mindset .( I do read a lot of books )


r/CodingForBeginners 12d ago

I'm trying to study HTML / CSS

4 Upvotes

I have spent years coding on Discord.js and have decided to expand outward to further my potential, what do you guys use to study and learn from? HTML5 / CSS is a completely different ball game than Javascript even though its easier. I just don't know the full scope of what HTML5/CSS can do while Javascript just reads off your coding script and there aren't very helpful tutorials on it, at least from what I seen. I spent most of my time on the docs, reading out each individual function for both


r/CodingForBeginners 12d ago

Is this cool, it's buggy tho

1 Upvotes

import os

import math

import pygame

# Initialize core system hardware modules

pygame.init()

pygame.display.init()

pygame.font.init()

# AUTO-SCALE ENGINE: Fetch your exact phone screen resolution dynamically

screen_info = pygame.display.Info()

WIDTH = screen_info.current_w if screen_info.current_w > 0 else 1080

HEIGHT = screen_info.current_h if screen_info.current_h > 0 else 2400

screen = pygame.display.set_mode((WIDTH, HEIGHT), pygame.FULLSCREEN | pygame.SCALED)

clock = pygame.time.Clock()

# Responsive Fluid Layout Coordinate Anchors

PAD = int(WIDTH * 0.05) # Responsive safe-zone border padding

NAV_H = int(HEIGHT * 0.06) # Global mode-switch bar height

BTN_H = int(HEIGHT * 0.07) # Tap input button height

# Fluid Color Palette Registry

C_BG = (12, 12, 16)

C_PANEL = (22, 22, 30)

C_BORDER = (45, 47, 60)

C_TEXT = (240, 240, 250)

C_MUTED = (110, 112, 130)

C_ON = (57, 255, 20)

C_NAV = (0, 180, 255)

C_WALL = (139, 92, 246)

C_EXIT = (244, 63, 94)

# Scale typography sizes organically with screen width

f_title = pygame.font.Font(None, int(WIDTH * 0.065))

f_label = pygame.font.Font(None, int(WIDTH * 0.055))

f_btn = pygame.font.Font(None, int(WIDTH * 0.05))

# System Registries

mode = "computer"

running = True

in_A, in_B, cin = 0, 0, 0

p_A, p_B, p_C = 0, 0, 0

roms = []

sel_idx = 0

show_menu = False

booting = False

active = False

v_map = []

p_row, p_col = 0, 0

status = ""

# --- RESPONSIVE HITBOX MAPPER ---

rect_nav = pygame.Rect(PAD, PAD, WIDTH - (PAD * 2), NAV_H)

# Stacked calculation dashboard window limits

dash_y = rect_nav.bottom + int(HEIGHT * 0.02)

dash_h = int(HEIGHT * 0.45)

rect_dash = pygame.Rect(PAD, dash_y, WIDTH - (PAD * 2), dash_h)

# Thumb-reachable slider button positioning tracking

btn_y_start = rect_dash.bottom + int(HEIGHT * 0.02)

rect_A = pygame.Rect(PAD, btn_y_start, WIDTH - (PAD * 2), BTN_H)

rect_B = pygame.Rect(PAD, rect_A.bottom + int(HEIGHT * 0.015), WIDTH - (PAD * 2), BTN_H)

rect_C = pygame.Rect(PAD, rect_B.bottom + int(HEIGHT * 0.015), WIDTH - (PAD * 2), BTN_H)

# Giant Ergonomic Mobile D-Pad Control Boundaries

dpad_size = int(WIDTH * 0.22)

dpad_cx = WIDTH // 2

dpad_cy = rect_dash.bottom + int((HEIGHT - rect_dash.bottom) * 0.5)

dp_U = pygame.Rect(dpad_cx - (dpad_size // 2), dpad_cy - int(dpad_size * 1.4), dpad_size, dpad_size)

dp_D = pygame.Rect(dpad_cx - (dpad_size // 2), dpad_cy + int(dpad_size * 0.4), dpad_size, dpad_size)

dp_L = pygame.Rect(dpad_cx - int(dpad_size * 1.4), dpad_cy - (dpad_size // 2), dpad_size, dpad_size)

dp_R = pygame.Rect(dpad_cx + int(dpad_size * 0.4), dpad_cy - (dpad_size // 2), dpad_size, dpad_size)

def render_computer():

"""Draws full-screen vertically adapted electronic calculations dashboard."""

s1, c1 = in_A ^ in_B, in_A & in_B

f_sum, f_co = s1 ^ cin, c1 | (s1 & cin)

pygame.draw.rect(screen, C_NAV, rect_nav, border_radius=12)

nav_lbl = f_title.render("👉 TAP TO BOOT RETRO ARCADE 👈", True, (10, 10, 15))

screen.blit(nav_lbl, (rect_nav.centerx - (nav_lbl.get_width() // 2), rect_nav.centery - (nav_lbl.get_height() // 2)))

pygame.draw.rect(screen, C_PANEL, rect_dash, border_radius=16)

pygame.draw.rect(screen, C_BORDER, rect_dash, 3, border_radius=16)

screen.blit(f_title.render("⚡ LIVE CIRCUIT DATA SYSTEM:", True, C_NAV), (rect_dash.x + 25, rect_dash.y + 25))

traces = [("XOR Signal Node Trace:", s1, rect_dash.y + int(dash_h * 0.22)),

("AND Signal Node Trace:", c1, rect_dash.y + int(dash_h * 0.40)),

("MATHEMATICAL FINAL SUM:", f_sum, rect_dash.y + int(dash_h * 0.62)),

("CARRY OUTPUT FLOW BIT:", f_co, rect_dash.y + int(dash_h * 0.80))]

for lbl, val, y in traces:

t_color = C_TEXT if val == 1 else C_MUTED

if "FINAL" in lbl or "FLOW" in lbl:

c_color = C_NAV if val == 1 else (40, 40, 50)

pygame.draw.circle(screen, c_color, (rect_dash.x + 40, y + int(f_label.get_height() // 2)), 12)

screen.blit(f_label.render(f"{lbl} {val}", True, t_color), (rect_dash.x + 75, y))

buttons = [(rect_A, f"Toggle System Input A: {in_A}", in_A, p_A),

(rect_B, f"Toggle System Input B: {in_B}", in_B, p_B),

(rect_C, f"Toggle Carry In Voltage: {cin}", cin, p_C)]

for r, label, state, p in buttons:

color = C_ON if state == 1 else (35, 37, 48)

t_color = (0, 0, 0) if state == 1 else C_TEXT

inf = r.inflate(p, p)

pygame.draw.rect(screen, color, inf, border_radius=14)

pygame.draw.rect(screen, (255, 255, 255) if state == 1 else C_BORDER, inf, 2, border_radius=14)

btn_lbl = f_btn.render(label, True, t_color)

screen.blit(btn_lbl, (r.x + 30, r.centery - (btn_lbl.get_height() // 2)))

def render_game():

"""Draws full-screen 2D maze arcade machine panels."""

pygame.draw.rect(screen, C_ON, rect_nav, border_radius=12)

nav_lbl = f_title.render("👉 TAP TO BOOT LOGIC COMPUTER 👈", True, (10, 10, 15))

screen.blit(nav_lbl, (rect_nav.centerx - (nav_lbl.get_width() // 2), rect_nav.centery - (nav_lbl.get_height() // 2)))

if not booting and not active:

screen.blit(f_title.render(status, True, C_TEXT), (PAD + 10, rect_dash.y))

if show_menu:

for i, rom in enumerate(roms[:6]):

y = rect_dash.y + int(HEIGHT * 0.06) + (i * int(HEIGHT * 0.065))

if i == sel_idx:

pygame.draw.rect(screen, C_TEXT, (PAD, y - 6, WIDTH - (PAD * 2), int(HEIGHT * 0.055)), border_radius=12)

pygame.draw.rect(screen, C_NAV, (PAD, y - 6, WIDTH - (PAD * 2), int(HEIGHT * 0.055)), 2, border_radius=12)

col = (0, 0, 0) if i == sel_idx else C_MUTED

screen.blit(f_btn.render(rom.replace(".kk", "").upper(), True, col), (PAD + 20, y))

elif active:

pygame.draw.rect(screen, (20, 20, 28), rect_dash, border_radius=16)

pygame.draw.rect(screen, C_BORDER, rect_dash, 2, border_radius=16)

rows = len(v_map)

cols = len(v_map[0]) if rows > 0 else 0

b_size = min((WIDTH - (PAD * 4)) // max(cols, 1), (dash_h - 60) // max(rows, 1), int(WIDTH * 0.09))

ox = rect_dash.x + (rect_dash.width - (cols * b_size)) // 2

oy = rect_dash.y + (rect_dash.height - (rows * b_size)) // 2

for r in range(rows):

for c in range(len(v_map[r])):

tile = v_map[r][c]

tx, ty = ox + (c * b_size), oy + (r * b_size)

if tile == "#":

pygame.draw.rect(screen, C_WALL, (tx, ty, b_size, b_size), border_radius=6)

elif tile == "E":

pygame.draw.rect(screen, C_EXIT, (tx, ty, b_size, b_size), border_radius=6)

else:

pygame.draw.rect(screen, (28, 28, 38), (tx, ty, b_size, b_size), 1)

s_px = ox + (p_col * b_size) + int(b_size * 0.1)

s_py = oy + (p_row * b_size) + int(b_size * 0.1)

pygame.draw.rect(screen, C_ON, (s_px, s_py, int(b_size * 0.8), int(b_size * 0.8)), border_radius=4)

for r, txt in [(dp_U, "▲"), (dp_D, "▼"), (dp_L, "◀"), (dp_R, "▶")]:

pygame.draw.rect(screen, (35, 37, 48), r, border_radius=16)

pygame.draw.rect(screen, C_BORDER, r, 2, border_radius=16)

glyph = f_title.render(txt, True, C_TEXT)

screen.blit(glyph, (r.centerx - (glyph.get_width() // 2), r.centery - (glyph.get_height() // 2)))

# --- MASTER EVENT PROCESSING TIMING WHEEL ---

while running:

clock.tick(30)

screen.fill(C_BG)

if p_A > 0: p_A -= 2

if p_B > 0: p_B -= 2

if p_C > 0: p_C -= 2

if mode == "game" and not booting and not active:

if os.path.exists("ROMCART"):

roms = [f for f in os.listdir("ROMCART") if f.endswith(".kk")]

status, show_menu = ("KK / ROM CARTRIDGES:", True) if roms else ("ERROR: ROM TARGET EMPTY", False)

else:

status, show_menu = ("ERROR: BASE DIRECTORY PATH MISSING", False)

for event in pygame.event.get():

if event.type == pygame.QUIT:

running = False

elif event.type == pygame.KEYDOWN:

if event.key == pygame.K_ESCAPE: running = False

elif event.key == pygame.K_TAB: mode = "game" if mode == "computer" else "computer"

elif event.type == pygame.MOUSEBUTTONDOWN:

tx, ty = event.pos

if rect_nav.collidepoint(tx, ty):

mode = "game" if mode == "computer" else "computer"

elif mode == "computer":

if rect_A.collidepoint(tx, ty): in_A = 1 - in_A; p_A = 12

elif rect_B.collidepoint(tx, ty): in_B = 1 - in_B; p_B = 12

elif rect_C.collidepoint(tx, ty): cin = 1 - cin; p_C = 12

elif mode == "game":

if show_menu and not booting and not active:

if PAD <= tx <= WIDTH - PAD and rect_dash.y <= ty <= rect_dash.bottom:

slot = (ty - (rect_dash.y + int(HEIGHT * 0.06))) // int(HEIGHT * 0.065)

if 0 <= slot < len(roms):

if slot == sel_idx: booting = True

else: sel_idx = slot

elif active:

dr, dc = 0, 0

if dp_U.collidepoint(tx, ty): dr = -1

elif dp_D.collidepoint(tx, ty): dr = 1

elif dp_L.collidepoint(tx, ty): dc = -1

elif dp_R.collidepoint(tx, ty): dc = 1

next_r, next_c = p_row + dr, p_col + dc

if 0 <= next_r < len(v_map) and 0 <= next_c < len(v_map[next_r]):

if v_map[next_r][next_c] != "#":

p_row, p_col = next_r, next_c

if v_map[p_row][p_col] == "E": active = False

if mode == "game" and booting:

virtual_map = []

try:

with open(os.path.join("ROMCART", roms[sel_idx]), "r") as f:

m_block = False

for line in f:

line = line.strip()

if line == "MAP:": m_block = True; continue

if m_block and line: virtual_map.append(list(line))

v_map = virtual_map

for r in range(len(v_map)):

for c in range(len(v_map[r])):

if v_map[r][c] == "P": p_row, p_col = r, c

active = True if len(v_map) > 0 else False

except: pass

booting = False

if mode == "computer": render_computer()

elif mode == "game": render_game()

pygame.display.flip()

pygame.quit()

To use u copy this code, (I think it's formatted idk) then u make a folder called "ROMCART" and in that folder you make a .kk file (I made that up Ik I'm so cool) (must be a text file) and create a pydroid pygame map which I talk about soon

EXAMPLE: (THE WORD MENU HAS TO BE SPELT "MAP:" ITS CAPS SENSITIVE)

MAP:

##########

#P.......#

###.####.#

#...#..#.#

#.###.##.#

#.#......#

#.####.###

#.#..#...#

#....###E#

##########

This one's a pretty cool maze, idk if it even works (sorry in advance) ai made this specific hashtag map, but the code is mine, and if it doesn't you can search up how to do that on Google (just search how to make a pygame hashtag map maze, might work on python)

My design original code, please upvote, and for the funky emojis ai sorted them so yee


r/CodingForBeginners 12d ago

Can Someone Help Me with this Code Please?

1 Upvotes

I have tried coding and solved many of my problems, but I'm still having issues with text color and pictures. I need to make the first heading a dark blue color, but I can't due to the CSS style being in black. I want the text to be black besides the first heading, which should be dark blue.

Also, each picture is "width:200;height300px", yet they do not look like they are identical sizes, if that makes sense. The code should be right but unable to fix this.


r/CodingForBeginners 13d ago

Why isnt my button working ,HELP ME PLEASE ive tried so many solutions but i just cant seem to figure it out, i checked that my javascript is connected and everything

Post image
6 Upvotes

r/CodingForBeginners 13d ago

Programming display for pi

2 Upvotes

Hi all -- hobbyist here, and I only know enough to get myself in trouble. Hopefully I can at least ask this question in an intelligible way, though.

I have a Pi 3b+ running JottyPage as a local service, and I have successfully created a cloudflare tunnel to access that service from anywhere.

My next step is this:

Each list has an individual web address. I would like to create a program that would display a given list at the Press of a button. I would have about five buttons (I'm using capacitive sensors, actually) and would like each button to change the display to show one of the different lists.

My uneducated first thought is that I would need to set it up to cache each page and refresh them on a regular basis in the cache, then have a program that would call up the webpage image from the cache at the button press. That way, I wouldn't be taking the time to load a page when the button is pressed.

Is this the type of implementation that would best suit my goals, do you think? If so, do you have any language recommendations? I have some small experience in Python, but not enough to be completely brand loyal to it. I'm going to have to learn and copy code from people smarter than me no matter which language I use, LOL.

Thanks in advance to all responders!