Jump to content

My Game Programs made with Visual Basic


Koni

Recommended Posts

5b7feeff146b8_TenisRaketagame.PNG.09f4b472e89f8150a5a2c73b74f4c216.PNG

My FIRST program !!!...

 

5b7fef3410d27_Tetrisgame.PNG.a89f909c644f21804a632c141ccecdee.PNG

 

5b7fef6084041_Frutakiagame.PNG.4b0b8d9526492e71b1917b5b7d180f4b.PNG

 

5b7fefc4e9b39_MEMORYgame.PNG.19cd8f110ef8f4d01636487c90562edf.PNG

 

Dinos.thumb.PNG.9829d5fb6ec6250061219eebfbc95128.PNG

 

5b7ff02beccf8_ChristmasTree.PNG.75252372de9f07c40462a38c792c188d.PNG

 

5b7ff06624328_PACMANgame.thumb.PNG.6bc1dad850adcd93833cc2bf6bf0d90a.PNG

The RED is running very fast and get you !!!...

The GREEN eats your 4 BIG Circles !!!...

The BLUE make NEW o o o o o points - after you have eaten them !!!...

 

 

5b7ff1be18d45_QuiclyProductFIRTSNumbersShortcut.thumb.PNG.bdc3dab448cc82d4492e4cdf2eda61d7.PNG

 

Domino.thumb.PNG.f581c40cb7044bcf6a3f45fb9b2c6d1c.PNG

 

5b7ff206d332f_StarsWargame.thumb.PNG.af12483403fa7fbb7b1aaaca555926b7.PNG

 

Ball.thumb.PNG.5b0b70274d5fa9e905d82ea56b5a0e46.PNG

 

5b7ff2548f192_xVyRadical.PNG.69378976f10ae9081307c5c3324bd386.PNG

 

5b7ff29f5b02d_BirdCharacterCalculator.PNG.8d50499f85be97e2d712c81ca57cc84e.PNG

This Calculator is made NOT with { arithmetic VARIBLES } - but with { character VARIABLES }  !!!

The Character-Variables are { very Large } but you cannot make calculations with them !!!

So ... I had to give with code ... the addition ... the supstraction ... the multiplication ...

2_4096.PNG.32a4c20a4ec81d7dacbd3363de0ea975.PNG

With my Character-Calculator , I made:

2 * 2 = 4

4 * 4 = 16

16 * 16 = 256

and so on ....

I could after 2 + 1/2 Hours calculate 2^4096 = a Number with 1234 Digits !!!  (look Image)

Koni

 

 

Edited by Koni
Link to comment
Share on other sites

Why are you using such crazy colors? Later people think/say that programmers have no good artistic taste.. ;)

Applications/games should be designed such a way that they are pleasant to eye of user.

Edited by Sensei
Link to comment
Share on other sites

This weekend assignment (to improve your skills :) ):

What Visual Basic can offer in 3D visualization? Make box rotating in 3D, with shading.. It could be done with couple (actually 6) draw polygon commands..

Do you know how to rotate vector in 3D? And how to transform from 3D to 2D screen display (perspective projection).. ?

Do you heard about scan-line algorithm? (you will have to check Visual Basic if drawing pixel-by-pixel is not too slow.. will depend on your machine specification a bit)

Are you using double-buffering? (to have no flickering of fast changing animations, obviously)

 

 

If you will master 3D visualization, you will be able to make 3D versions of your games.

 

Link to comment
Share on other sites

Sorry !!!... But at age 40 ( I am now 55 ) I went to a 2 years afternoon school to learn a little Computer !!!...

The { Visual Basic 6 } programs which we made in school had only 10-20 Lines of Code !!!...

I bought a book and learnt something more !!!

I had from nobody a HELP !!!...

I made ALL on my own !!!...

So ... I don't know very well programming !!!... I have only the skills to make my own simple programs !!!...

( I think that "Delphi" has 3D visualization ) !!!...

Koni1963

 

 

 

 

 

5b7ffd12c833e_PACMAN2.thumb.PNG.341b409f4b43067513925fd72c5a38cc.PNG

The secret behind my Pac-Man game !!!...

At each point (square) the 4 NUMBRES indicate in which Directions can they play !!!...

Then ... with "randomize" is choosen the one Direction of them !!!...

Koni :)

 

Edited by Koni
Link to comment
Share on other sites

It's good that you have passion, and enthusiasm to learn something new. I just gave you idea what can be done later. Don't give up. The more you're programming, the better you're in it. It doesn't matter at what age you started. More matters if you want to learn something new and improve your skills or prefer watching TV or other works.. :) (I am programming and watching TV at the same time ;) ).. Do it on daily basis, and you will be master. One day, one (small) application. Pick up subject by yourself. 3D visualization is natural thing in modern times, so I wrote about it. You would learn matrix multiplication, how to create projection matrix etc. etc..

 

 

In the first year of programming, I believe so, students at university are learning how to program OpenGL, and make some "boxes and spheres" (rotated in animation or spin by mouse or keyboard by user). These two things can be joined easily and made ball-n-stick model of chemical compound. Two sciences (computer programming and chemistry) at the same time.

 

Edited by Sensei
Link to comment
Share on other sites

