You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server
Administration Center

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.

Messages - _iPhoenix_

#1
Web / Re: Village
March 17, 2019, 11:34:36 PM
Well I've forgotten to post updates here and the language has completely changed so yay. Most recent update post.


I'm thinking of picking up this project again. I finally wrote documentation for Ask. I'm trying to keep the documentation understandable for someone with only a marginal programming ability (i.e. may have touched a C-based programming language or similar in the past or just started.)

I'm looking for feedback on this documentation (suggestions via post, ping, or PR are welcome!)

I'm also looking for clean (as clean as you can get with this language >.>) demo programs.

You can easily relocate your input (In lieu of input commands, I'm using the "modify this program with input values" technique) to the top of the program using Skip commands. I created a trivial multiplication program here. It's a model Village program, about as clean as it gets. I'm playing with the idea of named labels at some point, so that users viewing without line numbers don't have to count. You can just load it into the interpreter though.

Skip to line 22.
Note: ==========
Note: Trivial multiplication program
Note: Results: A*B -> output
Note: Author: _iPhoenix_
Note: ==========

Note: Inputs:
Note: =======

Note: MODIFY THIS LINE FOR A
Tell Ada to mine 16 stone.

Note: MODIFY THIS LINE FOR B
Tell Alan to mine 16 stone.

Note: =======

Tell Ken to write the text "waiting..." on his scroll.
Skip to line 40.

Note: Init:
Note: =====

Call for the villager named Ada.
Teach Ada how to mine stone.

Call for the villager named Alan.
Teach Alan how to mine stone.

Call for the villager named Ken.
Teach Ken how to mine stone.

Call for the villager named John.
Teach John how to mine stone.

Skip to line 9.

Note: Main program:
Note: =============

Tell Ken to mine 1 stone.
Tell Ada to double her stone.

Tell Alan to write the text "waiting..." on his scroll.
Tell Alan to write the text "waiting..." on his scroll.

Tell Alan to clear his scroll.

Tell Ada to give John half of her stone.

Ask Ken if he has less stone than Alan.
- If he does:
  + Skip to line 40.

Note: Output:
Note: =======
Tell John to write the amount of stone he has on his scroll.
Tell John to post his scroll to the Community Message Board.
#2
Web / Re: UniChat!
January 04, 2019, 03:27:31 PM
Quote from: c4ooo on December 23, 2018, 02:08:08 AMEdit: also damn I didn't realize this project was started so long ago... time flies.

Yeah, it's really crazy. I remember writing this code and dealing with the problems... oh those were the days,indeed.
#3
PC, Mac & Vintage Computers / Re: Golfed code snippets
December 08, 2018, 04:28:09 AM
As far as weird/cool constants in golfed code goes, this is my absolute favorite.

From the Quake III Arena source code, a routine to calculate an inverse square root
float Q_rsqrt( float number )
{
   long i;
   float x2, y;
   const float threehalfs = 1.5F;

   x2 = number * 0.5F;
   y  = number;
   i  = * ( long * ) &y;                       // evil floating point bit level hacking
   i  = 0x5f3759df - ( i >> 1 );               // what the c?
   y  = * ( float * ) &i;
   y  = y * ( threehalfs - ( x2 * y * y ) );   // 1st iteration
//   y  = y * ( threehalfs - ( x2 * y * y ) );   // 2nd iteration, this can be removed

   return y;
}



From wikipedia
#4
Other / Re: New member introductions: Say hello here!
December 05, 2018, 12:31:41 PM
Quote from: TruDev on December 05, 2018, 11:27:28 AM
Hi, I'm TruDev, and just being on this site has made me lose the game!

Ok, let's be serious...

I'm most active on Discord as TruDev#4528. I do happen to be on the CodeWalrus Discord, so message me there, I guess...

I own a TI-Nspire CX CAS because it is required by my school (best school supplies that are required btw).
I am making a Lua game for the TI-Nspire, actually! A post will be made soon, so you have something to look forwards to, I guess...

So this is the time where I wait for replies...

Nice to see you, TruDev! I don't own an Nspire currently, but I still look forward to seeing what you have created!
#5
Other / Re: New member introductions: Say hello here!
December 05, 2018, 12:31:15 PM
Quote from: TruDev on December 05, 2018, 11:27:28 AM
Hi, I'm TruDev, and just being on this site has made me lose the game!

Ok, let's be serious...

I'm most active on Discord as TruDev#4528. I do happen to be on the CodeWalrus Discord, so message me there, I guess...

I own a TI-Nspire CX CAS because it is required by my school (best school supplies that are required btw).
I am making a Lua game for the TI-Nspire, actually! A post will be made soon, so you have something to look forwards to, I guess...

So this is the time where I wait for replies...

Nice to see you, TruDev! I don't own an Nspire currently, but I still look forward to seeing what you have created!
#6
Drawing & Animation / Re: Walrii fanart
October 31, 2018, 01:31:13 PM
Happy Halloween, codewalrus!
#7
Web / Village
October 15, 2018, 11:13:02 AM
So apparently I don't have a thread for my current project here. Dang.


Village is my long-term project. It's an Esolang where you are a village chief and you get to command people around and do things. It's a lot of fun.


Here's a basic "hello, world" program:
Call for the villager named Ada.
Tell Ada to write the text "Hello, World!" on her scroll.
Tell Ada to post her scroll to the Community Message Board



Pretty simple!


Villagers can have occupations.
Call for the villager named Alan.
Teach Alan how to gather wood.


Note: This next task takes 3 successful lines of code to complete.
Tell Alan to gather 20 wood.


Note: waste 3 commands.
Call for the villager named Ken.
Teach Ken how to draft blueprints.
Tell Ken to make a blueprint for a railroad to the North village.


Note: At this point, Alan's done getting wood.
Tell Alan to write the text "I have " on his scroll.
Tell Alan to write the amount of wood he has on his scroll.
Tell Alan to write the text " wood." on his scroll.
Tell Alan to post his scroll to the Community Message board.


Not all of the features are officially documented yet, with the main undocumented feature being Ask commands, aka conditionals. They are explained pretty well in my Cemetech topic:
[spoiler=large quote]
QuoteSyntax: Ask [villager name] if [he/she] has [quantity] [item type].

That's a little weird, so here's an example: (Oh yeah, I added a female villager, Ada, named after Ada Lovelace)

Call for the villager named Ada.

Ask Ada if she has any stone.
- If she doesn't:
- Tell Ada to write the text "I do not have stone" on her scroll.
- If she does:
- Tell Ada to write the text "I have stone" on her scroll.
Tell Ada to post her scroll to the Community Message Board.


As you can tell, there are a few things going on here.
Call for the villager named Ada. makes Ada available for us to use. Because of my current crappy occupation-selecting script, she is an architect, but that doesn't really matter in this script.

Ask Ada if she has any stone.
This is the conditional statement. Of course, Ada does not have any stone. Only quarrymen can have stone.
The keyword any means more than one. You can also put a number in that conditional, and it will mean "greater than or equal to <number>".

Eventually, I will add the ability to use the word "exactly" before the number, but you can achieve this anyways with clever programming.

Because this is a conditional, we have to increase the indent level.

- If she doesn't:
- Tell Ada to write the text "I do not have stone" on her scroll.
- If she does:
- Tell Ada to write the text "I have stone" on her scroll.
This section of code is the conditional statement "body". The code in here is executed based on how the conditional happened.

[size=0pt]I see a rage coming from many programmers in here about what I am going to say in this section, but if you think about if statements in, say, JavaScript, the initial '{' can be viewed as a label to jump to, as can the '{' after the else.[/size]

- If she doesn't: and  - If she does:
Indent levels in village work like this:
<nothing>
-
  +
   *
    -
     +
      *
(and so on)


You don't need to memorize the pattern. If you get it wrong, the interpreter will kindly tell you which one to use.

The " -" before our command indicates that this is the first indent level. The space after the dash is a stylistic thing, it can be omitted.

The If she does: and If she doesn't: are labels that are jumped to if the condition is true or false, respectively. They can occur in any order. If there is only one of them in the conditional statement "body" and it doesn't apply, the entire conditional will be skipped.

If you run the code above, you will notice that only the text "I do not have stone" shows up on the output ("Community Message Board"). The other code beneath the If she does: label was skipped because it did not apply.

The end of any body section is always signified by a decrease in indentation.
[/spoiler]


There's more stuff in the docs.

Link to interpreter

The console messages (when debug mode is on) will help explain the examples and should help you.

Enjoy!
#8
[Inactive] Zarmina (PC) / Re: Zarmina
August 18, 2018, 10:33:56 AM
I might as well plug my stuff if this is how we are doing it ;)

