Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Pong.NET, The C# Pong!
United States
OniLink10
Posted: Sep 14 2008, 01:04 AM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


That's right! I am nearly done with my C# Pong Project, Titled Pong.NET! Only 1 thing to do, and that is add in the P2 AI! Please note that this Program requires both the .NET Framework V2.0 and the SDL.NET Runtime to be installed. The SDL.NET Runtime can be found at it's Project Page Here:
http://sourceforge.net/projects/cs-sdl

Pong.NET V0.99 can be found Here:
http://www.mediafire.com/?mgmszatzcrg

The Source:
http://www.mediafire.com/?zl9jijppm9t

Also, I need 2 Things before I can Finish this:
1: How do I randomly set a Variable to either -1 or 1?
2: How do I set the Thumbnail shown next to the Application's Name in the Taskbar and the actual Game Window?

Lines of Source: 204
Size of Source: 4.48KB

This post has been edited by OniLink10 on Sep 16 2008, 10:22 PM


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Canada
OmegaDestroyer
Posted: Sep 14 2008, 01:10 AM
Quote Post


Regular


Group Icon
Group: Members
Posts: 108
Member No.: 3755
Joined: 11-May 07

Status: (0d) [--]


QUOTE
How do I randomly set a Variable to either -1 or 1?
Sorry, I don't remember much of C#. In GameMaker, I use:
CODE
variable = floor(random(2))*2-1

Hope that generates an idea.


--------------------
My website: Logeot.com
My Current Project: ???
user posted image
PMEmail PosterUsers WebsiteYahooMSN
Top
United States
OniLink10
Posted: Sep 14 2008, 01:14 AM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (OmegaDestroyer @ Sep 13 2008, 11:10 PM)
Sorry, I don't remember much of C#. In GameMaker, I use:
CODE
variable = floor(random(2))*2-1

Hope that generates an idea.

Hrm, that would also allow it to return 0, which would make it able to go Straight Left/Right or Straight Up/Down. Meh, I'll look in the ENIGMA Source and try to get an Idea from that.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Austria
Guinea
Posted: Sep 14 2008, 02:41 AM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 14 2008, 07:14 AM)
Hrm, that would also allow it to return 0, which would make it able to go Straight Left/Right or Straight Up/Down. Meh, I'll look in the ENIGMA Source and try to get an Idea from that.

Actually this works.

floor(random(2)) returns either 0 or 1.

0*2 = 0
0-1 = -1

1*2 = 2
2-1 = 1

I fail to see where it would return 0.
PMEmail PosterAOLMSN
Top
Finland
Hohoo
  Posted: Sep 14 2008, 02:58 AM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


Is the source available?

I would like to test this - under Mono of course.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
United States
OniLink10
Posted: Sep 14 2008, 11:17 AM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Guinea @ Sep 14 2008, 12:41 AM)
Actually this works.

floor(random(2)) returns either 0 or 1.

0*2 = 0
0-1 = -1

1*2 = 2
2-1 = 1

I fail to see where it would return 0.

>_< Simple Mistake. I accidentally forgot the *2 when checking the result of floor(random(2)) returning 1.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: Sep 14 2008, 11:19 AM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Sep 14 2008, 12:58 AM)
Is the source available?

I would like to test this - under Mono of course.

Sure, I'll put it in the First Post.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Sep 14 2008, 11:31 AM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 14 2008, 07:19 PM)
Sure, I'll put it in the First Post.

user posted image

I never knew C# source files are executables.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
United States
OniLink10
Posted: Sep 14 2008, 12:06 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Sep 14 2008, 09:31 AM)
user posted image

I never knew C# source files are executables.

Oops, Uploaded Wrong File. >_< Also, V0.99 is Finished! I cant upload it though since Mediafire is down. D: Also, it's V0.99 because there are Minor Collision Glitches between the Ball and P2, but without them it would be impossible to beat P2! :O I'll be fixing it up in a little bit.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Sep 14 2008, 12:20 PM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 14 2008, 08:06 PM)
Oops, Uploaded Wrong File. >_< Also, V0.99 is Finished! I cant upload it though since Mediafire is down. D: Also, it's V0.99 because there are Minor Collision Glitches between the Ball and P2, but without them it would be impossible to beat P2! :O I'll be fixing it up in a little bit.

Thanks.

C# code looks clear; I might try that sometimes. But for now Python is enough for me.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
United States
OniLink10
Posted: Sep 14 2008, 01:05 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Sep 14 2008, 10:20 AM)
Thanks.

C# code looks clear; I might try that sometimes. But for now Python is enough for me.

Your welcome. I would like to ask, is Python Intrepreted?


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Sep 14 2008, 01:49 PM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 14 2008, 09:05 PM)
Your welcome. I would like to ask, is Python Intrepreted?

My welcome?

Yes, it's interpreted.

This post has been edited by Hohoo on Sep 14 2008, 03:00 PM


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
Denmark
Mecha the Slag
Posted: Sep 14 2008, 01:53 PM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 14 2008, 08:05 PM)
Your welcome. I would like to ask, is Python Intrepreted?

yes it is


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
OniLink10
Posted: Sep 14 2008, 05:43 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Update! There are now SOUNDS in this Game! soveryhappy.gif


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: Sep 16 2008, 10:21 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Epic Update: The Game is now 2 PLAYER! I will List controls:

P1:
W: Move Up
S: Move Down

P2:
Up: Move Up
Down: Move Down

2 More Things needed listed in First Post. Also, Pong.NET needs some BGMusic to be Complete, excluding the Extra Stuff in First Post. If you want your BGMusic to be used in Pong.NET, please post it in a ZIP File here! I will gladly Include it in the Game!


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0619 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.81 ]