Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - CKH4

#1
Web / Well I'm learning JS and stuff
August 29, 2015, 08:21:40 PM
For my first real attempt at writing JS I've decided to generate a nav based on html h(1,2,3) elements. The code that isn't mine is from various stackoverflow questions but I think that there's only two functions that aren't mine. If you know any JS (jquery) and would like to propose suggestions that would be cool.

http://codepen.io/CKH4/pen/WQeJWw
#2
Contests / [TI-84+ CSE][xLIBC]Color Smash
May 30, 2015, 03:06:22 AM
So my contest entry has been a speed code because I don't own the CSE. My friend was kind enough to lend me his calc when we weren't doing anything in math. Now he's given me his calc for the weekend and I'm so grateful.

So no screenie yet but the premise of the game is that you use 2nd and Alpha to change your color. 2nd for blue and Alpha for green. You can navigate the bottom pixels of the screen with left and right. There are falling boxes which you have to you have to avoid, unless you are the same color in which case you can 'smash' the box. The red boxes are molten and will kill you like the regular boxes of the opposite color. To view your high score recall the variable S on the home screen. As the game progresses the falling gets faster.

My high score is 58 so when you get a chance to play it, let me know what you get.

The options are available as lists and variables when you edit the program. The list CCT stores the colors. The order is {game background,  player blue, player green, box blue, box green, box red, screen background}. The pixel width and height are determined by variable W. The screen will automatically center and full screen is 40. C is the starting player color, 2 for blue and 3 for green. X and Y are the starting position for the player, default is 2,2. List CS is for the speed of falling. The first one is for the starting speed, the second is for how often to speed up.

Also totally random but I tied my high score in the gif.



So I also managed to fit all of it into 664 bytes. Hope you enjoy it.
#3
This project is dead but you can find the source attached to this post. If you have any questions please ask and I will do my best to help you with them. The source likely is not in working condition but there should be some comments telling the direction that the game was going.


Old post:

So this is my first large project, and it'll hopefully be awesome! In case I don't finish I'll have the source openly available most of the time ( I hope ), so when I do upload it feel free to suggest changes / optimization.

So far the story is you're a person represented by a 3 pxl line ( so no story at all ).

What the final game will hopefully look like:


Dialogues:


