• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

MrMonkeh

Members
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

130 Neutral

About MrMonkeh

  • Rank
    Newbie
  1. I believe the modulus operator (%) only works with integer types. You'll have to convert fn and sn to integer if you want to use it. Or...a quick search on google and I stumbled upon "fmod". Used like so: [CODE] fmod(5.5, 3.5) // takes numerator and denominator [/CODE] Note: I've never used this function before, so no promises. Though I believe you need to include the math header file to use fmod.
  2. [quote name='Wooh' timestamp='1317892687' post='4869719'] There are many ways to make updates to the screen. One simple way is to redraw everything every frame. This way is very easy. Doing like you are trying to do, drawing the background over the previous location of the paddle, should work fine in this simple case with single coloured background and non overlapping objects. You should call this before updating y1 and y2. [code]rectfill(screen,x1,y1,x2,y2,0);[/code] Also get rid of the calls to [i]rest[/i] here. I don't see why you have them here. You know what [i]rest[/i] do, do you? It waits the number of milliseconds. This might explain why you get "flicking black". If you want to call [i]rest[/i] do that somewhere else once per frame instead. Your approach is probably faster than redrawing everything every frame but the question is how much? Does it really matter? I have never used Allegro so I don't know. [/quote] I have the rest to actually control how fast the box moves. When I take the rest out, you see a quick flicker of white, and the box is way gone out of the picture.
  3. Hi, I have a simple question, probably super easy too, so I'd appreciate if someone could help me out here! I'm trying to recreate Pong, but far from that...I'm at the stage of getting things on the screen Basically, I want to move the rectangles on the sides, but can't figure out how in a productive manner. And before I get any farther, I am running Allegro 4.2, not the new version, 5. I have this code: [code]if (key[KEY_S]) { y1++; rest(10); y2++; rest(10); rectfill(screen,x1,y1,x2,y2,15); }[/code] Sorry if it looks weird, trying to figure out how to put code on here...[i]anyways...[/i]Basically for anyone who has ran Allegro, this simply redraws another rectangle, so it ends up looking like there's a rectangle on the whole left side. I've tried doing [code] rectfill(screen,x1,y1,x2,y2,0);[/code] to sort of "erase" it, but then when moving it just looks horrible (flicking black). Any help would be appreciated, or point me in the right direction! Thank you, MrMonkeh
  4. [quote name='Serapth' timestamp='1316897964' post='4865564'] [quote name='MrMonkeh' timestamp='1316845108' post='4865406'] Hi everyone! I've been reading the forums for a few days now and finally broke down and made an account to see if I could get your opinions... To start off, yes I have been teaching myself C++ for awhile now, and I got most of the basics down, and learning more advanced such as objects and classes, etc... Simply speaking though, I am wanting to get into game programming, whereas right now I am solely doing programming. What would be the best option (and/or tool) for me to add gaming to my programming list? Obviously since I have no prior experience in the gaming programming field, I want to start off very basic, such as 2D. I've read about Allegro and seen it to be a good starting position, though I was unsure of how good of quality you can make with it alone. And yes I've read through other posts, I've seen other engines and such, and I know this question has been asked a million times before. I just want to know where my best start would be with C++, as I've been getting various answers everywhere...so I want real programmer's opinions. Any and all advice will be greatly appreciated, please feel free to throw anything you have out here, even if it's the most basic of all programming. I just want a place to start, and possibly something I could grow into a larger field. Thanks for reading! -MrMonkeh [/quote] First, my biggest advice would be not to start with C++, but then, nobody ever listens to that one bit of advice for whatever reason... If you are indeed going to go ahead with C++ [url="http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition.aspx#CPlusPlus"]I put together this link[/url] that contains tool, book and library recommendations for learning C++ for game programming. Also, I am doing a [url="http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition.aspx"]longer tutorial series[/url] on writing a game in C++ using SFML. It goes into a lot more depth than most tutorials and hopefully will make you a better C++ programmer as a result. Most tutorials focus on a specific feature or are simply bad code, leading to a very bad foundation for new programmers to start with, hopefully this series of tutorials results in some slightly better beginner code. Still a WIP though, so not complete yet. [/quote] I recently read that on this site and wished I would have seen this BEFORE getting a good deal into C++. I own the C++ for Dummies Reference all-one-book (and I'm not sure how you guys feel about dummies books, so don't make fun ) and am about 300 pages in. I guess technically I could switch to a different language, though I am far into it (or so I think) and in my eyes it seems like I should just stay with it...however, if you feel a different one, such as C# would be better, even at this point then let me know before I drag myself deeper! I do appreciate it though, I will check out the links and tutorials you gave. On another note, if I do stay with C++, shall I continue learning it completely (ie; finish the book first) before attempting to fiddle with the gaming side? Or go ahead and start messing with gaming programming? Thanks!
  5. Hi everyone! I've been reading the forums for a few days now and finally broke down and made an account to see if I could get your opinions... To start off, yes I have been teaching myself C++ for awhile now, and I got most of the basics down, and learning more advanced such as objects and classes, etc... Simply speaking though, I am wanting to get into game programming, whereas right now I am solely doing programming. What would be the best option (and/or tool) for me to add gaming to my programming list? Obviously since I have no prior experience in the gaming programming field, I want to start off very basic, such as 2D. I've read about Allegro and seen it to be a good starting position, though I was unsure of how good of quality you can make with it alone. And yes I've read through other posts, I've seen other engines and such, and I know this question has been asked a million times before. I just want to know where my best start would be with C++, as I've been getting various answers everywhere...so I want real programmer's opinions. Any and all advice will be greatly appreciated, please feel free to throw anything you have out here, even if it's the most basic of all programming. I just want a place to start, and possibly something I could grow into a larger field. Thanks for reading! -MrMonkeh