The Problem is that my "Visual Basic 6" is 32 bit and plays only on Windows-7 and NOT more on Windows-10 !!!...  :angry::(:wacko:

And now I have NO other NEW ideas to make something !!!... ( and forget bit-by-bit all that what I had learnt ... )

( I have made my 9 chess-boards ) - ( look at my other article : "Evolutionary Transformers Chess" )

I am HAPPY with THAT what I could make for myself !!!...

Have a nice Day my Friend !!!... - EVERY Day of your Life !!!

Koni

 

Link to comment
Share on other sites

Download Visual Studio 2008 Express ISO from this link:

https://www.google.com/search?q=download+visual+studio+express+2008

(Do you know how to burn ISO?)

Then install it.

It has Visual C/C++/C# .NET Framework. Try it instead of Visual Basic.

Watch this video "how to make calculator in C# in Visual Studio":

There is couple parts of this video.

Simply install VS, and follow this tutorial.

 

 

Link to comment
Share on other sites

5 minutes ago, Koni said:

And now I have NO other NEW ideas to make something !!!...

You can ask this forum for ideas what to make this "day of programming".. ;)

Google for "programming job challenges" etc. There are websites which are checking candidates for job in IT software company. Exercises from the simplest one to the hardest one.

Forget that you're not applying to job in IT, and use them as exercises ("inspirations") what to program today. They are not programs with GUI though. But your brain might hurt by some of them.. ;)

 

 

 

Link to comment
Share on other sites

24 minutes ago, Sensei said:

 

 

13 minutes ago, Sensei said:

You can ask this forum for ideas what to make this "day of programming".. ;)

Google for "programming job challenges" etc. There are websites which are checking candidates for job in IT software company. Exercises from the simplest one to the hardest one.

Forget that you're not applying to job in IT, and use them as exercises ("inspirations") what to program today. They are not programs with GUI though. But your brain might hurt by some of them.. ;)

 

 

 

THANK You Sensei !!! 

It is very nice your consern about Me !!!

But since 5 years I buy and read "Biology Books" and have NEW interests !!!...

Biology is more "complex" -  compering with Computers !!!...

You have the Proteins-Enzymes the "Molecular Machines" of the Cell !!!...

It is a REAL and "fantastic" micro-world !!!...

( At age 33 I got shizophrenia and then cancer too !!!...

So ... I lost my Job and I had not the opurtunity to make my own Family !!!...

So... I have to do always something ... to forget my problems !!!... )

Koni

Link to comment
Share on other sites

THANK You Sensei !!!...

But "artificial Life" is NOT of mine interests because my oppinion is that Computers cannot be alive !!!...

From a Computer you need consistently to always get the same result !!!...

Life requires flexibility to change when changing external environmental conditions !!!...

That are two(2) very different thinks !!!

Koni

 

Link to comment
Share on other sites

But Live is NOT a random process !!!...

Life has Biological and Biochemical rules !!!... :)

Only Life is very-very more "complex" than anything Humans have made !!!...

Koni

Edited by Phi for All
No advertising, please
Link to comment
Share on other sites

On 24.08.2018 at 2:39 PM, Koni said:

The secret behind my Pac-Man game !!!...

At each point (square) the 4 NUMBRES indicate in which Directions can they play !!!...

Then ... with "randomize" is choosen the one Direction of them !!!...

It's called bitfield/mask/flag:

https://en.wikipedia.org/wiki/Bit_field

You could reduce amount of data which is required to inform which direction is "clear", and which is wall, using bits, instead of decimal digits.

It can be done with just 4 bits. 1 bit for up, 1 bit for down, 1 bit for left, 1 bit for right. 2^4 = 16 possible states (from 0...15).. Suppose so 1 is left, 2 is right, 4 is top, and 8 is bottom.

To check bitfield there is needed to use bitwise operation

https://en.wikipedia.org/wiki/Bitwise_operation

AND bitwise operator is &

OR bitwise operator is |

so checking if object can go left/right/top/bottom could be done using:

	if( field & 1 ) printf( "Object allowed to move left\n" );
	if( field & 2 ) printf( "Object allowed to move right\n" );
	if( field & 4 ) printf( "Object allowed to move top\n" );
	if( field & 8 ) printf( "Object allowed to move bottom\n" );
	

 

Edited by Sensei
Link to comment
Share on other sites

THANK You Sensei !!!...

It is very kind of you to share your knowledge with me !!!...

1 = 0001

2 = 0010

4 = 0100

8 = 1000

5b83e36a34fb6_Aliens16.PNG.5cd772100a5c13646dec50007ee1f64f.PNG

If we Humans ... had 8 fingers in our 2 Hands ( 2*8=16 ) we could also easy write the Numbers

from our Hexadecimal arithmetic system >>> to the Binary system ... without "calculations" !!!...

K:)ni

Link to comment
Share on other sites

53 minutes ago, Koni said:

1 = 0001

2 = 0010

4 = 0100

8 = 1000

To disallow making mistake there is typically added % character prior binary number

e.g.

1 = %0001

2 = %0010

4 = %0100

8 = %1000

Hexadecimal number should have prefix $ or 0x

e.g.

255 = $FF = 0xFF

 

Link to comment
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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.