The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Legacy Corsair Software > CUE 1.x and 2.x SDK

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-24-2015, 08:53 PM
t3hlazy1 t3hlazy1 is offline
Registered User
 
Join Date: Feb 2015
Posts: 22
POST ID # = 821987
t3hlazy1 Reputation: 10
Default [Game] Dodge the Enemies Space Game

I recently discovered that Corsair released the SDK, so I was tinkering with it yesterday. I don't want to release the code right now, because it's super hacky and poorly written, but I may do a rewrite and release it then. I'll be glad to talk about the code or how I did something in the comments or PMs.
Features:
Character movement
Random enemy spawning
Random enemy speed
Score tracking (displayed by the MR Key getting brighter and brighter, for now)
Collision detection
Game over
Game restart
Game exit
To Do:
Moving background
Better score tracking
Increasing difficulty
Shooting ability OR no impossible sequences (way too tough to code though)
Power ups?

Thanks!
  #2  
Old 11-25-2015, 08:52 AM
terabyte's Avatar
terabyte terabyte is offline
CORSAIR Beta Team
terabyte's PC Specs
 
Join Date: Sep 2014
Location: Italy
Posts: 4,354
POST ID # = 822066
terabyte Reputation: 73
Default

haha, nice little script
  #3  
Old 11-25-2015, 09:02 AM
Jkraghify's Avatar
Jkraghify Jkraghify is offline
CORSAIR Beta Team
Jkraghify's PC Specs
 
Join Date: Jan 2015
Location: Salinas CA
Posts: 923
POST ID # = 822069
Jkraghify Reputation: 10
Default

The first K95 game! I'd love to see the code to do this just to learn a little more. Great idea! I love it :D
__________________
K95 and K70 RGB keyboard cover mod! Make your own :D
Glorious Build Log - Atom14
K95 RGB [SDK Project] Binary Clock
  #4  
Old 11-25-2015, 12:00 PM
krazykid's Avatar
krazykid krazykid is offline
CORSAIR Beta Team
 
Join Date: Mar 2015
Location: San Jose, California
Posts: 2,928
POST ID # = 822087
krazykid Reputation: 59
Send a message via Skype™ to krazykid
Default

Ive seen snake before too
  #5  
Old 11-25-2015, 02:30 PM
Jkraghify's Avatar
Jkraghify Jkraghify is offline
CORSAIR Beta Team
Jkraghify's PC Specs
 
Join Date: Jan 2015
Location: Salinas CA
Posts: 923
POST ID # = 822117
Jkraghify Reputation: 10
Default

Quote:
Originally Posted by krazykid View Post
Ive seen snake before too
Where? Does the person who made it know of the forums?
__________________
K95 and K70 RGB keyboard cover mod! Make your own :D
Glorious Build Log - Atom14
K95 RGB [SDK Project] Binary Clock
  #6  
Old 11-25-2015, 05:45 PM
krazykid's Avatar
krazykid krazykid is offline
CORSAIR Beta Team
 
Join Date: Mar 2015
Location: San Jose, California
Posts: 2,928
POST ID # = 822155
krazykid Reputation: 59
Send a message via Skype™ to krazykid
Default

Quote:
Originally Posted by Jkraghify View Post
Where? Does the person who made it know of the forums?
  #7  
Old 11-25-2015, 03:05 PM
t3hlazy1 t3hlazy1 is offline
Registered User
 
Join Date: Feb 2015
Posts: 22
POST ID # = 822126
t3hlazy1 Reputation: 10
Default

Thanks guys!
Here's the code: http://pastebin.com/9H1LTn9R
I just opened one of the example projects, deleted its main function, and wrote my own.
My main critique with the code is the up/down detection. To fix this, I plan on rewriting the code to loop with a 1ms delay, instead of 75ms, but only do the game stuff every 75ticks. Not a big challenge, but I don't have time to do it right now.
Also I want to write a function like:
addToLedList(LedId, R, G, B)
that would iterate through the list of Leds already added, and, if the LedId has already been added, would either overwrite the old value or just do nothing.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.