Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      Server Move   09/13/2018

      I (Dries007) have recently taken over as main developer and server admin. This involved moving servers to reduce cost. It's likely there will be some more downtime in the future but most  things should be sorted by now. This forum is in dire need of replacement as the software is quite old and can't be easily updated. If you wish to discuss or stay updated, join our discord: https://invite.gg/terrafirmacraft. The forum will remain available to read, but will be locked in the future, when a new system is setup. The forum and wiki are now ad free. If you'd like to contribute to keeping it that way, you can do so via paypal or patreon.
    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.

11 posts in this topic

This is the first game I actually finished, it's made in C++ and the Allegro 5 library. It's a small and simple 2D space shooter, basically just for practice. I'm putting it here for any aspiring programmers to look at the code and learn from it if they want. The source code download link will be in the description of the video.

5

Share this post


Link to post
Share on other sites

Very nice for a first c++ game. congratulations ;) How long did it take you to make and how long have you been learning c++?

0

Share this post


Link to post
Share on other sites

Damn!!! Your game is simple but cool! And it's your first one :) you're pretty good in making these things. Maybe you can try to make something more difficult :D. Yeah, you can if you want.

Also, obviously, a +11. Yeah, I said a +11.

0

Share this post


Link to post
Share on other sites

Very nice for a first c++ game. congratulations ;) How long did it take you to make and how long have you been learning c++?

Thanks. It took me about 10 hours of coding, but I spent the most time on images/bitmaps. And I've been learning C++ for 3 and a half months now.

Damn!!! Your game is simple but cool! And it's your first one :) you're pretty good in making these things. Maybe you can try to make something more difficult :D. Yeah, you can if you want.

Also, obviously, a +11. Yeah, I said a +11.

That's a lot of likes :D

I'm working on some more advanced stuff atm, I'll get to it a lot more during winter break though.

And I may post updates about my progress on my channel.

1

Share this post


Link to post
Share on other sites

<snip>

i seriously have to get out of the "making a crappy half-assed GUI-less calculator that can't even ::cout floats" stage :(

What resources did you use to learn c++?

EDIT: scratch the last i said. totaly missed the part where you wrote in the description that it was antiRTFM's channel.

0

Share this post


Link to post
Share on other sites

i seriously have to get out of the "making a crappy half-assed GUI-less calculator that can't even ::cout floats" stage :(

What resources did you use to learn c++?

EDIT: scratch the last i said. totaly missed the part where you wrote in the description that it was antiRTFM's channel.

Ahh.. Took me a lot of time to get out of that stage too :D If you decide to watch antiRTFM's videos though, you might get some cool ideas for actual games in his later videos.

0

Share this post


Link to post
Share on other sites

Is c++ mainly used for games, or is it used for mathematical or scientific purposes as well like python?

0

Share this post


Link to post
Share on other sites

Is c++ mainly used for games, or is it used for mathematical or scientific purposes as well like python?

C++ is used for a lot of mini-games like this. Also sandbox games. And if you're good enough, you can make minecraft in C++.
0

Share this post


Link to post
Share on other sites

C++ is used for a lot of mini-games like this. Also sandbox games. And if you're good enough, you can make minecraft in C++.

Cool :) can it be/ is it often used for software/mathematical purposes?

0

Share this post


Link to post
Share on other sites

C++ is used for a lot of mini-games like this. Also sandbox games. And if you're good enough, you can make minecraft in C++.

Not really. C++ is used for all manner of things, including but not limited to games. Video redactors, music converters, computer-aided design systems' OS, etc. You name it - C++ programmers have probably wrote it at some point. Programming is like telling computer what to do, and it's who speaking matters really, not the language he speaks.

As long as language has access to key features of the machine it will run onto - you can do anything that machine is capable of. If it has access to all features, you can try to get machine to do even the stuff it is normally incapable of, like get your phone to vibrate off the table you left it on, for example.

As a language, C++ is one of pseudo-object-oriented languages, that adds classes and objects to good ol' C while trying to keep C features and flexibility intact. All I can say is that while in terms of desktop systems you can write on Java all you can write on C++, but soft on Java will generally work a bit slower and be more resource-intensive.

But I might be wrong, I wrote on C++ quite the time ago, now I'm just another Java developer.

1

Share this post


Link to post
Share on other sites

C++ is used for a lot of mini-games like this. Also sandbox games. And if you're good enough, you can make minecraft in C++.

I think it's safe to say most PC games of today are made in C++ or a scritping language based on C++.

And as transcengopher said, C++ focuses more on the object oriented approach to programming. I like it more since it's clearer in my opinion.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now