RosaE836 277 Posted March 7, 2016 Popular Post Share Posted March 7, 2016 So, currently, I'm working on a game that runs on java, seeing as I (kinda) know javascript. No doubt most of this code could be replaced with something better, but I just wanted to show the progress I made within three hours. I don't expect anyone to really want to use it right now, as it has zero playability (not to mention zero customization), so don't expect any download link or me telling you how to run it until the program gets far enough. Also, a note on this, while I don't plan on changing my username here, my dev name will be Rosalie Elodie, just for the simple reason that I like the sound of it, and thus, it will be the dev name used in the comments of the program. Anyways, instead of typing up more stuff, I'm gonna paste the notes here, along with the current code in the spoiler below, and then maybe get ten minutes of sleep before I have to get ready for work (whoops...) *A Long Hour and a Half (ALongHourAndAHalf) is a game where *one must make it through class with a rather full bladder. * *Many options are already planned for full release, such as: *Name (friends and teacher may say it. Also heard in mutterings if an accident occurs) *Male and Female (only effects gender pronouns (yes, that means crossdressing's allowed!)) *Random bladder amount upon awaking *Choice of clothing (or, if in a rush, random choice of clothing (will be "gender conforming" clothing) *Ability to add positives (relative to holding capabilities) *Ability to add negatives (relative to holding capabilities) *Called upon in class if unlucky (every 15 minutes) * * *Other options, which may be added in later or not, are these: *Extended game ("Can [name] get through an entire school day AND make it home?") *Better Dialog (lines made by someone that's not me >_< ) *Possibility of preset bladder level (best for incontinent run) /* *ALongHourAndAHalf Vers. 0.1 *Date of Version: 3/7/2016 *Time of Version: 5:37 AM * *Dev: Rosalie Elodie * *Version History: *0.1: Default game mechanics shown, non interactable. No playability, no customization. Not all game mechanics even implemented, purely a showcase program. * * *A Long Hour and a Half (ALongHourAndAHalf) is a game where *one must make it through class with a rather full bladder. * *Many options are already planned for full release, such as: *Name (friends and teacher may say it. Also heard in mutterings if an accident occurs) *Male and Female (only effects gender pronouns (yes, that means crossdressing's allowed!)) *Random bladder amount upon awaking *Choice of clothing (or, if in a rush, random choice of clothing (will be "gender conforming" clothing) *Ability to add positives (relative to holding capabilities) *Ability to add negatives (relative to holding capabilities) *Called upon in class if unlucky (every 15 minutes) * * *Other options, which may be added in later or not, are these: *Extended game ("Can [name] get through an entire school day AND make it home?") *Better Dialog (lines made by someone that's not me >_< ) *Possibility of preset bladder level (best for incontinent run) * * *If you have any questions, or want to shove code in her face, *be sure to send them to Rosalie at her following email address: *[email protected] *(without caps) *[email protected] *(with caps) * *She also goes by the terrible username "Justice" on Omo.org *(omorashi.org) *and you're free to contact her there! *(If you already have an account there, it's much more preferable ^^; ) * *FINAL NOTE: While this is created by Rosalie Dev, she allows it to be posted *freely, so long as she's creditted. She also states that this program is *ABSOLUTELY FREE, not to mention she hopes you enjoy ^_^ */ import javax.swing.JOptionPane; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JFrame; import java.util.Random; public class ALongHourAndAHalf {//Start of program private String input; //general values public int rollcall = 0; //purely for rolling a 20 sided die (with your name on it!) public int numClassmates = 20; //You are number 1! public int min = 0; //starts counting up per turn. +3 per turn. 90 = class end. 93 = bathroom reached public int hr = 0; //counts up if min/60 is divisible //personal values public String name = "Rosa"; //your name public double blad = 75.0; //Bladder by %, 100 = need to hold, 120 = peeing no matter what (game over). public double belly = 55.0; //how full of liquids your belly is, in % public int emb = 1; //embarrassment level. effects multiple things. 0-10 public double inc = 1.0; //incontinence multiplier, with 1 being normal. could be lowered or raised public boolean wetting = false; //usually used for a bladder check public String lower = "red skirt"; //lower body clothing public String undies = "pink panties"; //usually referenced with leaks //shoes are never really referenced, nor socks, except directly public void program() {//start of program JOptionPane.showMessageDialog(null, "If at any time you do not want to use this program,\nor if you simply want to reset your values,\nsimply hit cancel (when prompted)."); //choose name //choose gender JOptionPane.showMessageDialog(null, "Normally, this is where you'd choose stuff, but at the moment,\nthe core game is needed first before being built upon."); JOptionPane.showMessageDialog(null, "You wake up, yawning gently and rubbing away the resulting tears.\n\"Mmmm, so tired...\"\nYour voice is heavy with sleep as you turn to your alarm clock, your eyes widening in turn."); //choose clothes blad += 0.5; JOptionPane.showMessageDialog(null, "\"Wh-what? D-did I forget to set my alarm?!\"\nYou cry, tumbling out of bed and feeling an instant jolt from your bladder.\n\nBladder = "+ blad + "%\n\nYou hurriedly slip on clothes,\nquick to cover your " + undies + " with your " + lower + ",\nnot even worrying about what covers your chest."); emb += 1; belly += 10; blad += 0.5; JOptionPane.showMessageDialog(null, "Just looking at the clock again in disbelief adds a redder tint to your cheeks.\nEmbarrassment = " + emb + "\n\nPaying much less attention to your daily routine, you quickly run down stairs,\nget a small glass of orange juice, and chug it.\nThe cold drink brings a chill down your spine as you collect your things and rush out the door to school.\n\nBelly = " + belly + "%\nBladder = " + blad + "%"); while (min < 90 && wetting == false) {//start of school if (min == 0) { JOptionPane.showMessageDialog(null, "You rush into class, your " + lower + " blowing in the wind.\nNormally, you'd be worried your " + undies + " would be seen, but you can't worry about it right now.\nYou make it to your seat without a minute to spare.\n\nHours = 0\nMinutes = " + min); emb += 1; JOptionPane.showMessageDialog(null, "\"Next time you run into class, " + name + ",\" your teacher says, \"make you're wearing something less... revealing\"\nA chuckle passes over the classroom, and you can't help but feel a tad bit embarrassed\nabout your rush into class.\n\nEmbarrassment = " + emb); //LOOK OVER WHEN CUSTOMIZATION IS ADDED! blad += (3 * (inc)); belly -= 3; JOptionPane.showMessageDialog(null, "Subconsciously rubbing your thighs together, you feel the uncomfortable feeling of\nyour bladder filling as the liquids you drank earlier process.\n\nBladder = " + blad + "%\nBelly = " + belly + "%"); min += 3; JOptionPane.showMessageDialog(null, "Feeling bored about the day, and not really caring about the class too much,\nYou look to the clock, watching the minutes tick by.\n\nMinutes = " + min); } else { blad += (3 * (inc)); belly -= 3; min += 3; } if (min == 60 && hr == 0); hr++; //if (min = 15) //or 30 or 45 or 60 or 75. 5 chances to be unlucky, can be called upon multiple times because the teacher is a sadist :P // int rollcall = generator.nextInt(numClassmates) + 1 // if (rollcall == 1) //continue with being called on by teacher // else //some random person is called up }//end of first block //testing forced wetting blad += 120; //delete when bathroom fully implemented if (blad >= 120 && wetting == false) { blad = 0; JOptionPane.showMessageDialog(null, "You can't help it...\nNo matter how much pressure you use, the leaks won't stop.\nDespite all this, you try your best, but suddenly you're forced to stop.\nYou can't move, or risk peeing yourself.\nHeck, the moment you stood up you thought you could barely move for risk of flooding yourself.\nBut now...\nA fwe seconds tick by as you try to will yourself to move, but soon, the inevitable happens anyways.\nWithout moving an inch, pee quickly darkens your " + lower + ", flooding your " + undies + ", and streaking down your legs.\nA large puddle quickly forms, and you can't stop tears from falling down your cheeks.\n\nBladder = EMPTY\nEmbarrassment = MAX!"); wetting = true; } while (min >= 90 && wetting == false) { } if (wetting == true) { JOptionPane.showMessageDialog(null, "No matter how hard you tried...\nIt doesn't seem to matter, even to think about it...\nYour " + lower + " and " + undies + " are both clinging to your skin,\na sign of your failure.\n...unless, of course, you meant for this to happen?\nNo, nobody would be as sadistic as that, especially to themselves..."); JOptionPane.showMessageDialog(null, "GAME OVER"); } }//end of program public static void main(String[] args) { ALongHourAndAHalf start = new ALongHourAndAHalf(); start.program(); }//end of main }//end of program PrinceOfThePee, Kei, Trickling Down and 8 others 11 Quote Link to comment
joemamma 17 Posted March 7, 2016 Share Posted March 7, 2016 I would really love to play this game once it's finished. Thank you for your efforts. Quote Link to comment
Cherylicious 65 Posted March 7, 2016 Share Posted March 7, 2016 Keep us updated! Quote Link to comment
RosaE836 277 Posted March 7, 2016 Author Share Posted March 7, 2016 I would really love to play this game once it's finished. Thank you for your efforts. No need to thank me yet, it's not even interactive yet >_< My modesty aside, thanks anyways ^^ Keep us updated! I will! I'm definitely enjoying coding this, so I'll be sure to update whenever I make any big progress! Quote Link to comment
Subaru 206 Posted March 7, 2016 Share Posted March 7, 2016 Cool, I would love to see how this progresses. Quote Link to comment
Figgitydoo 126 Posted March 7, 2016 Share Posted March 7, 2016 Sounds fun. I'm getting excited just thinking about playing this. Quote Link to comment
CuriousOne 20 Posted March 10, 2016 Share Posted March 10, 2016 This sounds like a lot of fun. Quote Link to comment
Dynamic 133 Posted March 12, 2016 Share Posted March 12, 2016 Cool idea! I'll keep an eye on this. Also, I feel it my duty to point out that JavaScript has nothing to do with Java. I know it's confusing, but such is the convoluted world of software. Quote Link to comment
RosaE836 277 Posted March 12, 2016 Author Share Posted March 12, 2016 Cool, I would love to see how this progresses. Sounds fun. I'm getting excited just thinking about playing this. This sounds like a lot of fun. I'm glad you're all looking forward to it! I'm still typing code for it, so no new build so far (wouldn't really call it a build, either, seeing as it's only for testing purposes currently). Cool idea! I'll keep an eye on this. Also, I feel it my duty to point out that JavaScript has nothing to do with Java. I know it's confusing, but such is the convoluted world of software. I hope not to disappoint! Ah, yes, I think it crossed my mind to type everything that I said Java to JavaScript to avoid confusion, but I was tired and needed at least a couple minutes of sleep. Either way, I'm glad you understand the difference (I'll try to keep from making the same mistake again ^^; ) Quote Link to comment
Dynamic 133 Posted March 12, 2016 Share Posted March 12, 2016 Yeah, I've done a little in both Java and JavaScript. This is, of course, Java. I don't have much experience using Swing, but there was a time I wanted to do something very similar to what you're doing. Actually, I still kinda do, but I'm always moving from language to language, so if I ever settle on one maybe I'll develop something too ^^ Quote Link to comment
JMatthews1995 1,030 Posted March 12, 2016 Share Posted March 12, 2016 I am looking forward to this game. I also wish I could program something as well as it would be great to make up a game of my own. Shame I can't really :( haha. Keep up the good work :) Looks like it will be really fun to play :D Quote Link to comment
RosaE836 277 Posted March 12, 2016 Author Share Posted March 12, 2016 Yeah, I've done a little in both Java and JavaScript. This is, of course, Java. I don't have much experience using Swing, but there was a time I wanted to do something very similar to what you're doing. Actually, I still kinda do, but I'm always moving from language to language, so if I ever settle on one maybe I'll develop something too ^^ Well, I look forward to anything you try to produce! I always think there aren't enough omo games. I am looking forward to this game. I also wish I could program something as well as it would be great to make up a game of my own. Shame I can't really :( haha. Keep up the good work :) Looks like it will be really fun to play :D Thank you, and I'm sure that, with enough effort, you can program something (I mean, that's basically what I'm doing)! Quote Link to comment
bladderbulge60 108 Posted March 12, 2016 Share Posted March 12, 2016 Very much looking forward to this game. I don't know Java, but I know C/C++, Python, HTML, FORTRAN, and MATLAB. So I might be able to help with some algorithms or something. If you need anything feel free to PM me. Quote Link to comment
RosaE836 277 Posted March 12, 2016 Author Share Posted March 12, 2016 Very much looking forward to this game. I don't know Java, but I know C/C++, Python, HTML, FORTRAN, and MATLAB. So I might be able to help with some algorithms or something. If you need anything feel free to PM me. I might. I have someone that offered to help me, but I'll keep your offer in mind. Quote Link to comment
PuppyDog230 102 Posted March 13, 2016 Share Posted March 13, 2016 I'm excited for this game! Fully interactive/customaziable omorashi games are hard to come by, for obvious reasons, so I'd excited to know one like this is currently in the works. Quote Link to comment
Kei 1,150 Posted March 13, 2016 Share Posted March 13, 2016 Sounds great--good luck getting this up and running! Quote Link to comment
RosaE836 277 Posted March 13, 2016 Author Share Posted March 13, 2016 I'm excited for this game! Fully interactive/customaziable omorashi games are hard to come by, for obvious reasons, so I'd excited to know one like this is currently in the works. That's exactly the reason I came up with this! There's a decent amount, but there just aren't any ones with customization that are complete (the closest we have is "Average Life", which hasn't been updated in forever! Sounds great--good luck getting this up and running! Thanks! I'm having a few small problems, but so far nothing that's keeping it from completion. Speaking of small problems, seeing as I'm planning on not releasing an update yet, here's just something that I found interesting. So, for whatever reason, an if statement with hr++ (adds one to hours) seemed to pass its if statement every time, despite it needing minutes = 60 AND hours = 0, so every 3 minutes (each round ingame is 3 minutes currently) hours rised. What's worse is that it kept some other code from executing, so I'll have to figure out what to do with that later. Anyways, as for another problem, I'm way too lucky. So, every 15 minutes, someone is called on in class (except 90 minutes in, as class is dismissed). so, I wanted to test something out that utilizes this code: int rollcall = generator.nextInt(numClassmates) + 1; For those who don't understand, rollcall is the one that will be used later, with 1 being you chosen to come to the front of class. Now, numClassmates is the number of classmates including you (the + 1 simply is used to make it 1-20 instead of 0-19). Now, you might see the problem already, I have a 1 in 20 chance to be called on in class, and everyone else is being called on, because I'm just that lucky. How lucky, you may ask? Well, after 50 passes (ten attempts of the code) I managed to not get called on once. Heck, whoever classmate 14 is got called on 8 times! Poor classmate 14... Anyways, I can fix the test by setting rollcall to 1 and skipping the generation, but I just found it funny. Quote Link to comment
ola93 415 Posted March 13, 2016 Share Posted March 13, 2016 (edited) So, for whatever reason, an if statement with hr++ (adds one to hours) seemed to pass its if statement every time, despite it needing minutes = 60 AND hours = 0, so every 3 minutes (each round ingame is 3 minutes currently) hours rised. What's worse is that it kept some other code from executing, so I'll have to figure out what to do with that later.Sounds like either your condition is wrong or the increment is not within the body of your loop (or whatever construction you use to pass to the same if statement multiple times.Also not that e.g. when "int i=0" "i++ > 0"will be false as "i++" increase i after it was evaluated, as opposed to the less famous "++i", which will increment i and then evaluate. Anyways, as for another problem, I'm way too lucky. So, every 15 minutes, someone is called on in class (except 90 minutes in, as class is dismissed). so, I wanted to test something out that utilizes this code: int rollcall = generator.nextInt(numClassmates) + 1; For those who don't understand, rollcall is the one that will be used later, with 1 being you chosen to come to the front of class. Now, numClassmates is the number of classmates including you (the + 1 simply is used to make it 1-20 instead of 0-19). Now, you might see the problem already, I have a 1 in 20 chance to be called on in class, and everyone else is being called on, because I'm just that lucky. How lucky, you may ask? Well, after 50 passes (ten attempts of the code) I managed to not get called on once. Heck, whoever classmate 14 is got called on 8 times! Poor classmate 14... Anyways, I can fix the test by setting rollcall to 1 and skipping the generation, but I just found it funny. This isn't funny nor odd behaviour. Computers do defined things, so by definition can't do anything random. So called pseudo-random number generators are quite good at ensuring what seems to be randomness in their output, but that's within a pRNG. You're probably testing with a new one each time 'though, as you're running your program again, and that gives far from random behaviour. Edited March 13, 2016 by ola93 (see edit history) Quote Link to comment
RosaE836 277 Posted March 13, 2016 Author Share Posted March 13, 2016 Sounds like either your condition is wrong or the increment is not within the body of your loop (or whatever construction you use to pass to the same if statement multiple times. Also not that e.g. when "int i=0" "i++ > 0"will be false as "i++" increase i after it was evaluated, as opposed to the less famous "++i", which will increment i and then evaluate. Well, the original statement was: if (min == 60 && hr == 0) hr++; I never heard of ++i before, I need to look up the uses of both. This isn't funny nor odd behaviour. Computers do defined things, so by definition can't do anything random. So called pseudo-random number generators are quite good at ensuring what seems to be randomness in their output, but that's within a pRNG. You're probably testing with a new one each time 'though, as you're running your program again, and that gives far from random behaviour. Hmm, well, pseudo random or not, it's just a small check that I want to happen a fraction of the time. I might want to mess around with the numbers to make it more or less likely, but 1-20 seems to be giving me good enough results currently, as I did a few more tests and got 1 called 3 times on the same test. Basically, I just want a chance of it happening, whether none, once, or multiple times in one go. Plus, if I increase the counts it uses (goes through schoolday) then it should give me slightly more random results. Thanks for the help! Quote Link to comment
ola93 415 Posted March 13, 2016 Share Posted March 13, 2016 Well, the original statement was: if (min == 60 && hr == 0) hr++; That should work. Could it be you're accidenly modifying i again before the if-stament is reached again, e.g. 'while (whatever) { int hour= 0; //n.b. sets hour to 0 in each iteration if (hour == 0) { //n.b. always true hour++; } }'? Quote Link to comment
blueswag 40 Posted March 13, 2016 Share Posted March 13, 2016 This is cool thanks for the work! Do you plan on adding pictures and such or purely text? I just ask because if you use text it might be easier to make this a console application instead of using the swing elements. Anyway, keep up the good work and let me know if you need help. I program quite a bit. Quote Link to comment
RosaE836 277 Posted March 13, 2016 Author Share Posted March 13, 2016 That should work. Could it be you're accidenly modifying i again before the if-stament is reached again, e.g.'while (whatever) {int hour= 0; //n.b. sets hour to 0 in each iterationif (hour == 0) { //n.b. always truehour++;}}'? nope, the only instance of hours being set is before the while statement. If you want, I can send you the current version of the code to look over. This is cool thanks for the work! Do you plan on adding pictures and such or purely text? I just ask because if you use text it might be easier to make this a console application instead of using the swing elements. Anyway, keep up the good work and let me know if you need help. I program quite a bit. Ah, yes, I understand perfectly what you mean, but even though I am not using pictures, the reason I'm using the swing elements are to make it less likely for the user to utterly crash the program. That, and I really would like this to have buttons for certain choices. While having a string entry for stuff like, say, the clothing, or even asking for a letter for the actions, there are certain descriptions that fit better for some clothing (not to mention it'd be easier to rechoice something instead of having to type it again), along with the fact that the actions would all have to be stuck in their own while loops if they hope for a wrong input not to crash the game or force a default option. Hope I didn't ramble too much with that ^^; I'll keep it in mind! Any small problems I have I'll mention here, big problems I'll start shooting people PMs. Quote Link to comment
ola93 415 Posted March 13, 2016 Share Posted March 13, 2016 nope, the only instance of hours being set is before the while statement. If you want, I can send you the current version of the code to look over. I'm afraid I'll indeed need the context to solve this then. Quote Link to comment
Subaru 206 Posted March 13, 2016 Share Posted March 13, 2016 when will this be released? Quote Link to comment
RosaE836 277 Posted March 13, 2016 Author Share Posted March 13, 2016 when will this be released? No release date planned yet. When it comes closer to completion, I'll start speculating. Sorry for the inconvenience. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.