Previous Page | Next Page
- by hcs at 5:50 AM EST on March 10, 2006
- Text mode sucks for anything that needs to be updated in real time, especially if it's more than a single line.
Try this:
cout << flush;
COORD topleft = {0,0};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),topleft);
instead of your call to the system cls.
Also, the default screen size was too damned huge. "Typical" text mode resolution (I'm sure there's a standard name for it somewhere...) is 80x25 characters.
It'd really behoove you to learn, say, SDL and do this in a proper environment where you can sync to the vertical refresh and all. Wouldn't require much of your code to change, either, and it's worth learning.
edited 10:51 AM EST March 10, 2006
- by unknownfile at 6:55 AM EST on March 10, 2006
- Hooray. March Break at last.
Except I still have a fever, and today is a school day. This means that I have missed a week's worth of work and that I will be forced to do it over the break. I guess my plans for doing stuff are dead =(
- by PokeParadox at 6:57 AM EST on March 10, 2006
- Thanks... I knew cls wasn't the way to do it. I also knew that it was the cause of the flickering. So thanks for showing me that way.
About the screen size: I didn't realise there was a typical text mode resolution... although I did think there was a maximum before it would start scrolling. I have come to find that this scrolling maximum differs with the system display resolution.
I do want to learn SDL... but not at this time(but possibly soon). But regarding pong, I could have easily done it in oGL, giving the same merits of refresh and such... but I wanted to do it in a pure console window for kicks! ;)
- by hcs at 8:42 AM EST on March 10, 2006
- Ah, forgot you knew oGL.
- VLC = Video LAN piece of Crap by unknownfile at 3:19 PM EST on March 11, 2006
- I was watching one of my anime thingys and then, out of NOWHERE!!!!!!!!!
"A problem has occured and Windows has been shut down to prevent damage to your computer."
This isn't the first time it's done it, but this time it was unable to recover after the computer rebooted after the Blue Screen of Shit. It just gave me the non-BSoD errors (the ones that say this program has encountered a problem blablabla).
It's been reinstalled, and if it does that again then I am going to eat cheese, which really isn't all that bad.
Anyways, the flu which I've had for the last day has continued to suck. If it isn't better by Monday, then I will swear to never go to New York City again.
Also, I'm Shanks! The friendly chimney sweep! Take me bloomin' hat!
edited 8:22 PM EST March 11, 2006
- by unknownfile at 6:00 PM EST on March 13, 2006
- became
which is actually a good thing. :P
edited 11:28 AM EST March 14, 2006
- by hcs at 3:30 AM EST on March 14, 2006
- I need to pick a hostname for my work computer... I'm considering beuctus, but something that's a reference someone else might get might be more fun.
How about corneria? Dual Star Fox and Final Fantasy reference.
And I can put the "In Corn We Trust" thing from 8-bit Theater up :)
edited 9:04 AM EST March 14, 2006
- by PokeParadox at 5:30 AM EST on March 14, 2006
- I like the Corneria name. :)
- by marioman at 8:08 AM EST on March 14, 2006
- Yeah, Corneria would be nice. *Goes off to listen to the SNES Corneria theme.*
- by Josh W at 10:32 PM EST on March 14, 2006
- Well isnt this just great.
I started my computer a few hourse ago and whilst it was starting it BSODed on me. So after a few things i releaized it was a memory problem so i removed, and cleaned the inches of dust that accumulated on them from the CPU fan and reseated them.
So i rebooted and it kept on rebooting when it tried to boot from the disk, so i booted with my boot disk and to my surprise the C drives boot sector has corrupted. This is the disk that contains XP and all of my other programs music, movies, games etc. However my J and D drives seem to be intact so my programming stuff and a few other programs have been saved there. So now im now running 98 off a spare hard drive i keep laying around and gunna try to hope to recover stuff that was on it. I could get some stuff back from backups, but there would still be about 6Gb of stuff missing.
Word of warning: keep your ram clean.
Previous Page | Next Page
Go to Page 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
Search this thread
Show all threads
Reply to this thread:
HCS Forum Index
Halley's Comet Software
forum source