<plug>
I also do ambient tracks, like this, this, this, this, and (technically) this.

You can use any of this, and if you want anything custom it's free and done within a reasonable timespan.

</plug>

#9
PC, Mac & Vintage Computers / Re: SnailFont
August 11, 2018, 06:46:15 PM
Quote from: rowan_futurerave on August 11, 2018, 11:52:53 AM
hI iPHOENIX  im back lol
this font is great

I can especially see the digits and the symbols coming in useful (on their own combined with other fonts)
as a whole package - great!

nice work, hope you are good :D

Long time no see! Nice to see you back.
I'm good, myself  ;D

Quote from: 123outerme on August 11, 2018, 03:56:24 PM
I like the look! It reminds me a little bit of the font they used in EarthBound for the Mr. Saturns. Definitely gonna see if I can find a use for it!

Thanks! I see what you mean (the pixelated, loopy, asymmetric and very non-geometric look), but hopefully mine is more readable :)
#10
How are you accomplishing these graphics? They look super cool, but I read that RPG Maker 2003 is for 2D graphics.
#11
PC, Mac & Vintage Computers / Re: SnailFont
July 27, 2018, 05:22:42 PM

I have completed all of the printable characters in the Basic Latin range todayWell, actually, it was yesterday, but I only updated my webpage for it today. and you can (as always) check it out and download it on the webpage, which contains legacy versions for your enjoyment.
#12
PC, Mac & Vintage Computers / Re: SnailFont
July 26, 2018, 01:27:05 AM
Quote from: Juju on July 25, 2018, 06:37:36 PM
Looks nice, reminds me of some Mario games for some reason. Gonna make a TTF of it?

