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

Messages - c4ooo

#46
Games / Re: Sorcery of Uvutu PC Port
August 25, 2017, 12:12:46 AM
What is the 2nd key used for BTW? Cause I think it will be fine to just make enter space and left shift all = 2nd key.
#47
Games / Re: Sorcery of Uvutu PC Port
August 23, 2017, 08:34:20 PM
WASD + space
Or
WASD + E
#48
Quote from: TheLastMillennial on August 20, 2017, 06:19:42 PM
I tried to make a walrus with DCS8IC, turns out that walruses eyes are really hard to make proportionate to the rest of their bodies. anyways I gave it my best shot.

Cesium view. Apparently Cesium hates being screenshotted.


EDIT: I found this, @_iPhoenix_ ++

Nice!

The reason screenshot is messed up is because cesium uses 8bit LCD mode, you should use an emulator to take screenshots.
#49
General Help & Troubleshooting / Re: Mein new computer
August 20, 2017, 04:43:35 AM
Apparently prices of DDR ram are going up. What brand ram did you buy? There's this one brand named 'crucial' that's kinda cheap. They have a 8gb stick for 65$, but it also looks like something from the 2000s xD
#50
Games / Re: Sorcery of Uvutu PC Port
August 20, 2017, 01:51:20 AM
Since a tilemap takes next to no ram relative to the gigabytes found on a modern computer, the easiest thing would be to combine all the separate tilemaps into a single world tilemap. From there smooth scrolling is easy (I can give some pseudo code if you want).

I would not recommended using the chunk based approach you described. Chunk based worlds are only really useful when the world is to big to fit in ram or be render all at once (eg Minecraft or some open world RPGs).
#51
Games / Re: Sorcery of Uvutu PC Port
August 20, 2017, 01:21:30 AM
Add smooth scrolling :ninja:
#52
It doesn't matter what extension you use, it matters how you parse it. So if you have a map as a plain text of hexedicimals, you can't just read it as a binary file, and would have to translate it. Unfortunately do to a currently broken laptop I can't share any code, but I can say that using raw binary data might actually be easier, but reading a plain text of hexedicimals isn't hard either, especially if your maps are already in that format :)
#53
Read tilemaps byte by byte. Its more efficient and not at all hard, as long as you know how to open a file.
#54
Quote from: Snektron on August 17, 2017, 02:51:35 PM
Quote from: c4ooo on August 17, 2017, 02:15:48 PM
Quote from: Juju on August 17, 2017, 05:22:51 AM
Depending of the language you use, it is possible to check if your integer is an integer. As in, you can cast your float into an int, if it didn't lost information it's an integer.
Yep. In a float, the first byte is almost always a signed exponent, so as long as it is >=0 its an integer (unless I got something mixed up). This should be useful if someone does the challenge in assembly.

thats not true, because the mantissa (other part of the float) is a fraction part: (1/16 + 1/8)*2^3 is 1.5, but it still has a positive exponent.
Instead you could check if the mantissa is clone enough to zero: if its smaller than 0.00001 for example is probably an integer.
Ohh well it works for tios floats. In my monochrome CE wrapper demo I had to convert floats to integers and I checked if the first byte was zero or one (meaning the float had one or two digits, respectively), and everything else was Out of bounds. But tios floats use BCD so I guess its a but different.
#55
Quote from: Juju on August 17, 2017, 05:22:51 AM
Depending of the language you use, it is possible to check if your integer is an integer. As in, you can cast your float into an int, if it didn't lost information it's an integer.
Yep. In a float, the first byte is almost always a signed exponent, so as long as it is >=0 its an integer (unless I got something mixed up). This should be useful if someone does the challenge in assembly.

Edit: got 39 bytes in tibasic but its a very lazy solution lol. Will post code when I get time.
#56
Contests / Re: Code Golf Belgium Numbers
August 16, 2017, 06:54:41 PM
You should change the name of the thread to "code golf - the reboot - the reboot #1" :P

Anyways, I don't remember you participating in codegolf on omninaga? Lol  9_9  :P
#57
Contests / Re: Unofficial Codewalrus Contest #1
August 16, 2017, 06:21:34 PM
Multiple entries should be averaged to prevent spamming low quality entries.
#58
I don't understand, if (a,b) is the pixel coords what is c?
Am I supposed to check if sqrt(a*a+b*b) is an integer?
#59
Other / Re: _iPhoenix_'s conceited quotes thread.
August 15, 2017, 02:15:00 AM
Reminds me of the walrus game I was making a while back :V
Iirc I had some sort of colour picker for the main walrus.
#60
Quote from: TheLastMillennial on August 14, 2017, 08:52:50 PM
Quote from: MateoConLechuga on August 13, 2017, 11:26:36 PM
Right click -> Pin to Start

I'm not sure what is complex about that?
@MateoConLechuga (do I need this here if I quoted him?)
He wants it in the 'all programs' list, not the start menu.
Wait what? I haven't heard of the "all programs" list since windows xp???
Powered by EzPortal