Jump to content
  • Advertisement

Rhaal

Member
  • Content Count

    1385
  • Joined

  • Last visited

Community Reputation

754 Good

About Rhaal

  • Rank
    Contributor

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Rhaal

    Elitism

    Elitism sucks Oh look! I found the 'r' key! (jackass)
  2. Rhaal

    Review rant

    I've logged in and reported it [smile]. I also took the step of clicking no (this review was not helpful). It's now 0/18 found this review helpful so I think people that read it will be on the same page as you. Hmm, same 'page' [lol]
  3. Rhaal

    WooHoo

    The first milestones I've set for myself about a month ago have been met. As of yesterday I got text working in my engine [smile]. The milestones were 2D Rendering Device Audio Player Graphic Object class Derived Graphic Window class (holds other graphics) Text rendering to the screen Text rendering to windows Basic Input I've still got some debugging to do as my framerate has dropped a bit. I did a little optimizing yesterday but I need to figure out whether the slowdown is caused by the audio player or the font handling. I'm starting to feel like this guy:
  4. Rhaal

    Yar!

    I want the program/script!
  5. Rhaal

    :)

  6. Rhaal

    Newest Song

    Nirvelli (Legend Mix) Enjoy :)
  7. Rhaal

    Newest Song

    Ok, I'll put some more up. I'm at work right now so it'll be later.
  8. Rhaal

    Newest Song

    So, I like to write songs as well as code. Sometimes the code gets too crazy and I need the music to restore order in my soul (because the code causes turmoil [lol]). The latest song I've drafted up is called "Seclusion", and like I said, it's a draft. My Keyboard/Recording Equipment are also not top notch. I gotta use my GameDev webspace for something! Download Seclusion_GD.mp3 5MB
  9. Rhaal

    A little bugger

    ZOMG I FOUND A HUGE ERROR! Although you were right, I found another major flaw. I wasn't calling clear() on the list! I wondered for weeks why I was getting so much lag! (Because this function is called around 60xSecond!)
  10. Rhaal

    A little bugger

    Hey, good idea! And... you win this picture: [totally]
  11. Rhaal

    A little bugger

    This one got me for a little while. My renderer has a list of entities that get rendered when a Draw function is called on the renderer. void lxRender::RenderScene() { std::list::iterator elI = mElementList.begin(); while(!(elI == mElementList.end())) { (*elI)->Draw(mScreen); elI++; } SDL_Flip(mScreen); } In an effort to program better I decided to change the way visibility works. Before, I was having the graphic element handle visibility by just exiting the Draw function right away if the flag wasn't set. Moving it to the renderer, I simply added a condition to see if the element was visible. void lxRender::RenderScene() { std::list::iterator elI = mElementList.begin(); while(!(elI == mElementList.end())) { if((*elI)->Visible) { (*elI)->Draw(mScreen); elI++; } } SDL_Flip(mScreen); } Everything worked until I made an element invisible. The program froze. This one got me for a bit then I felt so dumb. Can you see the problem?
  12. Rhaal

    Oh no Gamedev banned me!

    I've been caught up in a massive ban parade. It's no fun :(
  13. Rhaal

    Entry

    6:25 AM - Google Local I got this ad when searching for the nearest Dell Taco through google local. Screw the game industry. I want $90/hour to eat tacos!
  14. Rhaal

    Entry

    5:55 PM - Stupid Optimization Tricks I discovered a solution to a little problem I was having with tehtris. Input was slightly laggy, and I thought that I had some major resource issues going on! I passed it off as exactly that and decided that I didn't want to deal with it. Well I was breaking up some code since main.cpp was getting too large, and it just jumped out at me! void gsMainMenu() { // See if it's time to render a new frame. if((SDL_GetTicks() - gTimer) >= FRAME_RATE) { // Handle user input. InputMainMenu(); // Get rid of the last frame. ClearScreen(); // Draw background image. Renderer.Blit(*sfTitle, *sfScreen, 0, 0); // Show the main menu text. DisplayText(ftForgotLg, "Press any key.", 310, 300, 255, 255, 255); // Display the backbuffer. SDL_Flip(sfScreen); // Set the timer. gTimer = SDL_GetTicks(); } } My intentions were to have the frame rendered if the time was right. However, including the input handling into that if statement was causing input to only be read if it was time to render! Thus... void gsMainMenu() { // Handle user input. InputMainMenu(); // See if it's time to render a new frame. if((SDL_GetTicks() - gTimer) >= FRAME_RATE) { // Get rid of the last frame. ClearScreen(); // Draw background image. Renderer.Blit(*sfTitle, *sfScreen, 0, 0); // Show the main menu text. DisplayText(ftForgotLg, "Press any key.", 310, 300, 255, 255, 255); // Display the backbuffer. SDL_Flip(sfScreen); // Set the timer. gTimer = SDL_GetTicks(); } } ...is MUCH smoother! It's almost like I know what I'm doing.
  15. Rhaal

    Entry

    5:55 PM - XML Fun! I'm off work in 5 minutes! In light of the lack of expected OT today, I'm going to force myself to work on my programming for at least one hour before playing Warcraft :) I've been briefly learning XML (as in for a couple hours) and I think I get it. Does this look like a feasible xml doc to describe elements in a playlist? [source language= jscript] Tehtris Tehme Shane E. (vuxnut) \data\music\tehtris.mp3 Champion of Ron Shane E. (vuxnut) \data\music\cor.mp3
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!