This week was a week off from university; what did I do you ask? Learnt C++ of course!
I've covered all the changes from C to C++ and started learning a bit about classes.
Beginning C++ Through Game Programming is an excellent introduction to C++ and I greatly recommend it. There is a problem though, where to go from here? Every book I've found is either for beginners or advanced, where is the intermediate books? I may have to teach myself through experimentation or move onto another language such as Java.
But I like C++, it's the industry standard, so I'm going to learn OpenGL or SDL (graphics libraries for making games I believe, I want to start in 2D obviously).
More info soon, I promise!
Week Off
Preparing To Move On
Well that was my final C assignment (more information coming, be patient please!); so now I'm getting ready to move onto C++.
The course officially doesn't start C++ until 3rd of October but I'm getting a few weeks head start to ensure I do well.
The book I'll be using to begin with is a book I bought a few years ago but never attempted very far past chapter two: Beginning C++ Through Game Programming.
Amazon has it listed at $5.91 (US), I recall paying a lot, lot more than that so it's certainly a bargain now.
I'll also be using the last few chapters of Engineering Problem Solving with C and C: How to Program
as they include introductory chapters to C++ (the former has C++ for almost half of the book!).
So finally, finally, I should be able to make games as C++ is such an object oriented language. Hopefully you'll see playable games, albeit not great ones, within the next few weeks!
Assignment Information
Alright here's a little information on the assignment I'm currently working on:
We have to be highly modularised, which means pretty much every minor action in the program gets its own function and is all stored in separate files instead of one chunk of code. Apparently this is less confusing, whoever believes this is stupid.
We have to make a program that generates random numbers, then subs those random numbers into an equation which somehow integrates the equation, not sure how sound the mathematics is but who cares it's worth 15% of this subject.
It's not going too well at the moment, it's due in two days. I'll post more progress up until then but don't expect me to do very well as it pretty much covers all the topics I'm yet to learn.
Big Update!
Well I finally picked up the 6th edition of C: How To Program, the only difference is that some chapters are removed as far as I can tell; a little disappointing.
Also an update on what I've been doing: working bloody hard! It's mid-semester which means loads of assignments are due. Specifically programming this Monday, a program using random numbers; an audio editing assignment next Friday; a piece of fiction due tomorrow and a maths test every week with an extra maths test on Tuesday.
I'll post more information on the programming assignment this weekend where I'll be working most on it! It's certainly been a busy time.
Also: I received a reply regarding posting code. Unfortunately I cannot post it all since it might be plagiarised, what I can do is post parts and discuss what I did without giving future students something to copy and paste. So expect that soon too!
Enjoy this big update!
Assignment 2 Retry
Well as you saw yesterday I finally completed my retry of the first of last semester's assignments. I also began to re-do the second one which seems strange considering I got a mark of 97/100 for that one. But I'm a perfectionist so I want to get 100/100 for it.
My second reasoning is also because the third assignment is a mixture of the first two, so the more perfect they are the better it will be.
Expect me to begin assignment 3 retry sometime this week. I'm still waiting on confirmation if I can post university assignment code online or not so bear with me on that.
Hallelujah!
Finally! I have completed my re-doing of my assignment from last semester; best of all I fixed all the errors by myself!
It's far from an exciting or even perfect program but I'm proud I finally finished it. I'll get to work on retrying the second and third ones too, which I actually found a lot lot easier than this one when they were first due so expect them soonish.
I'll post the code itself asap; I'm currently double-checking everything and I'll add comments so newbies can understand the code itself!
Assignment Retry Update
Well I'm happy to say I've made great progress, I'm pretty much done! There's just a small error that causes the program to crash right at the end instead of being happy and finishing.
Once I figure out the problem I'll be done! I'll post the code on here with a nice explanation so you can see what it is that's been killing me for the last few months!
Another Apology
Okay, okay, I'm sorry I haven't updated in ages. But to be honest, nothing's really been happening. Everything I've been doing is just revision, I'm trying to get ahead a little bit myself but there's no point moving on until I've mastered pointers, arrays, functions and such difficult topics as those.
I'm currently working on re-doing the assignment that I said I'd do weeks ago but barely started, perhaps I should write about how to emulate my wonderful work ethic?
I'll update this week again with some interesting programs if I make any, maybe I'll share a written piece or something like that.
Programming Lab 1
Well today was my first programming lab, it was some simple revision in C so nothing exciting, they must be waiting until next week.
I'm thinking of using my knowledge of C to start a tutorial series, I'd be about a year ahead of those I'm teaching so it could work well if people are interested. (Plus it would help me revise basics as I teach them).
If you like the sound of this and want to be a game developer too, please comment this post.
Alas!
A friend of mine, finally, has sent me loads of sample code from my last semester (everyone else I asked either ignored me or hadn't done the work!) and now I can finally use it to compare and learn from. Expect lots more programming progress from now on!
9 Days
First off let me just re-introduce you to this book, I'm almost done and it is very insightful and a fascinating read.
Moving on to more pressing matters: it is nine days from now until I begin semester two of my course. The subjects I am taking are C/C++ Programming, Digitial Video & Audio, Fiction Writing and Engineering Mathematics.
I'm going to be focusing all my efforts into the programming parts obviously since they're the most important but I aim to get at least distinctions in everything if I can.
Expect more frequent posts as I'm forced to do more programming homework and projects.
Update On Text Adventure
Well I continued working on my text adventure game a little, yes I know I'm a bit over the place with my projects but this is how I work for some reason!
I'm collaborating on this project with an aspiring writer and friend of mine, Colin, whom I gave him a simple premise and he's ran with it creating a hilarious script that's still being updated with more and more side splitting moments.
I'm hoping that when my skills improve, I can transform this from a text adventure and into a point and click game. The narrative is pure gold in my opinion and I want as many people to experience it as possible; perhaps I'll make it into a Flash game so that it's easier to share around the internet?
But alas at the moment it is simply in a black and white window with just text but hopefully come release day it'll be a fully fledged hilarious game for everyone to enjoy.
Good News And Bad News: Including Assignment Retry Update #2
I'm feeling very disheartened, this assignment was for people with only a few weeks knowledge of C, I've been doing C for months and can't quite get this to work!
I've made good progress but the fact that this progress hasn't been swift makes me feel a little disappointed in myself as I feel as if my skills should be much more progressed by now.
Good news after the jump:
Update on Platform Shooter
I'm taking a break from C for a day or two to work more on my Platform Shooter!
I know I haven't given anyone much info on this so I'll fill you in now:
Assignment Retry Update #1
I'm having a lot of trouble with this assignment, as I did the first time around, except that was justified since I was new to C; this is inexcusable that I'm doing so terribly to make this program work!
I'll be working on it for the next hour or two but I'm not feeling very confident, maybe I'll do some more reading of my textbook on strings since that seems to be where I'm going wrong.
I Make A Foolish Mistake, As Usual
For those of you who understand programming, take a look at this code and have a good laugh at me:
For those who don't understand where I went wrong, here's what I stupidly did:
I set it so that if the user entered something that wasn't a digit, it would ask them to type a new value.
Alas I thought I was being clever by using "confirmed--" which tells the code to reduce the value of confirmed by one. What I didn't consider what that, if the user did it wrong more than once, the value of confirmed would plummet into negative numbers and the loop would last forever. Even if the user did enter a correct digit!
I'm working on fixing it now, I haven't had much time to work this week but I intend on catching up!
A Retry
I'm currently working on doing my first assignment for my programming class; it was due about four months ago.
No, I'm not late, I'm actually doing it again with my newer superior knowledge than what I had then. I didn't receive a great mark, at the time I was really struggling with C mainly because I didn't have Engineering Problem Solving with C (3rd Edition) which was necessary to the course.
I don't know if I can post the code, in case it's a breach of university rules of something so I won't. But I'll let you know of my progress.
Terrain Navigator: Complete!
Well that was very easy I'm glad to say, it's restored faith in my abilities as a programmer!
Here's the final code, usually I would separate this into separate functions but since it's only a small exercise I just left it all in main.
The Slaying of The Turtle
Okay so my recent attempts to create this "turtle graphics" program hasn't gone too well. So I given up.
Okay so I haven't given up but I chose to postpone it until I know more about arrays, especially 2D ones. Thus I have turned to Engineering Problem Solving with C (3rd Edition) and it's chapters on arrays.
I am about to begin work on a fun sounding "Terrain Navigation" exercise, simulating a robot navigating hills: the program will look at a 2D array and evaluate based on height information where peaks and valleys occur.
I'll post my progress later this evening if I do well!





