The fuck did I just read.
On a side note, I actually feel really bad. I mean I think we all wrote rediculous verbose shit when we started out.
Hope that guy learns how to code for real and doesn't end up quitting.
Search found 34 matches
- Sat Nov 01, 2014 10:04 pm
- Forum: Programming Discussion
- Topic: Legendary worst code ever made
- Replies: 8
- Views: 8550
- Thu Oct 23, 2014 10:25 am
- Forum: Programming Discussion
- Topic: Problem calling free() from another function [SOLVED]
- Replies: 5
- Views: 3065
Re: Problem calling free() from another function
Got it! I asked a professor at school and she caught this as well. Here are the working functions: /* This function is the main entry point for the program */ int main() { Grid** grid; new_game(&grid); end_game(&grid); return 0; } /* This function allocates a 2d array */ void new_game(Grid**...
- Wed Oct 22, 2014 4:37 pm
- Forum: Programming Discussion
- Topic: Problem calling free() from another function [SOLVED]
- Replies: 5
- Views: 3065
Re: Problem calling free() from another function
So I'm still having trouble passing this Grid** in and out of functions. I asked one of my profs and she noticed this: grid = malloc(GRID_SIZE * sizeof(Grid)); should be grid = malloc(GRID_SIZE * sizeof(Grid*)); Which I originally missed. I do understand that I am creating a pointer to an array of p...
- Tue Oct 21, 2014 7:40 pm
- Forum: Programming Discussion
- Topic: Problem calling free() from another function [SOLVED]
- Replies: 5
- Views: 3065
Problem calling free() from another function [SOLVED]
I'm getting a segmentation fault when I try to free memory I allocate for a 2d array. The following causes a segmentation fault: /* This function is the main game loop */ void game_loop() { /* Store the user input for logic */ Input input = NONE; /* Create game variables */ Grid** grid; int score; i...
- Tue Jun 17, 2014 3:05 pm
- Forum: Programming Discussion
- Topic: Java gaming discussion
- Replies: 7
- Views: 4288
Re: Java gaming discussion
...didn't even think of that, that's probably a bigger concerndandymcgee wrote: I think having a compiler would be a bit more important than a graphics lib. You'd be hard pressed to get your Fortran running natively on iOS.
- Sun Jun 15, 2014 1:37 pm
- Forum: Programming Discussion
- Topic: Java gaming discussion
- Replies: 7
- Views: 4288
Re: Java gaming discussion
If you're making a game with more complex grpahics needs, you can still use Java, but might choose a library like LWJGL (Lightweight Java Game Library). If you have a need for extreme performance or distribution on platforms without a JVM, you'd want to use C/C++ and something like SDL or OpenGL. He...
- Fri Jun 13, 2014 10:19 pm
- Forum: Game Development
- Topic: Well Guys, We're Doing It (I Think)
- Replies: 2
- Views: 3042
- Thu Jun 12, 2014 9:26 pm
- Forum: Game Development
- Topic: Well Guys, We're Doing It (I Think)
- Replies: 2
- Views: 3042
- Thu Oct 31, 2013 10:42 am
- Forum: Game Development
- Topic: What projects are you currently working on?
- Replies: 500
- Views: 186445
Re: What projects are you currently working on?
Nice looking work SomeAwesomeUsername! Can't wait to see the finished product.SomeAwesomeUsername wrote:I've been working on this rts game with the gameplay style of Command & Conquer
- Sun Oct 06, 2013 8:43 pm
- Forum: Game Development
- Topic: Project Prototype - Requesting Feedback
- Replies: 4
- Views: 4218
- Sat Oct 05, 2013 8:39 pm
- Forum: Game Development
- Topic: Project Prototype - Requesting Feedback
- Replies: 4
- Views: 4218
- Wed Oct 02, 2013 8:01 pm
- Forum: Game Development
- Topic: Summer Project - "Terminal Fantasy"
- Replies: 9
- Views: 6371
Re: Summer Project - "Terminal Fantasy"
Awesome man! Glad you enjoyed it!!
- Tue Oct 01, 2013 3:51 pm
- Forum: Game Development
- Topic: Summer Project - "Terminal Fantasy"
- Replies: 9
- Views: 6371
Re: Summer Project - "Terminal Fantasy"
Hey all, the download script for Recoil and Retrieve on my website was pointing to the wrong directory. It is now fixed!
- Tue Oct 01, 2013 1:05 pm
- Forum: Game Development
- Topic: Summer Project - "Terminal Fantasy"
- Replies: 9
- Views: 6371
Re: Summer Project - "Terminal Fantasy"
Shit! That's not good. I'll fix that on my server when I get home from class today. Thanks for the heads up!
And yes, Recoil and Retrieve is finished. Not much of a game, but finished
And yes, Recoil and Retrieve is finished. Not much of a game, but finished
- Sun Sep 29, 2013 9:06 pm
- Forum: Game Development
- Topic: Summer Project - "Terminal Fantasy"
- Replies: 9
- Views: 6371
Summer Project - "Terminal Fantasy"
*********