Jump to content


Xelostar

Member Since 05 Jun 2016
Offline Last Active Aug 30 2018 07:51 PM
*****

Topics I've Started

2D noise generation API (with demos)

07 July 2018 - 01:44 PM

Hello everyone, today I present to you my 2d noise generation API.
It's grid-based and only really has one function.

API Pastebin: XpmVCuU3

Demo1 Pastebin: ebwe7qjQ

(Second and third demo require the BLittle API and my BufferAPI)
Demo 2 Pastebin: rpLzDPmh
Demo 3 Pastebin: MUSiLETr

BLittle: http://www.computerc...76-blittle-api/
BufferAPI: http://www.computerc...343-buffer-api/

You have my permission to include this API in any of your projects. =)

"Documentation":
noise.createNoise(size, x, y, seed, [smoothness])
-- parameters:
-- size: the size of the noise you want, a power of 2
-- x: the x-coordinate of the chunk you want to get
-- y: the y-coordinate of the chunk you want to get
-- seed: the seed to use when generating the noise
-- [smoothness]: (optional) default is 1, minimum is 0. The maximum for this variable depends on the size of the noise you want to generate

-- returns:
-- noise: a two-dimensional table filled with values from 0 to 1

Video explanation:

Get real time?

08 April 2018 - 01:12 PM

Hi. I know it's late, but I needed to do this myself just now and the link Lyqyd gave doesn't work for me.
I just used Google and it seems to work fine, though it's sketchy, I thought I'd share my code for the people who want to have the real time as well and stumble upon this thread using Google or something =P

function getRealTime()
	local page = http.get("http://www.google.nl/search?&q=time")
	local raw = page:readAll()
	local raw2 = ""
	for a in raw:gmatch(">%d?%d:%d%d</div>") do raw2 = a end
	local time = ""
	for a in raw2:gmatch("%d?%d:%d%d") do time = a end
	return time
end

[Split from here. -L]

3D rendered randomly generated mountains

21 March 2018 - 04:59 PM

I was playing around with an update for my 3D rendering API which I was working on. I decided to test some 3D terrain generation with some noise and I made some screenshots of mountains. I thought I'd share them, because they might look nice as backgrounds =)

Posted Image

Posted Image

Doom - CC's first 3D FPS (with online highscores)

17 February 2018 - 02:24 PM

Hello everyone! Today I present to you:


Posted Image


Small update:
  • Gun bobbing added
  • Death animation

It has 3D rendering using my 3D rendering API:
http://www.computerc...5-finally-here/

Summary:
  • There are two types of enemies.
  • Normal mode and endless mode.
  • Online highscores
  • Installer
Controlls:
  • WASD for walking
  • Arrows for looking
  • Spacebar for shooting
How to install:
Run the following command
pastebin run 6BcdRV75

For the old version:
Spoiler

If you have LDDestroier's STD installed you can also run
std ld ccdoom
The game is on STD-GUI too




Special thanks to LDDestroier!


Buffer API

03 February 2018 - 02:29 PM

Hello there,
Today I've got my buffer API to how you. It's fairly simple to use:


Posted Image
Posted Image

Code (for copying):
Spoiler

Latest download (2.0):
https://pastebin.com/kep0mppq
Or type the following into the CraftOS shell:
pastebin get kep0mppq bufferAPI

Download (1.0):
https://pastebin.com/qU2pf0jy
Or type the following into the CraftOS shell:
pastebin get qU2pf0jy bufferAPI


Let me know if you have any questions.