Author Topic: [AXE] Little contest :D  (Read 21406 times)

0 Members and 1 Guest are viewing this topic.

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
[AXE] Little contest :D
« on: December 27, 2013, 11:02:15 am »
Hey guys, i propose a little contest that i've started with matref and hayleia in axe !

rules :
-make on programme who represent a sprite 8x8 who scrool smoothly with the keys 1/2/3/4 (axe keys)
-the programme need to be the more smaller on size !
-WARNING : ASM() IS BANNED YOU CAN't USE THIS COMMAND
-the programme need to be in axe pur.
-the sprite need stocked as this : [XXXXXXXXXXXXXXXX]→PIC0

EXAMPLES :

i've make the programme and i have 336Byte ;) try to make better !  EDIT : For the moment I have 324Byte !!! ;) ;) ;)



Good luck ! ;)






So the Winner his (before verification...)
1)RUNER112 !!!

code :

Code: [Select]
.S

ᴇ847A→°SX
ᴇ8481→°SY

FnOff

While 1
DispGraphClrDraw
(Select((getKey(3)+SX+1-getKey(2)??96)-97,PutSprite())?+96)PutSprite()
getKey(1)-getKey(4)+SY→SY
EndIf getKey(15)

Lbl PutSprite
→SX
64
While 1
If pxl-Test(-1→r₁, and 0,[AA55AA55AA55AA55])
Pxl-On(r₁ and 7+SX,r₁*32/256+SY and 63)
End
End!If r₁
Return

2)nikitouzz !!!

code :

Code: [Select]
:.A
:While 1
: For(64)r
: If Pxl-Test(→r1,0,[AA55AA55AA55AA55])
: Pxl-On(r1 and 7A(),r1/2/2/2+B and 63)
: End
: r1+1
:End
:getKey(1)-getKey(4)+B→B
:getKey(3)-getKey(2)A()→A
:DispGraphClrDraw
:EndIf getKey(15)
: Lbl A
:+A+96
:While →C≥96
: C-96
:End
:C
3)themachine02 !!!

code :

Code: [Select]
[AA55AA55AA55AA55]→pic0

While 1

    For(8)^r
      →r1
      pic0
         For(8)^r
            If {→r2}er1
               pxl-on(r1+X^96,Y+r2 and 63)
            End
            r2+1
         End
      r1+1
     End

getKey(1)-getKey(4)+Y→Y
getKey(3)-getKey(2)+X→X

DispGraphClrDraw
EndIf getKey(15)


Themachine make 324 and me 325 but themachine code bug when X arrive to 65535 !
« Last Edit: January 02, 2014, 03:18:07 pm by nikitouzz »
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [AXE] Little contest :D
« Reply #1 on: December 27, 2013, 11:05:54 am »
with matref
???

Anyways, mine is faster but 364 bytes large -.-°
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] Little contest :D
« Reply #2 on: December 27, 2013, 11:06:24 am »
Oh sorry this is with matref and hayleia i correct ! :)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Lunar Fire

  • LV3 Member (Next: 100)
  • ***
  • Posts: 66
  • Rating: +7/-1
  • I'll be watching you from the shadows
    • View Profile
    • My Tumblr
Re: [AXE] Little contest :D
« Reply #3 on: December 27, 2013, 01:31:41 pm »
Would love to try this one out, but I have never used Axe before. Could someone point me to a good starting place?
Your drill is the drill that will pierce the heavens!

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] Little contest :D
« Reply #4 on: December 27, 2013, 03:48:46 pm »
The PDF file included in Axe.zip I guess. I don't know of any other English actual Axe tutorial.

I'll work on my version a little more.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: [AXE] Little contest :D
« Reply #5 on: December 27, 2013, 03:51:24 pm »
nikki, I will try!

EDIT: Can someone share their source? Because I don't even have screen wrapping and I already have 400 bytes.
:(
« Last Edit: December 27, 2013, 04:10:59 pm by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] Little contest :D
« Reply #6 on: December 27, 2013, 04:15:36 pm »
You don't share sources in a contest :P

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: [AXE] Little contest :D
« Reply #7 on: December 27, 2013, 04:43:42 pm »
Then I give up. :\
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: [AXE] Little contest :D
« Reply #8 on: December 27, 2013, 04:48:04 pm »
Quote
Would love to try this one out, but I have never used Axe before. Could someone point me to a good starting place?

If you're familiar with basic then take a look here.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [AXE] Little contest :D
« Reply #9 on: December 27, 2013, 08:41:04 pm »
Wow, that's pretty impressively optimized, nikitouzz. I tried my best at it and with many evil tricks managed to beat your record, but only barely, with 333 bytes. Not going to post any code yet of course, I want to give others a chance. Also, I'm not sure I'm done optimizing it yet. ;)

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] Little contest :D
« Reply #10 on: December 28, 2013, 08:18:53 am »
I'am at 334Byte for the moment !!!!! :)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] Little contest :D
« Reply #11 on: December 28, 2013, 08:51:39 am »
I'm stuck at 337 -.- (VAT header included, 329 without it).

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: [AXE] Little contest :D
« Reply #12 on: December 28, 2013, 09:02:01 am »
326  :P

AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: [AXE] Little contest :D
« Reply #13 on: December 28, 2013, 11:31:45 am »
I'm game, lets see what I can do.
I am a friend.
I mine Bitcoins.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: [AXE] Little contest :D
« Reply #14 on: December 28, 2013, 12:30:24 pm »
I got to about 320 without scrolling but when I add it I bet it will be way more...
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.