Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Let's make 16 classic game in C++ video series  (Read 37624 times)

0 Members and 1 Guest are viewing this topic.

Pham Trinli

  • Guest
Let's make 16 classic game in C++ video series
« on: April 27, 2016, 09:24:38 am »
Hello! This is my implementation of the 16 classic games in C++/SFML and little video tutorial series =>


16 games:
1. Tetris
2. Doodle Jump
3. Arkanoid
4. Snake
5. Minesweeper
6. 15-Puzzle
7. Car Racing (Top Down)
8. Outrun (Pseudo 3d Racing)
9. Xonix
10. Bejeweled (match-3)
11. NetWalk (Pipe Puzzle)
12. Mahjong Solitaire
13. Tron
14. Chess
15. Blobby Volley
16. Asteroids

source: https://yadi.sk/d/uqz1HerKrKWjV

nicox11

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #1 on: April 27, 2016, 11:17:42 am »
Put your sources on github or something similar, it'll be easier to watch. I don't want to download archives.

K.F

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #2 on: April 27, 2016, 12:01:11 pm »
This is actually a pretty good format for these kinds of tutorials, good job.  ;D

I like that you show what some of the lines do just by running the program.

Put your sources on github or something similar, it'll be easier to watch. I don't want to download archives.

Seriosly? Github for single files with just few lines? That's pretty useless, I'd understand Justpaseit or hastebin.com - why isn't it working by the way? - but Github? It's not even good for simple things like that.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #3 on: April 27, 2016, 12:37:31 pm »
Quite cool to see a game come to life like in the videos. :)

Too bad the code formatting got screwed up like that (maybe because of the auto-insert script thingy you used to make the video?).

Would be quite interesting to see the code refactored into something more clean and easier to grasp. Right now there's a ton of magic numbers, short variable names and "random" arithmetic stuff. Plus the code is currently more C-like than C++-like. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Erdrick

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #4 on: April 28, 2016, 12:28:41 am »
This is an amazing display of talent to me, nice work.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Let's make 16 classic game in C++ video series
« Reply #5 on: April 28, 2016, 01:48:32 am »
Where is game 16 (in the videos)?

Where is the actual game (there's no car!) in the pseudo 3D car racing game?

This stuff will be quite useful for people looking to get one of these games running by typing it in theirselves or maybe if they're stuck somewhere and might find the answer in your code so nice of you to share this.

One of the first things I noticed, which was in the first video, was something like:
float time = clock.getElapsedTime().asSeconds();
clock.restart();
timer += time;
This could be just:
timer += clock.restart().asSeconds();

I don't want to comment too harshly as it's nice that you did it so I'll leave critiquing the code to others (who obviously know more about it than I do).
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #6 on: April 28, 2016, 02:27:01 pm »
Wow, pretty amazing, great job!
Nice reminder that simple straightforward things are sometimes all it takes to get the job done.
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

Tukimitzu

  • Full Member
  • ***
  • Posts: 117
  • Anti-Hero Member
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #7 on: April 28, 2016, 05:32:29 pm »
Very well put together. I think the fact that everything is in a single file makes it easier to a beginner to understand. I myself, when made my first game using Allegro a competitor, just shove it all in a .cpp and it worked. Beginners only care for results, and your videos show a very straight-forward way to do it.

Good job!

CleverBoy

  • Newbie
  • *
  • Posts: 25
  • Game on!!
    • View Profile
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #8 on: August 21, 2016, 03:55:33 pm »
Amazing. I never thought all these games could be achieved in one file. You just changed my perspective that these games were difficult to code. You made it look so simple. Thanks to you man... Great job. 

Raincode

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #9 on: September 16, 2016, 03:55:05 pm »
Enjoyed watching your videos, thank's for sharing:)

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #10 on: September 16, 2016, 07:46:37 pm »
great videos

a really great display of incremental programming


Cmdu76

  • Full Member
  • ***
  • Posts: 194
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #11 on: September 18, 2016, 11:29:36 pm »
The Outrun game is incredible !

The only problem is that it's not explained, but I understand that this is not the purpose of this video

BioForceGun

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #12 on: January 24, 2017, 01:41:58 pm »
Will i'm right if i say what this examples so more C-style, than that C++? I'm trying learn SFML by it, but now i think it bad sample to learn library. I spent a lot of time to refactor this code, because default format completly unread.

Please, give some examples or lessons to start and understanding SFML (in Google all examples so different in code-style and old), why official site doesen't have simple example completely game? Thank a lot.

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Let's make 16 classic game in C++ video series
« Reply #13 on: January 25, 2017, 12:13:54 am »
that is a great way to learn the library

just go to the download site listed on the video and download the code

look through it

watch the videos
what makes them great is they don't show the final code at the beginning, but each games starts off with a simple window and then adding and changing line by line they end up with a game

and I think its great that each game is contained in a single file

makes it much easier to follow along

if you want a game full of templates and classes and inheritance then go to
https://www.packtpub.com/all?search=%22sfml%22
and buy an sfml book

or search youtube
https://www.youtube.com/results?search_query=sfml


Xhite

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Let's make 16 classic game in C++ video series
« Reply #14 on: February 03, 2017, 11:24:53 am »
Actually these videos made me try SFML  :) I have a rusty 10-15 years old C background, with 0 C++. Even not clearly remembering pointers etc. Still i am making some progress if i dont suicide next week :)

 

anything