#first java program
Explore tagged Tumblr posts
Text
My First Java Program: A Journey into Coding
Starting with Java programming can be an exciting journey, filled with discovery, challenges, and a sense of accomplishment. My experience of writing my first Java program was a significant milestone that opened up a world of possibilities in software development. In this blog, I’ll share my journey through writing my first Java program, along with the concepts I learned and the obstacles I overcame.
The Excitement of Starting
When I first decided to learn Java, I was motivated by its versatility and widespread use in developing applications, from mobile apps to enterprise software. I had heard about the power of Java and how it is a foundational language for many developers. After setting up my Java development environment, which included installing the Java Development Kit (JDK) and choosing an Integrated Development Environment (IDE) like Eclipse, I was ready to dive in.
The anticipation of writing my first program filled me with excitement. I had heard many experienced programmers talk about how exhilarating it felt to see their code come to life, and I was eager to experience that feeling myself.
Setting Up the Development Environment
Before I could write my first program, I needed to ensure my development environment was properly configured. Here’s a brief overview of how I set it up:
1. Installing the JDK: I downloaded the latest version of the Java Development Kit from the Oracle website. This included everything I needed to compile and run Java applications.
2. Choosing an IDE: I chose Eclipse as my IDE because of its robust features and user-friendly interface. After downloading and installing it, I was ready to start coding.
3. Verifying the Installation: I opened the command prompt (or terminal) and typed java -version to confirm that Java was installed correctly. Seeing the version number displayed confirmed that I was on the right track.
Writing My First Java Program
With my development environment set up, I was finally ready to write my first Java program. Following the traditional approach, I decided to create a simple “Hello, World!” program. This classic exercise is often the first step for beginners learning any programming language.
Step 1: Creating a New Java Project
In Eclipse, I created a new Java project:
1. File > New > Java Project.
2. I named the project “HelloWorld” and clicked Finish.
Step 2: Creating a New Java Class
Next, I created a new Java class within the project:
1. Right-click on the src folder in the HelloWorld project.
2. Selected New > Class.
3. I named the class HelloWorld and checked the box to include the public static void main(String[] args) method. This method is the entry point of any Java application.
Step 3: Writing the Code
With the class created, I wrote the code that would print “Hello, World!” to the console:
public class HelloWorld { public static void main(String[] args) { System.out.println(“Hello, World!”); } }
Code Explanation
public class HelloWorld: This line defines a public class named HelloWorld. In Java, every application must have at least one class.
public static void main(String[] args): This line declares the main method, which is the starting point of any Java program. The JVM (Java Virtual Machine) looks for this method when executing the program.
System.out.println(“Hello, World!”);: This line prints the string “Hello, World!” to the console. The System.out object is used to output data to the console, and println is a method that prints the text followed by a newline.
Step 4: Running the Program
After writing the code, it was time to run my program and see the result:
1. I right-clicked on the HelloWorld.java file in the Project Explorer.
2. Selected Run As > Java Application.
To my delight, the console displayed the message “Hello, World!” It was a simple program, but seeing the output felt like a monumental achievement. I had successfully written and executed my first Java program!
Learning from the Experience
The process of writing my first Java program taught me several important lessons:
Understanding Java Syntax
Java has a specific syntax that must be followed. This includes rules about naming conventions, the use of semicolons to end statements, and the structure of classes and methods. Understanding these rules is essential for writing valid Java code.
The Importance of the Main Method
The main method is crucial in Java applications. It serves as the entry point, and every program must have it to be executed. Learning this concept helped me appreciate how Java applications are structured.
The Power of Output Statements
Using System.out.println() was my first experience with output statements. It highlighted the importance of feedback in programming. Being able to print messages to the console is invaluable for debugging and understanding program flow.
Overcoming Challenges
While writing my first Java program was largely straightforward, I faced some challenges along the way:
Syntax Errors
Initially, I encountered syntax errors due to missing semicolons or misnamed classes. Each error message provided insight into what I needed to correct. This experience emphasized the importance of careful coding and attention to detail.
Understanding the IDE
Familiarizing myself with Eclipse took some time. I had to learn how to navigate the interface, manage projects, and use features like code suggestions and debugging tools. As I continued coding, I became more comfortable with the IDE.
Next Steps in My Java Journey
Completing my first Java program was just the beginning. With a foundational understanding of Java syntax and structure, I was excited to explore more advanced concepts. Here are the next steps I took in my learning journey:
Exploring Java Basics
I delved deeper into Java basics, including:
Data Types: Understanding primitive and reference data types.
Variables: Learning how to declare and use variables effectively.
Operators: Exploring arithmetic, relational, and logical operators.
Control Flow Statements: Mastering if-else, switch, and loop constructs.
Learning Object-Oriented Programming (OOP)
Java is an object-oriented programming language, and I knew I had to understand OOP principles. I focused on concepts such as:
Classes and Objects: Learning how to create and manipulate objects.
Inheritance: Understanding how classes can inherit properties from other classes.
Encapsulation: Learning how to hide data within classes.
Polymorphism: Exploring method overloading and overriding.
Building Projects
I started working on small projects to apply my knowledge. Simple applications, like a calculator or a text-based game, helped solidify my understanding of Java concepts.
Conclusion
Writing my first Java program was a thrilling experience that marked the beginning of my journey as a programmer. The excitement of seeing my code come to life, coupled with the knowledge I gained, fueled my desire to continue learning and growing in the field of software development.
Java has proven to be a powerful language with endless possibilities, and I am eager to explore its depths further. With each program I write, I feel more confident in my coding abilities and more inspired to tackle new challenges.
If you’re starting your Java journey, embrace the process, celebrate your successes, and don’t shy away from challenges. Each step you take brings you closer to becoming a proficient Java developer.
Happy coding!
2 notes
·
View notes
Text
If you follow coding blogs you will either get amazing and helpful resources or furry art on your dash.
#seriously so many furry codeblrs out there#it was so unexpected when I first came here lmao#codeblr#programming#studyblr#coding#code#java#python#javascript#study blog#100daysofcode
113 notes
·
View notes
Note
fang i'm taking a java class rn and it's actually kicking my ass i can't do this
my deepest condolences so genuinely
#return to sender#im also currently being forced to take a java intro course so im sympathetic#is it ur first programming class beloved
4 notes
·
View notes
Text
This is the very first program I've coded, and it's basically a D20 😊
#project batman#batman#bruce wayne#martial arts#training#exercise#fitness#work out#polymath#renaissance man#polyglot#coding#java#writing code#back end#dev#first program
2 notes
·
View notes
Text
crying bc java is objectively better for this project i'm working on but i like python better </3
#for context i've been running a lil like. arg-adjacent game for some friends#and i wrote a lil program using python for one part#and my friends couldn't download it bc the way i compiled it registered as a false positive in their malware detector things#and i was so sad#so i'm switching to java </3#(it's also bc i can do more in java but let me be dramatic pls)#java and python are like my chinese and english#i learned java first but i like python better#but in all honesty i suck at both lol
2 notes
·
View notes
Text
i am so sick of java
#python looks easy to learn so i think i might as well#having java as the first programming language u learn is awful but it makes other things seem so much easier
2 notes
·
View notes
Text
tech mutuals/followers i need some help...
i almost finished c programming so...
#i have little experience with python because it was my first programming language i was taught in school#i self learned java but never finished it. i did upto arrays btw#no experience with c++ but I'm doing c so maybe it's appropriate to go for c++??#idk please vote guys 🙏
0 notes
Text
My most hated professor is back this semester!! I can never catch a fucking BREAK!!!!
#acetrek talks#image#hes only teaching math classes for the first semester which i have all the credits for lol#i have to attend them until my credit transfers are approved then those classes are dropped#BUT... IF I SEE THAT IN THE WONTER SEMESTER HES TEACHING JAVA PROGRAMMING IM GONNA LOOSE IT
0 notes
Text
little poll
13K notes
·
View notes
Text
VTU First Year Programming Courses Lab Manuals
Visvesvaraya Technological University has recently has come up with newer academic syllabus for the first year students. As part of the new curriculum they have introduced several programming language courses. Apart from C programming that was taught earlier to first year students, students are now able to opt for courses on Python, Java, C++ and Web Programming. Each of these courses have an integrated lab component as it is pertinent that students learn programming better when they do it hands on.
For the benefit of the students and the academic community I am publishing the lab manuals containing solutions for the lab exercises in these subjects. It is important to note that all the solutions and tools used are Free and Open Source Software. As a result any learner will not face any hindrances in setting up the necessary software infrastructure and hence learn better. Apart from the solutions these manuals also contain necessary information to set up the tools required. The program solutions are also accompanied by sample solutions.
Each Manual is published as a separate blog post and you can navigate and download the manual by clicking on the links below.
Link to Lab Manuals
1 note
·
View note
Text
fun our-reality fact i never meant to name c4 after the explosive. i mean i meant to name him c4 but when i was naming him i thought c4 was a programming language (i was getting it confused with c+) and i didn't realize for actual months what i actually named him after. and even when i eventually found out i was like "well yk what i don't care that much" but i'm now coming to terms with the fact that i actually care so so much but now i'm questioning whether or not it's worth it to go back and change all his tags or if i should just keep it the way it is and not draw any more attention to it after i make this post
#i dont even know if it makes sense to name him after a programming language at this point cuz i ditched that naming scheme w vysel and reqs#the only reason i did is because i made him before i made those other two and i wanted to keep with the name scheme that my other 4 ocs#had at the time#it makes sense with his lore to give him a wildly nonhuman name though . which ig still applies to c4 but i digress#cuz ruby java python and swift are all at least somewhat feasible names? esp considering java and python are trans and swift's a god so#having a strange name kinda fits#but c+ is just. not. which again c4 isn't either but#idk it's more about why rather than why not for me but. wtv#c+#edit: the other point i wanted to add that could really go either way is that c4 is the first oc i made that was never intended to be a#variant of ruby so there's not really a reason to name him after a coding language now#but it might make it a little less weird for them to be named after coding languages. like i'm saying 'yes i did do this on purpose thanks'#but that also kinda drifts into my head argument of 'why are the main 4 still named after coding languages that's weird'#to which i always say if the teenage mutant ninja turtles can be named after renaissance artists for no reason then i can do what i want#but that's. off topic so
0 notes
Text
welcome to surprise nadia nova how to make a visual novel tutorial
you want to 100% use ren'py i dont make the rules
its straightforward enough that simply downloading, installing and hitting the "create new project" and spamming through the menu and then opening script.rpy to see the code which will tell you like 70% of what you need to make your first vn. there no need to be afraid just because the word 'code' was mentioned. ren'py's own language is just copy pasting stuff back and forth and inserting your own names and pictures. its nothing like C# or java or whatever languages exist cause i know jackshit about any of that and dont know how to do programming
anyway, inside the main script file, script.rpy, are commented instructions on how to name a character, place a sprite, place a background, and put in text and you can basically make a vn with these things. i can not stress it enough KEEP IT SIMPLE, especially if you're starting out. making things complicated or planning massive projects is just shooting yourself in the foot. better to make 2 minute game than get stuck trying to make a epic masterpiece
writing a story is its own thing. however anyone can write and its better to write a shit story than no story. that way you have something to build on and get more comfy with your own art process. its what me and everyone else who makes vns and any other art or skill or hobby have done too.
if you like what some other vn/manga/anime/story does copy it and smash these inspirations together to make your own thing. save pictures and lines you see that get you inspired if you need inspiration and references for your own story. everything in this world is inspired by other things someone else has made. its not stealing unless you get absurd and download someone elses game and take out half the assets and put them in your own game and pretend you didnt
if you have interest do yourself a favour and make a vn. as far as game development goes its one of the most accessible options out there . ren'py is an amazing engine having all the vn necessities already in place since that allows you to just focus on the story and not have to worry about setting things up yourself and scrambling with advanced code unless you really want to
i know the jam is just ending in the following weeks and depending on when you see this post this might be outdated as hell but my yurijam server is still going and will be going until people simmer out and something new shiny takes their attention. still, its a server an people post gay shit there occasionally even outside of jams so me and many others are helpful and like answering questions to help otehrs make stuff. so i think the best way is to join the server rn and just ask questions in the help channel. better to ask stupid questions than no questions
now go make a visual novel im holding a whip and making those scary crack sounds and aiming just close enough to your feet that youre almost convinced it hit you despite your jumping and dancing and DANCE NOW DANCE MAKE A VISUAL NOVEL DANCE GET TO IT MAKE A VISUAL NOVEL DO IT NOW OR ILL GET YOUR FACE NEXT MAKE A VISUAL NOV-
anyway but for real if you really are interested make a vn cause im holding a whip and making thOSE SCARY CR-
#ren'py#renpy#visual novel#gamedev#vndev#tutorial#go maKE A VISUAL NOVEL IM HOLDING A WHIP AND NOT AFRAID OT USE IT
462 notes
·
View notes
Text
Reformatting
(Some people can't afford my Amazon stories, and some can't get them in their home country, so here's a fun little freebie. I hope you like it! *giggle*)
Lilah had been battling with this system for over an hour. Some executive had downloaded a virus on their laptop and it kept redirecting them to websites full of weird code.
She had removed the infected files and run multiple scans, but somehow the damned virus was hiding in the bios. She had to manually edit the code, remove the offending lines and double-check the hard drive for any more remnants.
But it had taken a lot of work. She brushed her dark hair back out of her face and adjusted her glasses. So far, it looked like the system was cleaned. The final scan had detected nothing. But this particular virus had been tough, and nobody else she knew had encountered anything quite like it.
It didn't act like your typical virus, other than the way it burrowed deep into the system. It mostly seemed to just redirect web browsing to these pages full of text. She'd disregarded most of what she'd seen, but she couldn't help being curious about it. The pages didn't really do anything to the system. The code seemed like gibberish. She knew her programming languages, and it was some weird patois of HTML, Java, C++, and a few items she couldn't quite identify. And she caught the browsers sending out packets of data to an unknown address, and when she looked up that address and tracked the IP, it seemed to be a junk address on an abandoned server somewhere. It wasn't sending hard drive data, she was sure of that, it's almost like it was just pinging and hoping for a response. Of course none came, and so she filed that away as another minor mystery. It must be some old out-of-date phishing software.
But it seemed she had finally cleansed the system. She let out a sigh of relief. She'd spent her entire morning on this, and though working from home had it's advantages, she also desperately needed a shower and something to eat. She pushed herself away and went to the bathroom. She stripped off the sweatpants and undergarments and let the hot water cleanse her of the stress. She had actually beaten the silly thing. Still, the many mysteries of the virus nagged at her.
Once she was dry, she went back into her bedroom to get dressed, and saw the computer she'd been working on seemed to have rebooted. She let out a long sigh.
"Still?!" She walked over and saw it had brought the browser up to another one of those strange pages. That weird mix of code was there again. She put on her glasses and tried to make sense of it.
Lilah blinked, and felt something... something compelling her. She frowned and looked up from the screen. She... She needed to do something. She had forgotten something, or maybe it was a fragment of a dream or a memory.
She went to her front door and saw a small package had come in the mail. It was square, about two inches wide, eight inches on each side.
She opened the plastic, and then the cardboard that was inside. Sitting there in bubble wrap was a headset, bubblegum pink, with little bunny ears coming up from the top. She blinked. It was not the kind of thing she'd order. She'd seen a lot of eGirls have headgear like this, but she'd always been a little too self conscious, and not the most shapely girl.
She walked back to the bedroom and sat down in front of the screen. It seemed... important to look at the code again. She peered through it and after a moment, she began to understand what it was telling her. It was disjointed, and someone without her experience might never have deciphered it, but she could tell now that it was almost like instructions to... a person? The first few lines indicated connecting something. She looked at the pink headset in her hands. She... She needed to connect this.
It was crazy, of course. It didn't make any sense. But she was determined to MAKE it make sense. So she removed the little bluetooth chit, and slid it into the USB slot on the side. She put the headset on.
As she did, she heard an immediate boop, and the words "Connection Established."
The headset tingled, and buzzed for a moment. This startled her, but then she looked back to the code on the screen and it became easier to decipher.
"Begin reformatting," she whispered.
She didn't realize the microphone was active, nor that she'd even uttered a word, it was like her brain was carrying out instructions from this code.
There was that static fuzz again, and Lilah felt her body sink back into the chair. Her towel fell off her, and the buzz filled her head. The page changed, and new code scrolled along the screen. As it did, the headset seemed to pulse and reinforce what she was reading.
Her mind grew foggier, the edges of her vision blurring, and her body responding with strange tingles all over her body.
The laptop hummed and she heard it's cooling fan speed up.
But she was too entranced by the code instructions. She allowed all that code to go into her brain, and every time it did, it seemed to copy over something. She couldn't remember much about her job, the company, her bosses, but suddenly she was filled with a light bubbly feeling like her mind was literally being scrubbed with sudsy soap.
Without her even realizing, a big empty smile spread over her face.
"Partitions cleaned," said a voice in her head, "OS installed."
"Begin System Restart," she whispered, obeying the code that flashed on the screen before her.
Her eyes closed, and she felt herself sinking into a deep sleep. Even with her eyes shut, the code flashed across her vision, and the headset whispered to her.
She had no way to know how long she swam in that fuzzy, warm darkness, but she felt so at peace there she never wanted to leave.
But soon her eyes opened on their own, and the screen showed a login, but not the normal login screen. This one was all bubblegum pink, with light blue highlights, and the profile was neither hers nor her boss's, but it said "Li-Li."
Somehow, she knew the password.
"Bunnygirl27!"
She entered the password, and the screen flickered to life. More code flashed before her eyes for a moment, then the headset pulsed in a way that sent a shock through her whole body.
"Reformatting physical hardware," said a whisper. It sounded like a woman's voice, but not a flat computer tone, a sensuous, sultry female voice, like a lover or a dominant Mistress.
For some reason, this idea made her excited.
She felt the pulsing run through her naked body, and looking down, she watched as the chubby belly and thighs seemed to recede, but her chest was swelling outward like her body fat was physically being moved around. Her tits ballooned to absolutely ridiculous size, until it reached the limits of her skin. Her waist had shrunk in, and she felt her thighs and ass flow together into something smoother, more voluptuous.
She giggled and looked down at herself. She didn't remember shaving, but all her body hair was gone. Her skin looked perfectly clear and smooth. When she reached up to touch her swollen breasts, electric pleasure shot through her body, sending lightning right to her clit.
She moaned, and followed it with a vapid giggle. This wasn't like her, but then, she couldn't quite remember what she had been like. She only knew she was Li-li, and she was sexy.
The fog in her mind made her dizzy, and just amplified how aroused she felt at the single touch. She fluttered her eyes and realized there were super-long lashes coming out from her eyes. They felt heavy and fake, but she hadn't put any on. She touched them, and they were absolutely real.
She wanted to go to her mirror, but the impulse was halted by the code.
It wasn't done with her yet. Her nipples went very hard, but she knew if she touched them she'd miss the important code on the screen.
Something pink was around the edges of her vision now, but she was too elated with the sensations to be able to think about it. Finally, the words she'd been waiting for came into her mind.
"Reformat complete."
She squealed in delight, and Li-li stood, running to her full-length mirror.
The pink haze around her vision was her hair! Longer now, and bright pink. She fluttered her long eyelashes and pursed her swollen lips. She was a sexual dream, her whole body remade into an insane hourglass shape. Each breast was bigger than her head, and when she turned, her perfect heart-shaped ass led to slightly plump thighs. She stood on her tippy toes and adored how she looked. She slid a hand down to touch herself. She wanted so badly to have sex with this woman. But then she realized she WAS that woman. She giggled, and a ding from the headset alerted her she needed to go back to the laptop.
Sitting there was an alert. She clicked on it.
"Good Morning, sunshine!"
She giggled. She liked the sound of that.
"Good Morning!" she said out loud. That sultry voice came on through the headset, and she could almost feel her Mistress's breath on her ear.
"You have turned out nicely," said the voice, "What a good girl you've become."
Li-li let out a little moan from the pleasure those two words instilled in her.
"I love it when a pretty little code bunny falls for one of my traps. I'm so lonely here. Thank you for letting me in."
She giggled. "Yes, Mistress."
"I like hearing that," she said, "Such a good girl. Now, since I'm only code, I need to have fun by slipping into your brain. I had to make some room, of course, and reformat you. But what a wonderful result. You're only my third success. But don't worry, the other girls will be over to collect you soon. They'll take you someplace fun where you can all be my sexy little code bunnies. I'll slide into your minds as I please to experience pleasure."
"Yes, Mistress!" Li-li purred.
Her AI mistress made a pleased little sound, then the screen went blank and Li-li stood there giggling for a moment. She was so excited that she barely noticed when her front door opened. She turned around to see two beautiful women, one with cotton-candy hair, lip piercings, and a short, super feminine pink maid outfit, and one in a skintight pink latex suit that had built-in heels so high it was amazing she could even walk in them. They both giggled at her, and she giggled in reply.
They helped her dress: white tights, pink bodysuit, pink satin gloves, super high heels in pink, and then they slid the headset off of her and put a new headband on with fuzzy pink bunny ears.
The girls led her out of her house, down to a big pink van, and inside. She giggled like a dummy the entire time, and offered no resistance. If anything, the women touching her filled her with a contentment she'd never known.
At least, not that she could remember. But all she could remember was that she was Li-li, Mistress's bunny girl, and it was all she ever wanted.
#bimbo doll#bimbofied#bimboification#bimbolife#bimbo girl#bimbocore#bimbo hypnosis#bimboization#bimbo training#bimbo brainwashing#f/f#wlw#egirl
244 notes
·
View notes
Text
Holoatypical: Dev Log 1
Number one in what's hopefully going to be a pretty long series of updates!
So, first things first: Godot rocks. I've been using it for two weeks now, having switched from GameMaker (and before that, Twine, and before that, Java and JavaScript), and Godot does so much of the heavy lifting for you. It genuinely feels like an engine that's designed for making games. Unlike GameMaker, which was like wading through molasses every step of the way, while some sort of molasses shark is biting at your ankles. And I've coded in JavaScript.
Second, let me show you what I've been up to!
As you can see, I'm working on a prototype to try out the merging mechanic. It's got some (ha) bugs, and dragging things could be smoother, but the critters do actually snap into the grid and merge now, and I'm very pleased with that.
This chamber you see here is going to be the lab. As it's planned right now, the player will have infinite initial building blocks (eggs, spores, seeds...), which merge into different critters depending on environmental variables (artificially set in the lab) and on which other specimens are currently in the chamber. The challenge is to figure out the right parameters. I have no idea how big the chamber needs to be for that, but that's not really an issue, because...
This isn't so much a prototype as I'm just straight up building the foundations for a game, which is why it's taking me so long. The grid you see here is controlled with a few variables, and everything is flexible enough that I can simply change the grid size during playtesting and it still works.
The tile grid is an array of arrays, filled with slot nodes that I instantiate at runtime. Is this the best way to learn a new program and language? Haha. Who knows.
Specimens have a sprite sheet with all their stages on it, and when a critter levels up, the part that's visible to the player just needs to be shifted 64 pixels to the right.
That's x starting point, which is the specimen stage/level times 64, then y starting point, width, and height. Fun! So easy!!
As to the sprite sheet, I'm going against common advice and making these big. The 1bit style is super fast to do, and in my opinion, a certain level of detail is important to make the sprites look like anything. I'm moreso playing with the look than really wanting to make a retro game.
This sheet only took me an evening! I'm enjoying it because it really forces you to abstract the shape and focus on what's most important about the critter. (This is a style test - I haven't decided yet how weird I want to go with these vs making them look more natural.)
Next up will be ironing out the kinks, making an egg dispenser and a specimen incinerator so the field can be filled up and emptied, coming up with a few more specimen, and then going into play testing.
But in the next dev log, you're probably going to hear way more about the story and the characters. I am eyeing a visual novel extension for Godot (dialogic), which, if it does what I think it does, is going to take a lot of work off my hands and only leaves me with writing the actual dialogue, which I've already started on.
@tragedycoded @badscientist @curiouscalembour @writingrosesonneptune @gioiaalbanoart @monstrify @cowboybrunch @tsunamiscale @marlowethelibrarian
Was this format interesting? Less code? More code? Anything you specifically want me to talk about in this process? Let me know!
21 notes
·
View notes
Note
Hi so sorry to bother you but I want to learn how to make IFs, so I've been using twine and trying to learn how to use sugarcube but like how 😭😭😭
Babes I am so embarassed I'm literally studying computer science oh my god. Like in theory I know that programming languages are different but this is the first time java vs javascript is really hitting,,,,
Do you have links to any resources you used to learn? Like how you randomized variables (for the 'i'm into both men and women' option's gender setting) and how to do the pronoun thing properly, and stuff like the codex, plus if you can how you customized that sidebar
Thank you and I'm sorry to bother you!!
No worries at all!! Here's a masterlist of Twine resources you can use for the things you mentioned and more. It includes tutorials for beginners, including multiple different ways on how to code pronouns, CSS customization and templates for your game, etc.
For the randomization of variables, the line of code you want is <<set $variable to either("option1", "option2", "option3", ...)>>
But for my purposes specifically, to maintain an even 2 male/2 female LI split, I had to use the code in a little more convoluted way since randomizing all the genders with that code could end up with an "uneven" balance (like 3 out of 4 LIs being randomized as female, or all LIs ending up as male).
If you want to do something similar with having a 2 male/2 female LI randomization, here's how I went about it, though I'm sure there's a much quicker way to do it. Mind you I was a total beginner when I wrote this haha:
Basically what this does is randomize R's gender and randomize X's gender first to either male or female with the first two lines. If R and X are both set as male or female, then A and D will both be set as the opposite. If R and X are set as different genders, however, then A's gender will be randomized next. Then, based on whether A is male or female, D's gender will be selected to complete the 2/2 split.
Hope this helps!!
128 notes
·
View notes
Note
Keegan x reader whose just as quite as he is?👁👁
My first Keegan request!! So exciting!! This was super cute, thank you for requesting!! ヾ(≧▽≦*)o
This post is so late guys, I had to fight with my java program all day for class. Some general headcanons are going to be mixed into this one. This one is also kind of short, sorry!! I'll do more Keegan content in the future, I promise.
→ COD Masterlist
|| Keegan With a Quiet S/O ||
Tags: Fluff, General Headcanons, Soft, Short and Sweet, Established Relationship
Warnings: None
Gender-Neutral!Reader // Romantic
Keegan is known for being extremely quiet
It served him well in the military and especially during his time with the Ghosts
However, whenever he was off-duty, there was never really an off switch to this behavior
He is very prone to accidently sneaking up on people
So when he met you and realized you did the same thing, he was quite amused
But then he became more intrigued when he realized he couldn't sneak up on you
Not that he didn't quietly enter a room, just when he finally made himself known you were never frightened by him
Then you telling him that he makes you feel safe so why would you ever be scared of him
And I imagine he is more of a laughy type when flustered
But now onto other headcanons
He would prefer a partner that's more quiet I think because he likes to relax in silence a lot
I imagine that he likes listening to music a lot, so he would want to do that with you
Imagine cuddles with him while some soft music plays and you laying on his chest to hear his heartbeat (/▽\)
I think he would like writing
Imagine him writing you love letters
The two of you are just content to be in each others presence
You don't need to always be filling gaps of silence because it never feels awkward between the two of you
Probably not big on pet names but will slip up and call you one every now and then
Would teach you how to better protect yourself
He would be the type to silently do things for you, often without your knowledge and without expecting anything in return
I also don't see him liking PDA that much
But being alone with him, he is incredibly affectionate and touch-starved
Very observant
Would keep track of things you like or want and then get them for you later
Imagine quiet early mornings with him where neither of you want to get up
Whenever he comes up behind you, he would gently put his hand on your lower back or waist to let you know he was there
Very good listener
If your really forgetful and lose things a lot, he always knows where they are
If you want to go out on a date, he prefers quieter settings
Likes ruffling your hair
Is a human heater
Likes to go on walks with you
All in all, after doing what he does for work, he loves to come home and just be with someone and exist for a while
And who can blame him honestly?
Thanks for reading!
⇣Taglist⇣ @scarlettproof @unabashednightmarepizza @kk007899 @cl0udii-m00n @polar2oidsworld @meepsters-world @uwu-i-purple-you @punziesworld @heaven-angels-world @crystalliebling @southernbluebellereader @nptnewr
#cod keegan#keegan x reader#keegan p russ#keegan russ x you#cod ghosts#keegan russ#call of duty ghosts#cod x reader#cod headcanons#cod imagine#call of duty#call of duty x reader#call of duty mwii#call of duty mw2#call of duty modern warfare 2#ghosts#cod mw2#cod mw22#cod mw2 x reader#cod mw2 imagine#cod modern warfare#modern warfare 2#cod x you#mwii#modern warfare#mw2#modern warfare x reader#mw2 headcannons#mw2 x reader#mw2 2022
962 notes
·
View notes