Possible Water tile ( I'll probably lighten it by 1 ):


I might change the name to 3px person or 3 pxl person or 3 pixels tall so which name do you think is the best?
#4
Drawing & Animation / CKH4's 3D plane program
April 21, 2015, 09:35:36 PM
Even though this is not pixel art I don't think that it deserves a new topic so here's the code for the 3d faked plane.
0->A
While 1
A-pi(K=26)+pi(K=24->A
6cos(.05A->B
sin(.05A->C
If K
ClrDraw
Line(~B,6-C,B,6+C
Line(~B,C-6,B,~6-C
Line(B,6+C,B,~C-6
Line(~B,6-C,~B,C-6
"Leave this out for untextured
For(D,0,6,.65
Line(B/6D-B/2,3+D/5C,B/6D-B/2,~3-D/5C
End
"
getKey->K
End

and here's the image:
Without texture

With texture
#5
Drawing & Animation / CKH4's Pixel Art and Such
March 19, 2015, 02:00:01 AM
Well I made this stuff as my profile.


New version with lots of bloom.



Hopefully I'll add an animal at some point.
#6
Web / Cool HTML and CSS
February 21, 2015, 05:49:14 AM
So I thought I'd share some of my code snippets because I'm starting to be proud of some of them. Feel free to share your own pieces that you're proud of.

Buttons and such:

Material Checkboxes:
http://codepen.io/CKH4/pen/radXxy
Similar to my Radio Buttons but made before. It has simulated border-radius because it isn't able to be styled on the input tag. This doesn't use the check box hack.

Material Radio Buttons:
http://codepen.io/CKH4/pen/yyKmzg
I consider this my best work, the transitions are very fluid and the use of only the input tag.

Material Expanding Menu:
http://codepen.io/CKH4/pen/LEOPNy
Click to expand some icons.

Material Buttons:
[WIP]
A few material styled buttons with nice animations.

Animations:

Codewalr.us:
http://codepen.io/CKH4/pen/wBoRYo
A codewalrus walrus animation.

Mock-Ups:

Material Design Google Login Screen:
http://codepen.io/CKH4/pen/rVxpKG

If you like any of these feel free to use them but please give some form of credit.
#7
Drawing & Animation / Classic Shell Custom Animated Icons
February 19, 2015, 04:10:53 PM
I'm making animated start buttons for classic shell

Here's my first one, a Material Design theme:
Recommended Window Color ( #009688 ) with transparency off

#8
Site Discussion & Bug Reports / Bugs with the site.
February 10, 2015, 01:03:23 AM
I've noticed a few bugs recently right now I can only remember 2 but I'll probably remember eventually.
WalrusIRC won't show up. This happens when I am logged in for a long time, I'm guessing that this an issue with SMF.
I also can't vote on polls (only tried one so it might be isolated to that poll).

As an added issue. Gmail has started calling the forum updates spam.
#9
What does your computer run?
What electronics do you have?

Desktop 1
Processor: AMD Athlon X2 2 core 2.8GHZ (I think)
Ram: 4GB ddr2 (don't know the speed)
Graphics card: Nvidia GT 650 (silent cooled)
OS: Windows vista, Ubuntu 12.04

Desktop 2 (buying parts)
Processor: AMD Fx 8350 8 core 4.0ghz
CPU cooler: Corsair H60 54.0 CFM Liquid CPU Cooler
Motherboard: MSI 970 gaming
Ram: 16GB DDR3 1866
HDD: Western Digital Caviar Blue 1TB 3.5" 7200RPM
SSD: Sandisk Ultra Plus 128GB
Graphics card: Asus GeForce GTX 970 4GB STRIX Video Card (4GB gddr5, 1.11ghz)
Case: Thermaltake Urban S31
OS: Windows 7 professional

Here are my electronics:
Raspi B
Cubieboard2
Galaxy Note 3
IPhone 3gs
IPod touch 4g
IPad 4 (I think)
Ti 83+
Xbox 360
Wii U
HTC Rezound
Nintendo Ds lite

Don't spam with which company you think is better.
#10
Here is some simple code that may help new Axe programmers learn the basics of a menu or even allow basic programmers to get into Axe Parser.

Screenshot:


Features:

  • Easy to change
  • Readable Code
  • Use custom select images

Code:
.MENU

ClrDraw

[0103030303030100]->Pic1
[80C0C0C0C0C08000]

7->X
4->Y->W

Fix 5

Text(X+5,Y,"PLAY
Text(X+1,Y+8,"SCORES
Text(X+5,Y+16,"HELP
Text(X+5,Y+24,"QUIT

RectI(X,Y,25,7

Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8

DispGraph

Repeat getKey(15)

If Y!=(W+24)
If getKey(1)

Y+8->theta

RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8

Repeat Y=theta
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
DispGraph
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
Y++
End
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
DispGraph
End
End

If Y!=W
If getKey(4)

Y-8->theta

RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8

Repeat Y=theta
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
DispGraph
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
Y--
End
RectI(X,Y,25,7
Pt-Change(X-9,Y,Pic1
Pt-Change(X+26,Y,Pic1+8
DispGraph
End
End

Pause 10

End

Fix 4


If you want any help or have any questions I'll attempt to help you out. I will update this until I consider it complete.
#11
QuoteNOTE: This is very broken, there are no guaranties that this will work.

Chrome has gotten an update (chrome 37 which is now kind of old) which allows it to run Android Applications (.apk). This works not by emulating android but by running a version of Android's runtime environment. Similar to Android's ART chrome has gotten ARC, they preform the same functions but are for different OSes. It was originally only for ChromeOS but vladikoff has ported it to other OSes (and removed a restriction which only allowed 4 apps).

Installation:


  • Download ARChon
    [spoiler=Taken from website:]
    Note: This can be unstable on operating systems other than Chrome OS.

    Warning: The custom runtime will replace the official runtime component. To go back to the official runtime you will need to uninstall the custom one and reinstall the official one.


    Tested on OS X, Windows 64-bit and Ubuntu. You must have Chrome 37+ installed. (If it doesn't work try Chrome Canary).

    Download the runtime that is appropriate for your system:






    RuntimeDownload
    ARChon 1.2 - Intel x86 Chrome 64-bit / Chrome OS 64-bit    BitBucket :: Mirror
    MD5:d77b468339cc512e121c003cc97715db
    ARChon 1.2 - Intel x86 Chrome 32-bit / Chrome OS 32-bit (Win7 32-bit: Use something like Chrome Beta 38.0.2125.77 beta-m)    BitBucket :: Mirror
    MD5:9c9844e2591a27d952098581011a2bce
    ARChon 1.2 - ARM (i.e ARM-based Chromebooks)    BitBucket :: Mirror
    MD5:3d6955c7702baf1e1d16a000d9f67b10
    [/spoiler]

  • Unzip the download
  • Open the Chrome Extensions page (chrome://extensions/)
  • Select Developer Mode
  • Click load unpacked extension...
  • Select the folder that you unzipped and click open
  • Go to next step...

Packing Wabbitemu as an extension:

QuoteThese next steps assume that you have a relatively recent android phone or tablet (past 5 years).

You can also package it on a computer but I have not tried it, here is a link to the guide: https://github.com/vladikoff/chromeos-apk/blob/master/archon.md#instructions


  • Download Wabbitemu from the play store: Wabbitemu
  • Download ARChon from the play store: ARChon
  • Open ARChon and follow the prompts provided
  • When it asks Phone or Tablet Mode choose based on your screen resolution,
    Phone for Screens < 1080p
    Tablet for Screens ≥ 1080p
  • Make sure it says portrait (the app doesn't have portrait mode)
  • When it finishes compiling make sure to email the zip to yourself.

Installing Wabbitemu:


  • Download the Wabbitemu .zip that you just emailed yourself and unzip it
  • Open the Chrome Extensions page (chrome://extensions/)
  • Select Developer Mode
  • Click load unpacked extension...
  • Select the folder that you unzipped and click open
  • Click launch under the extension called 'Wabbitemu'

I hope that at least some people can use this. Feel free to ask any questions.
#12
So I'm trying to learn buffers for 8lvl grayscale. I got 4 level working with the main buffer, L1 and L3.

If anyone knows about buffers and stuff I would really appreciate your help.

Edit.
I got laggy 6lvl working on L1 thru L4. Then the calc crashed when I went to exit. (it was wabbitemu so it's all good)
#13
Calc Projects, Programming & Tutorials / Seizure Tank
January 05, 2015, 07:43:53 PM
My first axe project, it started as a simple box movement engine(?). Now it's a 4 level gray scale flashing seizure causer (hopefully not literally). It's horribly un-optimized but it's good at being seizury. Here's a still screenshot, not a gif because it's written on my phone. I have the source up if anyone wants it. (please tell me if it will cause any issues on real calcs)

Clear to quit, arrow keys to move.
Image:[spoiler]
[/spoiler]

Source:
.TANK
ClrDraw
[00665A38385A6600]->Pic1
[00665A3C3C426600]
[00665A1C1C5A6600]
[0066423C3C5A6600]
10->X
10->Y
0->theta
Repeat getKey(15)
Pt-Off(X,Y,Pic1+theta
Rect(0,0,96,64)^^r
DrawInv
DispGraph^^r^^r
Pause 50
If theta=0
X++
End
If theta=8
Y++
End
If theta=16
X--
End
If theta=24
Y--
End
If getKey(1)
8->theta
End
If getKey(4)
24->theta
End
If getKey(2)
16->theta
End
If getKey(3)
0->theta
End
End


Whats new...
Updated Image (GIF)
Actual File (.8xp)
Powered by EzPortal