Hey all,
After a very long time, I want to share with you guys my very first 2D game. Its a space shooter game created using C++ with the SFML 2.1 library.
Here are the screenshots:
Splash:
In game:
Controls:
If you prefer the keyboard, then the Arrow keys are for movement and Space Bar for...
Program Name: The Adventures of Chemistry Genius Habibur
Program Description: This is just a CLI game that I'm making to improve my C skills as I am learning it. The current version has only two stages but you can expect more in every new version. This is more of a story than a game but still...
Hi,
This is a decimal (base-10) to binary (base-2) converter. I just made it and I don't really know a lot of Perl. So feedback, suggestions and improvements are really appreciated. :)
use 5.010;
use strict;
use integer;
use warnings;
sub to_base2
{
my $num = shift;
my $result = ""...
Lol this is pretty cool. xD
I made this myself in the "C-Like" languages.
In C (Za father of zem C-Like languages!):
#include <stdio.h>
int main()
{
char name[65];
printf("What is your name?");
fgets(name, 65, stdin);
printf("Your name is %s", name)...
Hi,
I just made this little program in C because I started learning it a few days. This program opens a file (it opens the file in read-only mode) eg: .txt, .c, .cpp, .py, etc and returns the total number of lines in the file. It also has error handling, so instead of crashing when the input...
I don't use any IDE. I just write the sources with Notepad++. I have MSVC2010, but I use its command line tools to compile the source. VC doesn't support C99 :(.
I used break to break out of the while loop and then exit it from the main body. Else, it would be looping until the end of time. I...
1) I'm declaring true/false because my compiler supports C89 not C99.
2) I used pointers because I just checked out the topic on pointers and my concept of it was not somewhat clear LOL. I thought it would serve the same thing as a variable with special stuff and my program would crash if I used...
Here is my implementation of your program in C:
#include <stdio.h>
#include <stdlib.h>
#define false 0
#define true 1
int main()
{
unsigned long *x_loc = malloc(sizeof(*x_loc));
while(true)
{
printf("Enter a number (0 to end): ");
scanf("%d", x_loc)...
Program Description
This is the implementation of the traditional Rock Paper Scissors game in Python. This isn't like the other CLI games that messes up the whole Command Line with lots of messages. This removes the previous messages and updates them with new ones in a fraction of a second...
Program Details
Choice maker is a program that takes several choices from the user and returns a random choice from the input(s). For example, if you want to buy chocolate and you choose several ones: Galaxy, Cadbury, Snickers and Mars. Too bad you can only buy one. But which one? You can use...
Hi,
I'm new to this community and I'd like to start off with a tutorial :). In this you will make a "Number guessing" game.
Requirements:
1) A Computer (Thats obvious xD)
2) A BASIC compiler like FreeBASIC, etc.
3) Patience
First off, open up your favourite editor. I use Notepad++.
Then type...