Author Topic: uPong  (Read 23684 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #90 on: January 12, 2011, 01:02:15 pm »
UPDATE:

I just implemented grayscale and moving up paddle in the new engine! Now it looks just like the old one, but the size is smaller!

The first screenie is exactly that.

The second one is the pause screen.

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: uPong
« Reply #91 on: January 12, 2011, 01:10:16 pm »
It looks great, but you can look at this if you want to:

Let's say you have 2 angles, a and b. The ball's position is determined by H and V.
When the ball hits the roof heading right:
rand^1->indicator variable I
1->X
!If I
2->Y
End
If I
1->Y
End

H+X->H
V+Y->V



So if I is 0, the ball bounces at a steep angle, but if I is 1, it goes at a 45 degree angle.

When it hits the wall, you do a similar thing.
See if that works. ;)
« Last Edit: January 12, 2011, 01:11:27 pm by c.sprinkle »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #92 on: January 12, 2011, 01:12:08 pm »
Code: [Select]
rand^1->indicator variable I  // Doesn't this mean 0->I?
1->X
!If I
2->Y
End
If I
1->Y
End

H+X->H
V+Y->V

I have yet to try it, but thanks :)

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: uPong
« Reply #93 on: January 12, 2011, 01:16:16 pm »
It stores a 0 or 1 to I, as far as I know.  ;)
You can change it using a 1 or 2 if it doesn't work.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #94 on: January 12, 2011, 01:21:18 pm »
It stores a 0 or 1 to I, as far as I know.  ;)
You can change it using a 1 or 2 if it doesn't work.

rand^x returns a value from 0 to x-1, I think...

Ashbad

  • Guest
Re: uPong
« Reply #95 on: January 12, 2011, 01:58:13 pm »
yep, it does.  Very useful in many occaisions, I couldn't even make trio and niko falling without the use of many moduli ...without it, you could only move around in 8 pixel increments! :P

EDIT: and rand^1 always gives a 0 lol

use rand^2 to get between 0 and 1
« Last Edit: January 12, 2011, 02:01:02 pm by Ashbad »

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: uPong
« Reply #96 on: January 12, 2011, 02:31:17 pm »
Oh well.
*c.sprinkle is irritated at his failure.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #97 on: January 12, 2011, 03:24:05 pm »
Oh well.
*c.sprinkle is irritated at his failure.

Don't worry, it was not a problem :) I have not tried the code yet, only tomorrow :(

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: uPong
« Reply #98 on: January 12, 2011, 06:49:54 pm »
yeah, we know but the difficulty gets too high too fast.  ;)  if it moved  up 1-2 pixels every frame, it's difficulty goes up slower.  although maybe moving up 1-2 pixels should be for the easy mode...

I already made it one pixel in the easy version and 5 pixels in the hard version.

^ this, and I'm considering terminating your account at this point. I did not even say anything wrong in my post, I just gave a suggestion. I tried the game earlier and it was good. I just felt that the paddle should not raise this fast. Also I did not notice it stops raising later, because you kept dying in your screenshot so I stopped watching after a while. Now I did, but as suggestion I would recommend having the paddle height increase every 5 points  by 2 pixel, although you could maybe allow the user to choose.

I did not deserve a rude post from you and I ask an apology. This is the last time, though. We do not welcome such behavior on Omnimaga.

Also to the other person that keeps rating up bad posts and rating down all my warning, be aware that I can monitor rating logs. What you're doing is vandalism, and vandalism can lead to an immediate permban. If I see it happen again, your account will be deleted.

DJ, I recalled saying what I said later and regret, but I only noticed this now, and, sincerely, never thought I would be warned for it.

DJ, sorry for that, what I meant is that the game would end early if the paddle went up infinitely, but fortunately, it doesn't.

Concerning the person that rates good posts up and bad posts down, I don't know DJ, it's not me and that's why the rating system is not perfect.

Yeah I agree 1 pixel would be better, otherwise one game won't last long enough. Otherwise, maybe 2 pixels?
It lasts long enough!!! The paddle stops at X, so the game doesn't finish. DJ, go watch the screenie, please.
That was uncalled for Scout. How do you know he didn't already watch the screenshot? I think DJ deserves an apology.

That was indeed uncalled for.

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

Major updates: I decided to rewrite my engine and not use Quigibo's anymore. I still use a subroutine he made and his ball sprite so I may keep crediting him :D The engine is finished, but it has one tiny bug at the moment.

Thank you. I was a bit disapointed by the post because bad stuff did not happen for at least two weeks so I thought things were going fine. Just be careful.

Also don't worry the other person that was abusing the rating system was not you, it was someone else.

Anyway keep up the good work on uPong!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #99 on: January 13, 2011, 03:52:02 pm »
WOAH Major updates! Changed the pig mode bug, 2900 bytes! Greyscale, pig, easy and hard in the new engine!

Screenie and release probably tomorrow.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #100 on: January 14, 2011, 03:33:40 pm »


* ScoutDavid  releases uPong 4!

I really need feedback, tell me what you think.

Changelog:
> Removed greyscale for speed and beauty;
> Fixed the Pig Mode bug (finally!);
> New, faster engine, also easier to browse than Quigibo's;
> astonishing size of 2699 bytes;
> New Title Screen;
> DrawInv in Hard Mode;
> Easy mode slightly harder;
> Added paddle going up thingie;
> In the overall more beautiful and challenging;
> Faster SpeedUp;
> A DoorsCS Icon.

;D Probably the last version.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: uPong
« Reply #101 on: January 14, 2011, 03:34:34 pm »
HOW did you do the DCS pictogram?? HOW??? HOW???
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #102 on: January 14, 2011, 03:36:16 pm »
HOW did you do the DCS pictogram?? HOW??? HOW???

I was expecting feedback, xD

Axe 0.4.7>, I think.

My code is:

#icon(FFFFFFFFC003C003C003C0C3C1A3C1E3C0C3C003C003C003C003CFFBC003C003)

Compiled it as Doors CS program.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: uPong
« Reply #103 on: January 14, 2011, 03:37:28 pm »
huh? a sharp? dont know how to draw that
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: uPong
« Reply #104 on: January 14, 2011, 03:39:06 pm »
huh? a sharp? dont know how to draw that

In the text editor on-calc, 2ND + Catalog, #Icon. I used TokensIDE to draw a 16*16 image and the code has to be exactly 64 numbers of length.

Now, I made a program.