I did, you can download it on the site :)
#13
PC, Mac & Vintage Computers / SnailFont
July 25, 2018, 04:03:14 PM

SnailFont is a free and open-source perfectly imperfect font suitable for pixel-based games and applications.


It features somewhat whimsical and tilted letters with very few straight lines or circles.


You can download it and try it out here!


These are the characters I have currently: (there are some tweaks that need to be made, the dots on the colon and the period are too big, the exclamation point is too short, the 'g' looks weird, the 'T' is too tilted, the lower zero on the percent sign is crazy weird, etc. I know it's supposed to be imperfect, but I don't want the imperfections to be distracting.)



This font is incomplete, I plan to tweak some of the existing characters slightly, and expand the current character set quite a bit. If anyone feels like helping, I'm writing some style guidelines for new characters.


The name comes from my other project, Attack of the Snails, which this font was made for :)


Enjoy!
#14
I was joking with TheLastMillennial about "forcibly grabbing a walrus to harvest its tusks for reuse as piranha teeth" (the fish being used in a game), and I sent him a frame from my avatar to use "as a testificate".


In five minutes, I modified that walrus to this:



Enlarged:



Not bad for 5 minutes :P
#15
Drawing & Animation / Re: My very own art thread
July 14, 2018, 01:58:37 PM
@123outerme should see that! It looks really, really good, great job!
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal